Skip to content

Commit 18c9a3f

Browse files
committed
Release v5.3.8
1 parent 69bc1ca commit 18c9a3f

File tree

5 files changed

+70
-28
lines changed

5 files changed

+70
-28
lines changed

README.md

Lines changed: 59 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131

3232
## Version Release
3333

34-
$version_release = 5.3.7
34+
$version_release = 5.3.8
3535

3636
// Suport Library
37-
$admob_version = 23.0.0 // https://developers.google.com/admob/android/sdk
38-
$unity_ad_version = 4.10.0 // https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
37+
$admob_version = 23.3.0 // https://developers.google.com/admob/android/sdk
38+
$unity_ad_version = 4.12.1 // https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
3939

4040
What's New??
4141

4242
* Enhance Performance *
4343
* Refactoring Code *
44-
* Update Admob Library Version 23.0.0 *
44+
* Update Admob Library Version *
4545
* Deprecated Code *
4646

4747
## How To Use / Implement This Project
@@ -76,7 +76,7 @@ allprojects {
7676
### Step 2. Add the dependency
7777

7878
#### <Option 1> Groovy
79-
```kotlin
79+
```groovy
8080
dependencies {
8181
// library google admob (Required)
8282
implementation 'com.google.android.gms:play-services-ads:${admob_version}'
@@ -85,41 +85,78 @@ dependencies {
8585
implementation 'com.unity3d.ads:unity-ads:${unity_ad_version}'
8686
8787
// library frogo-admob (Required - Recomended)
88-
implementation 'com.github.amirisback:frogo-admob:5.3.7'
88+
implementation 'com.github.amirisback:frogo-admob:5.3.8'
8989
9090
// -----------------------------------------------------------------------------------------
9191
// For Single Library Patch
9292
9393
// library frogo-admob (Admob Only)
94-
implementation 'com.github.amirisback.frogo-admob:ad-admob:5.3.7'
94+
implementation 'com.github.amirisback.frogo-admob:ad-admob:5.3.8'
9595
9696
// library frogo-admob (Unity Ads Only)
97-
implementation 'com.github.amirisback.frogo-admob:ad-unityad:5.3.7'
97+
implementation 'com.github.amirisback.frogo-admob:ad-unityad:5.3.8'
9898
}
9999
```
100100

101101
#### <Option 2> Kotlin DSL
102+
```kotlin
103+
dependencies {
104+
// library google admob (Required)
105+
implementation("com.google.android.gms:play-services-ads:${admob_version}")
102106

103-
dependencies {
104-
// library google admob (Required)
105-
implementation("com.google.android.gms:play-services-ads:${admob_version}")
107+
// library unity ads (Required)
108+
implementation("com.unity3d.ads:unity-ads:${unity_ad_version}")
106109

107-
// library unity ads (Required)
108-
implementation("com.unity3d.ads:unity-ads:${unity_ad_version}")
110+
// library frogo-admob (Required - Recomended)
111+
implementation("com.github.amirisback:frogo-admob:5.3.8")
109112

110-
// library frogo-admob (Required - Recomended)
111-
implementation("com.github.amirisback:frogo-admob:5.3.7")
113+
// -----------------------------------------------------------------------------------------
114+
// For Single Library Patch
115+
116+
// library frogo-admob (Admob Only)
117+
implementation("com.github.amirisback.frogo-admob:ad-admob:5.3.8")
112118

113-
// -----------------------------------------------------------------------------------------
114-
// For Single Library Patch
119+
// library frogo-admob (Unity Ads Only)
120+
implementation("com.github.amirisback.frogo-admob:ad-unityad:5.3.8")
115121

116-
// library frogo-admob (Admob Only)
117-
implementation("com.github.amirisback.frogo-admob:ad-admob:5.3.7")
122+
}
123+
```
118124

119-
// library frogo-admob (Unity Ads Only)
120-
implementation("com.github.amirisback.frogo-admob:ad-unityad:5.3.7")
125+
#### <Option 3> Kotlin DSL
126+
```toml
127+
[versions]
128+
admob = "23.3.0"
129+
unityad = "4.12.1"
130+
frogoadmob = "5.3.8"
121131

122-
}
132+
[libraries]
133+
admob = { group = "com.google.android.gms", name = "play-services-ads", version.ref = "admob" }
134+
unityads = { group = "com.unity3d.ads", name = "unity-ads", version.ref = "unityad" }
135+
136+
frogo-admob = { group = "com.github.amirisback", name = "frogo-admob", version.ref = "frogoadmob" }
137+
frogo-admob-admob = { group = "com.github.amirisback.frogo-admob", name = "ad-admob", version.ref = "frogoadmob" }
138+
frogo-admob-unityads = { group = "com.github.amirisback.frogo-admob", name = "ad-unityad", version.ref = "frogoadmob" }
139+
140+
dependencies {
141+
// library google admob (Required)
142+
implementation(libs.admob)
143+
144+
// library unity ads (Required)
145+
implementation(libs.unityads)
146+
147+
// library frogo-admob
148+
implementation(libs.frogo.admob)
149+
150+
// -----------------------------------------------------------------------------------------
151+
// For Single Library Patch
152+
153+
// library frogo-admob (Admob Only)
154+
implementation(libs.frogo.admob.admob)
155+
156+
// library frogo-admob (Unity Ads Only)
157+
implementation(libs.frogo.admob.unityads)
158+
}
159+
```
123160

124161
### Step 3. Adding meta-data on AndroidManifest.xml
125162
```xml

ad-unityad/src/main/java/com/frogobox/unityad/delegate/UnityAdDelegatesImpl.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import androidx.appcompat.app.AppCompatActivity
44
import com.frogobox.unityad.callback.FrogoUnityAdInitializationCallback
55
import com.frogobox.unityad.callback.FrogoUnityAdInterstitialCallback
66
import com.frogobox.unityad.core.FrogoUnityAd
7+
import com.unity3d.ads.metadata.MetaData
78

89
/**
910
* Created by faisalamir on 22/03/22
@@ -29,6 +30,13 @@ class UnityAdDelegatesImpl : UnityAdDelegates {
2930

3031
override fun setupUnityAdDelegates(activity: AppCompatActivity) {
3132
unityAdDelegatesActivity = activity
33+
val gdprMetaData = MetaData(activity)
34+
gdprMetaData["gdpr.consent"] = true
35+
gdprMetaData.commit()
36+
37+
val ccpaMetaData = MetaData(activity)
38+
ccpaMetaData["privacy.consent"] = true
39+
ccpaMetaData.commit()
3240
}
3341

3442
// ---------------------------------------------------------------------------------------------
@@ -39,6 +47,7 @@ class UnityAdDelegatesImpl : UnityAdDelegates {
3947
unityGameId: String,
4048
callback: FrogoUnityAdInitializationCallback?
4149
) {
50+
4251
FrogoUnityAd.setupUnityAdApp(unityAdDelegatesActivity, testMode, unityGameId, callback)
4352
}
4453

buildSrc/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ plugins {
77
repositories {
88
mavenCentral()
99
maven("https://jitpack.io")
10-
}
11-
12-
dependencies{
13-
1410
}

buildSrc/src/main/kotlin/ProjectSetting.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object ProjectSetting {
2525

2626
const val VERSION_MAJOR = 5
2727
const val VERSION_MINOR = 3
28-
const val VERSION_PATCH = 7
28+
const val VERSION_PATCH = 8
2929

3030
// ---------------------------------------------------------------------------------------------
3131

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ liveCycle = "2.8.5"
44

55
# Ads Version
66
googleAdmob = "23.3.0" # https://developers.google.com/admob/android/quick-start
7-
unityAd = "4.10.0" # https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
7+
unityAd = "4.12.1" # https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
88
startIo = "4.11.5" # https://support.start.io/hc/en-us/articles/360014774799-Integration-via-Maven
99

1010
koin = "3.5.6"

0 commit comments

Comments
 (0)