Skip to content

Commit

Permalink
Release v2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Jul 29, 2022
1 parent 22e5319 commit dd88713
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

This Is Latest Release

$version_release = 2.0.6
$version_release = 2.0.7

What's New??

Expand Down Expand Up @@ -81,20 +81,20 @@ allprojects {

dependencies {
// library frogo-sdk
implementation 'com.github.frogobox:frogo-sdk:2.0.6'
implementation 'com.github.frogobox:frogo-sdk:2.0.7'

// library frogo-sdk for desktop
implementation 'com.github.frogobox.frogo-sdk:frogocoresdk:2.0.6'
implementation 'com.github.frogobox.frogo-sdk:frogocoresdk:2.0.7'
}

#### <Option 2> Kotlin DSL Gradle

dependencies {
// library frogo-sdk
implementation("com.github.frogobox:frogo-sdk:2.0.6")
implementation("com.github.frogobox:frogo-sdk:2.0.7")

// library frogo-sdk for desktop
implementation("com.github.frogobox.frogo-sdk:frogocoresdk:2.0.6")
implementation("com.github.frogobox.frogo-sdk:frogocoresdk:2.0.7")
}

### Step 3. Function from this SDK
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/frogobox/appsdk/core/BaseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.frogobox.sdk.view.FrogoBindActivity
*
*/
abstract class BaseActivity<VB : ViewBinding> : FrogoBindActivity<VB>(),
PreferenceDelegates by PreferenceDelegatesImpl(FrogoApp.getContext(),"ANJAYY") {
PreferenceDelegates by PreferenceDelegatesImpl(FrogoApp.getContext(), "ANJAYY") {

override fun setupDebugMode(): Boolean {
return BuildConfig.DEBUG
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/ProjectSetting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object ProjectSetting {

const val VERSION_MAJOR = 2
const val VERSION_MINOR = 0
const val VERSION_PATCH = 6
const val VERSION_PATCH = 7

// ---------------------------------------------------------------------------------------------

Expand Down
11 changes: 8 additions & 3 deletions frogosdk/src/main/java/com/frogobox/sdk/view/FrogoActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ abstract class FrogoActivity : AppCompatActivity(),
showLogD<FrogoActivity>("setupContentView(), Place For setContentView(view: View)")
}

open fun setupDelegates() {
showLogD<FrogoActivity>("setupDelegates(), Place For setupDelegates()")
setupViewDelegates(this)
setupUtilDelegates(this)
setupPiracyDelegate(this, this)
}

// ---------------------------------------------------------------------------------------------

open fun setupViewModel() {
Expand All @@ -99,9 +106,7 @@ abstract class FrogoActivity : AppCompatActivity(),
super.onCreate(savedInstanceState)
setupContentView()
if (savedInstanceState == null) {
setupViewDelegates(this)
setupUtilDelegates(this)
setupPiracyDelegate(this, this)
setupDelegates()
setupPiracyDelegatesDebug(setupDebugMode())
setupPiracyMode()
setupMonetized()
Expand Down
11 changes: 8 additions & 3 deletions frogosdk/src/main/java/com/frogobox/sdk/view/FrogoFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ abstract class FrogoFragment : Fragment(),
showLogD<FrogoFragment>("Call setupViewModel()")
}

open fun setupDelegates() {
showLogD<FrogoFragment>("Call setupDelegates()")
setupViewDelegates(requireContext())
setupUtilDelegates(requireContext())
setupPiracyDelegate(requireContext())
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (savedInstanceState == null) {
setupPiracyDelegate(requireContext())
setupViewDelegates(requireContext())
setupUtilDelegates(requireContext())
setupDelegates()
showLogDebug("$TAG : Internet Status : ${requireContext().isNetworkConnected()}")
}
}
Expand Down

0 comments on commit dd88713

Please sign in to comment.