File tree Expand file tree Collapse file tree
src/main/java/com/kharagedition/tibetankeyboard/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ android {
1212 applicationId " com.kharagedition.tibetankeyboard"
1313 minSdkVersion 23
1414 targetSdkVersion 35
15- versionCode 13
16- versionName " 1.4.14 "
15+ versionCode 16
16+ versionName " 1.7.18 "
1717
1818 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1919 multiDexEnabled true
@@ -39,6 +39,7 @@ android {
3939 }
4040 buildFeatures {
4141 viewBinding = true
42+ buildConfig = true
4243 }
4344 configurations {
4445 configureEach {
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import com.kharagedition.tibetankeyboard.databinding.ActivityHomeBinding
2222import com.kharagedition.tibetankeyboard.util.AppConstant
2323import com.kharagedition.tibetankeyboard.util.BottomSheetDialog
2424import com.kharagedition.tibetankeyboard.util.CommonUtils
25+ import com.kharagedition.tibetankeyboard.BuildConfig
26+
2527
2628
2729class HomeActivity : InputMethodActivity () {
@@ -50,7 +52,12 @@ class HomeActivity : InputMethodActivity() {
5052
5153 @SuppressLint(" NewApi" )
5254 private fun initNativeAds () {
53- val adLoader = AdLoader .Builder (this , AppConstant .TEST_ADS_NATIVE )
55+ val adUnitId = if (BuildConfig .DEBUG ) {
56+ AppConstant .TEST_APP_ID
57+ } else {
58+ AppConstant .PRODUCTION_ADS_NATIVE
59+ }
60+ val adLoader = AdLoader .Builder (this , adUnitId)
5461 .forNativeAd { ad: NativeAd ->
5562 if (isDestroyed) {
5663 ad.destroy()
Original file line number Diff line number Diff line change @@ -18,4 +18,5 @@ android.useAndroidX=true
1818# Automatically convert third-party libraries to use AndroidX
1919android.enableJetifier =true
2020# Kotlin code style for this project: "official" or "obsolete":
21- kotlin.code.style =official
21+ kotlin.code.style =official
22+ android.defaults.buildfeatures.buildconfig =true
You can’t perform that action at this time.
0 commit comments