Skip to content

Commit

Permalink
Change In OpenAppApplication Class
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Harsoda committed Jan 1, 2022
1 parent dcf0e8a commit 44da23f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion adshelper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ afterEvaluate {

groupId = 'com.github.vickypathak123'
artifactId = 'Android-Ads-Helper'
version = '1.0.3'
version = '1.0.4'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@ import android.os.SystemClock
import android.provider.Settings
import android.util.Log
import android.webkit.WebView
import androidx.lifecycle.*
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ProcessLifecycleOwner
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication
import com.example.app.ads.helper.*
import com.example.app.ads.helper.dialogs.FullScreenNativeAdDialog
import com.example.app.ads.helper.isAppForeground
import com.example.app.ads.helper.isOpenAdEnable
import com.example.app.ads.helper.isAnyAdOpen
import com.example.app.ads.helper.isInterstitialAdShow
import com.example.app.ads.helper.setTestDeviceIds
import com.google.android.gms.ads.AdActivity
import com.google.android.gms.ads.MobileAds
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.util.*
import kotlin.collections.ArrayList

open class AppOpenApplication : MultiDexApplication(), DefaultLifecycleObserver {
Expand Down Expand Up @@ -119,7 +121,7 @@ open class AppOpenApplication : MultiDexApplication(), DefaultLifecycleObserver
return try {
val androidId: String = Settings.Secure.getString(this.contentResolver, Settings.Secure.ANDROID_ID)
val md5Data = customMD5(androidId)
val deviceId = md5Data?.uppercase(Locale.ENGLISH) ?: "null"
val deviceId = md5Data?.uppercase(java.util.Locale.ENGLISH) ?: "null"
println("getDeviceId: $deviceId")
deviceId
} catch (e: Exception) {
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ buildscript {
allprojects {
repositories {
mavenLocal()
// ADD IT HERE
maven { url "https://jitpack.io" }
jcenter()
maven { url "https://jitpack.io" }
}
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
jcenter() // Warning: this repository is going to shut down soon
maven { url "https://jitpack.io" }
}
}
rootProject.name = "Ads Helper"
Expand Down

0 comments on commit 44da23f

Please sign in to comment.