Skip to content

Commit

Permalink
Added type token approach for proguard handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Dhamija authored and Rajat Dhamija committed Apr 11, 2023
1 parent 73d842c commit c0e1059
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .safedk/hashes.safedk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Tue Apr 11 15:25:45 IST 2023
json=626627307
#Tue Apr 11 17:10:50 IST 2023
json=-1486097007
2 changes: 1 addition & 1 deletion .safedk/plugin.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
#Tue Apr 11 15:25:45 IST 2023
#Tue Apr 11 17:10:50 IST 2023
gcyVX2np_6N23XxVZWl_N5eTnUgybgZyIMqdBXeWJG4Rniy3LcTOhMvrRTQLpcMePJw9t1uk4O0X2yHg2RNpE9=pA3NAGLWSFkdUbKoK9gLEDnpXe6x8XU6D2TgT5vsHlZXt4FATcoLWTvA3fHBVhG6hh7HJWJa6JD1akUlTlVgwx
sdk_analysis_plugin_version=4.9.1
set_multidex=true
1 change: 1 addition & 0 deletions adsdk/src/main/java/com/appyhigh/adsdk/AdSdk.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ object AdSdk {
null
} ?: return
try {
Log.d(AdSdkConstants.TAG, "initialize")
val fileData = readDefaultAdResponseFile(inputStream)
SharedPrefs.init(application)
adConfig.initWithLocalFile(fileData)
Expand Down
3 changes: 3 additions & 0 deletions adsdk/src/main/java/com/appyhigh/adsdk/utils/AdConfig.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.appyhigh.adsdk.utils

import android.annotation.SuppressLint
import android.util.Log
import com.appyhigh.adsdk.AdSdkConstants
import com.appyhigh.adsdk.data.enums.AdProvider
import com.appyhigh.adsdk.data.enums.AdType
Expand Down Expand Up @@ -37,6 +38,7 @@ internal class AdConfig {

fun init() {
if (adResponse == null) {
Log.d(AdSdkConstants.TAG, "init Adconfig")
try {
val gson = Gson()
if (SharedPrefs.getString(AdSdkConstants.AD_CONFIG_RESPONSE).isNullOrBlank()) {
Expand All @@ -47,6 +49,7 @@ internal class AdConfig {
SharedPrefs.getString(AdSdkConstants.AD_CONFIG_RESPONSE),
object : TypeToken<AdResponse>() {}.type
)
Log.d(AdSdkConstants.TAG, adResponse.toString())
adResponse?.let {
for (adItem in it.app?.adMob!!) {
adsMap[adItem.ad_name!!] = adItem
Expand Down

0 comments on commit c0e1059

Please sign in to comment.