Skip to content

Commit

Permalink
Release v5.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Apr 27, 2024
1 parent 1a1b7f9 commit 7444d54
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 74 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

## Version Release

$version_release = 5.3.6
$version_release = 5.3.7

// Suport Library
$admob_version = 23.0.0 // https://developers.google.com/admob/android/sdk
$unity_ad_version = 4.9.1 // https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
$unity_ad_version = 4.10.0 // https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter

What's New??

Expand Down Expand Up @@ -83,16 +83,16 @@ allprojects {
implementation 'com.unity3d.ads:unity-ads:${unity_ad_version}'

// library frogo-admob (Required - Recomended)
implementation 'com.github.amirisback:frogo-admob:5.3.6'
implementation 'com.github.amirisback:frogo-admob:5.3.7'

// -----------------------------------------------------------------------------------------
// For Single Library Patch

// library frogo-admob (Admob Only)
implementation 'com.github.amirisback.frogo-admob:ad-admob:5.3.6'
implementation 'com.github.amirisback.frogo-admob:ad-admob:5.3.7'

// library frogo-admob (Unity Ads Only)
implementation 'com.github.amirisback.frogo-admob:ad-unityad:5.3.6'
implementation 'com.github.amirisback.frogo-admob:ad-unityad:5.3.7'
}

#### <Option 2> Kotlin DSL
Expand All @@ -105,16 +105,16 @@ allprojects {
implementation("com.unity3d.ads:unity-ads:${unity_ad_version}")

// library frogo-admob (Required - Recomended)
implementation("com.github.amirisback:frogo-admob:5.3.6")
implementation("com.github.amirisback:frogo-admob:5.3.7")

// -----------------------------------------------------------------------------------------
// For Single Library Patch

// library frogo-admob (Admob Only)
implementation("com.github.amirisback.frogo-admob:ad-admob:5.3.6")
implementation("com.github.amirisback.frogo-admob:ad-admob:5.3.7")

// library frogo-admob (Unity Ads Only)
implementation("com.github.amirisback.frogo-admob:ad-unityad:5.3.6")
implementation("com.github.amirisback.frogo-admob:ad-unityad:5.3.7")

}

Expand Down
1 change: 0 additions & 1 deletion ad-unityad/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ android {

defaultConfig {
minSdk = ProjectSetting.PROJECT_MIN_SDK
targetSdk = ProjectSetting.PROJECT_TARGET_SDK

multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ object FrogoUnityAd : IFrogoUnityAd {

}

override fun setupUnityAdApp(context: Context, testMode: Boolean, unityGameId: String) {
setupUnityAdApp(context, testMode, unityGameId, null)
}

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

override fun showAdInterstitial(
Expand Down Expand Up @@ -127,8 +123,4 @@ object FrogoUnityAd : IFrogoUnityAd {
}
}

override fun showAdInterstitial(activity: Activity, adInterstitialUnitId: String) {
showAdInterstitial(activity, adInterstitialUnitId, null)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,19 @@ import com.frogobox.unityad.callback.FrogoUnityAdInterstitialCallback

interface IFrogoUnityAd {

fun setupUnityAdApp(context: Context, testMode: Boolean, unityGameId: String)

fun setupUnityAdApp(
context: Context,
testMode: Boolean,
unityGameId: String,
callback: FrogoUnityAdInitializationCallback?
callback: FrogoUnityAdInitializationCallback? = null
)

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

fun showAdInterstitial(activity: Activity, adInterstitialUnitId: String)

fun showAdInterstitial(
activity: Activity,
adInterstitialUnitId: String,
callback: FrogoUnityAdInterstitialCallback?
callback: FrogoUnityAdInterstitialCallback? = null
)

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,15 @@ interface UnityAdDelegates {

fun setupUnityAdDelegates(activity: AppCompatActivity)

fun setupUnityAdApp(
testMode: Boolean,
unityGameId: String
)

fun setupUnityAdApp(
testMode: Boolean,
unityGameId: String,
callback: FrogoUnityAdInitializationCallback
)

fun showUnityAdInterstitial(
adInterstitialUnitId: String
callback: FrogoUnityAdInitializationCallback? = null
)

fun showUnityAdInterstitial(
adInterstitialUnitId: String,
callback: FrogoUnityAdInterstitialCallback
callback: FrogoUnityAdInterstitialCallback? = null
)

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,20 @@ class UnityAdDelegatesImpl : UnityAdDelegates {

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

override fun setupUnityAdApp(testMode: Boolean, unityGameId: String) {
FrogoUnityAd.setupUnityAdApp(unityAdDelegatesActivity, testMode, unityGameId)
}

override fun setupUnityAdApp(
testMode: Boolean,
unityGameId: String,
callback: FrogoUnityAdInitializationCallback
callback: FrogoUnityAdInitializationCallback?
) {
FrogoUnityAd.setupUnityAdApp(unityAdDelegatesActivity, testMode, unityGameId, callback)
}

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

override fun showUnityAdInterstitial(adInterstitialUnitId: String) {
FrogoUnityAd.showAdInterstitial(unityAdDelegatesActivity, adInterstitialUnitId)
}

override fun showUnityAdInterstitial(
adInterstitialUnitId: String,
callback: FrogoUnityAdInterstitialCallback
callback: FrogoUnityAdInterstitialCallback?
) {
FrogoUnityAd.showAdInterstitial(unityAdDelegatesActivity, adInterstitialUnitId, callback)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.Context
import com.frogobox.coresdk.response.FrogoDataResponse
import com.frogobox.sdk.delegate.preference.PreferenceDelegatesImpl
import com.frogobox.sdk.ext.showLogDebug
import com.frogobox.sdk.ext.toModel
import com.frogobox.sdk.source.FrogoLocalDataSource
import com.frogobox.sdk.util.AppExecutors
import com.google.android.gms.ads.interstitial.InterstitialAd
Expand All @@ -29,28 +30,10 @@ class AdmobLocalDataSource(
) : FrogoLocalDataSource(appExecutors, preferences), AdmobDataSource {

override fun getInterstitial(context: Context, callback: FrogoDataResponse<InterstitialAd>) {
getPrefString("PREF_INTERSTITIAL_AD", object : FrogoDataResponse<String> {
override fun onFailed(statusCode: Int, errorMessage: String) {
callback.onFailed(statusCode, errorMessage)
}

override fun onFinish() {
callback.onFinish()
}

override fun onHideProgress() {
callback.onHideProgress()
}

override fun onShowProgress() {
callback.onFinish()
}

override fun onSuccess(data: String) {
showLogDebug(data)
callback.onSuccess(Gson().fromJson(data, InterstitialAd::class.java))
}
})
callback.onShowProgress()
val data = getPrefString("PREF_INTERSTITIAL_AD")
callback.onSuccess(Gson().fromJson(data, InterstitialAd::class.java))
callback.onHideProgress()
}

override fun saveInterstitial(interstitialAd: InterstitialAd) {
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/java/com/frogobox/appadmob/util/AdHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ object AdHelper {

fun getAdOpenAppUnitId(context: Context?): String {
return if (context != null) {
PreferenceDelegatesImpl(
context,
Constant.PREFERENCE_NAME
).loadPrefString(Constant.PREF_AD_UNIT_ID, Constant.AD_UNIT_ID)
PreferenceDelegatesImpl(context, Constant.PREFERENCE_NAME).getPrefString(Constant.PREF_AD_UNIT_ID, Constant.AD_UNIT_ID)
} else {
Constant.AD_UNIT_ID
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ repositories {
dependencies{

// open-build-src
implementation("com.github.frogobox:open-build-src:3.0.3")
implementation("com.github.frogobox:open-build-src:3.0.4")

}
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/DependencyGradle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ object DependencyGradle {
const val KOTLIN_REFLECT = "org.jetbrains.kotlin:kotlin-reflect:$KOTLIN_VERSION"
const val COMPOSE_VERSION = Version.Androidx.composeCompiler

const val FROGO_UI_VERSION = "2.0.2"
const val FROGO_SDK_VERSION = "2.2.3"
const val FROGO_CONSUME_API_VERSION = "2.5.3"
const val FROGO_UI_VERSION = "2.0.3"
const val FROGO_SDK_VERSION = "2.2.4"
const val FROGO_CONSUME_API_VERSION = "2.5.4"
const val FROGO_RECYCLER_VIEW_VERSION = "4.4.1"

const val FROGO_UI = "com.github.frogobox:frogo-ui:$FROGO_UI_VERSION"
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 @@ -25,7 +25,7 @@ object ProjectSetting {

const val VERSION_MAJOR = 5
const val VERSION_MINOR = 3
const val VERSION_PATCH = 6
const val VERSION_PATCH = 7

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

Expand Down

0 comments on commit 7444d54

Please sign in to comment.