Skip to content

Commit

Permalink
update: build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed May 26, 2023
1 parent 0d5afd4 commit 5bb595c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ dependencies {
implementation(Androidx.Work.runtimeKtx)
implementation(Google.Hilt.android)

implementation(Frogo.consumeApi)
implementation(DependencyGradle.FROGO_CONSUME_API)

kapt(GitHub.glideCompiler)
kapt(Google.Hilt.compiler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AutoTextActivity : BaseActivity<ActivityAutotextBinding>() {
private fun setupUI() {
binding.apply {
btnAdd.setOnClickListener {
startActivityResult.launch(
startActivityResultExt(
Intent(
this@AutoTextActivity,
AutoTextEditorActivity::class.java
Expand Down Expand Up @@ -105,7 +105,7 @@ class AutoTextActivity : BaseActivity<ActivityAutotextBinding>() {
notifyListener: FrogoRecyclerNotifyListener<AutoTextEntity>,
) {
val extra = Gson().toJson(data)
startActivityResult.launch(
startActivityResultExt(
Intent(this@AutoTextActivity, AutoTextDetailActivity::class.java).apply {
putExtra(AutoTextDetailActivity.EXTRA_AUTO_TEXT, extra)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AutoTextDetailActivity : BaseActivity<ActivityAutotextDetailBinding>() {
}

btnEdit.setOnClickListener {
startActivityResult.launch(
startActivityResultExt(
Intent(
this@AutoTextDetailActivity,
AutoTextEditorActivity::class.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ import com.frogobox.sdk.delegate.piracy.FrogoPiracyDialogCallback
import com.frogobox.sdk.delegate.piracy.PiracyDelegates
import com.frogobox.sdk.delegate.piracy.PiracyDelegatesImpl
import com.frogobox.sdk.delegate.piracy.util.PiracyMessage
import com.frogobox.sdk.delegate.util.UtilDelegates
import com.frogobox.sdk.delegate.util.UtilDelegatesImpl
import com.frogobox.sdk.ext.openPlayStore

abstract class BaseMainActivity<VB : ViewBinding> : BaseActivity<VB>(),
PiracyDelegates by PiracyDelegatesImpl(),
UtilDelegates by UtilDelegatesImpl()
PiracyDelegates by PiracyDelegatesImpl()
{

override fun setupDelegates() {
super.setupDelegates()
setupPiracyDelegate(this, this)
setupUtilDelegates(this)
}

override fun setupPiracyMode() {
Expand All @@ -27,7 +24,7 @@ abstract class BaseMainActivity<VB : ViewBinding> : BaseActivity<VB>(),

showPiracedDialog(message, object : FrogoPiracyDialogCallback {
override fun doOnPirated(message: PiracyMessage) {
openPlaystore(packageName)
openPlayStore(packageName)
}

})
Expand Down
3 changes: 1 addition & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ repositories {
}

dependencies{
implementation("com.github.frogobox:open-build-src:2.1.6")
implementation("com.github.frogobox:frogo-build-src:1.4.3")
implementation("com.github.frogobox:open-build-src:2.1.8")
}
13 changes: 13 additions & 0 deletions buildSrc/src/main/kotlin/DependencyGradle.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
object DependencyGradle {

const val KOTLIN_VERSION = Version.JetBrains.kotlin
const val HILT_VERSION = Version.Google.hilt

const val MODULE_LIB_FROGO_KEYBOARD = ":frogo-keyboard"

private const val FROGO_SDK_VERSION = "2.1.8"
private const val FROGO_UI_VERSION = "1.1.6"
private const val FROGO_CONSUME_API_VERSION = "2.4.7"
private const val FROGO_ADMOB_VERSION = "5.2.2"
private const val FROGO_RECYCLER_VIEW_VERSION = "4.3.5"

const val FROGO_SDK = "com.github.frogobox:frogo-sdk:$FROGO_SDK_VERSION"
const val FROGO_UI = "com.github.frogobox:frogo-ui:$FROGO_UI_VERSION"
const val FROGO_CONSUME_API = "com.github.frogobox:frogo-consume-api:$FROGO_CONSUME_API_VERSION"
const val FROGO_ADMOB = "com.github.amirisback:frogo-admob:$FROGO_ADMOB_VERSION"
const val FROGO_RECYCLER_VIEW = "com.github.amirisback:frogo-recycler-view:$FROGO_RECYCLER_VIEW_VERSION"

}
6 changes: 3 additions & 3 deletions frogo-keyboard/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ android {

dependencies {

api(Frogo.sdk)
api(Frogo.ui)
api(Frogo.recyclerView)
api(DependencyGradle.FROGO_SDK)
api(DependencyGradle.FROGO_UI)
api(DependencyGradle.FROGO_RECYCLER_VIEW)

api(Androidx.emoji2)

Expand Down

0 comments on commit 5bb595c

Please sign in to comment.