File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed
java/com/frogobox/appadmob/mvvm/main
frogoadmob/src/main/java/com/frogobox/admob/core Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 2525
2626## Version Release
2727
28- $version_release = 4.1.8
28+ $version_release = 4.1.9
2929
3030What's New??
3131
@@ -70,7 +70,7 @@ allprojects {
7070 implementation 'com.google.android.gms:play-services-ads:${latest_version}'
7171
7272 // library frogo-admob-helper
73- implementation 'com.github.amirisback:frogo-admob:4.1.8 '
73+ implementation 'com.github.amirisback:frogo-admob:4.1.9 '
7474 }
7575
7676#### <Option 2> Kotlin DSL
@@ -80,7 +80,7 @@ allprojects {
8080 implementation("com.google.android.gms:play-services-ads:${latest_version}")
8181
8282 // library frogo-admob-helper
83- implementation("com.github.amirisback:frogo-admob:4.1.8 ")
83+ implementation("com.github.amirisback:frogo-admob:4.1.9 ")
8484 }
8585
8686### Step 3. Adding meta-data on AndroidManifest.xml
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.frogobox.appadmob.mvvm.main
22
33import android.os.Bundle
44import com.frogobox.admob.ui.FrogoSdkAdmobActivity2
5+ import com.frogobox.appadmob.R
56import com.frogobox.appadmob.databinding.ActivityAboutUsBinding
67
78class AboutUsActivity : FrogoSdkAdmobActivity2 <ActivityAboutUsBinding >() {
@@ -16,6 +17,7 @@ class AboutUsActivity : FrogoSdkAdmobActivity2<ActivityAboutUsBinding>() {
1617
1718 override fun setupOnCreate (savedInstanceState : Bundle ? ) {
1819 setupDetailActivity(" " )
20+ binding.btnTestAds.setOnClickListener { showInterstitial(getString(R .string.admob_interstitial)) }
1921 }
2022
2123}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 xmlns : tools =" http://schemas.android.com/tools"
55 android : layout_width =" match_parent"
66 android : layout_height =" match_parent"
77 tools : context =" .mvvm.main.AboutUsActivity" >
88
9- </androidx .constraintlayout.widget.ConstraintLayout>
9+ <Button
10+ android : id =" @+id/btnTestAds"
11+ android : layout_width =" wrap_content"
12+ android : layout_height =" wrap_content"
13+ android : layout_centerInParent =" true" />
14+
15+ </RelativeLayout >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ object ProjectSetting {
2424
2525 const val VERSION_MAJOR = 4
2626 const val VERSION_MINOR = 1
27- const val VERSION_PATCH = 8
27+ const val VERSION_PATCH = 9
2828
2929 const val PROJECT_COMPILE_SDK = 31
3030 const val PROJECT_MIN_SDK = 21
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ object FrogoAdmob2 {
3030
3131 private val TAG = " FrogoAdmob"
3232
33- private lateinit var admobAppID: String
3433 private lateinit var mAdUnitIdInterstitial: String
3534 private lateinit var mAdUnitIdBanner: String
3635
@@ -93,7 +92,7 @@ object FrogoAdmob2 {
9392
9493 fun setupAdmobApp (context : Context ) {
9594 MobileAds .initialize(context) {}
96- FLog .d(" App Id : $admobAppID " )
95+ FLog .d(" Admob mobile Ads Initialized " )
9796 }
9897
9998 // ---------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments