Commit d2f94b79 authored by wanglei's avatar wanglei

...

parent e49c1ee4
......@@ -10,7 +10,7 @@ android {
compileSdk 34
defaultConfig {
applicationId "com.kk.cleanmaster.file.cleanmaster.master"
applicationId "com.base.datarecovery"
minSdk 24
targetSdk 34
versionCode 1
......
......@@ -9,7 +9,7 @@
"client_info": {
"mobilesdk_app_id": "1:286059626470:android:561dad747cfdbdaac0e027",
"android_client_info": {
"package_name": "com.kk.cleanmaster.file.cleanmaster.master"
"package_name": "com.base.datarecovery"
}
},
"oauth_client": [],
......
......@@ -16,10 +16,10 @@ import com.zhpan.indicator.enums.IndicatorStyle
class GuideActivity : BaseActivity<ActivityGuideBinding>() {
private val page1: GuideFragment by lazy {
GuideFragment(1)
GuideFragment().apply { page = 1 }
}
private val page2: GuideFragment by lazy {
GuideFragment(2)
GuideFragment().apply { page = 2 }
}
private val fragments by lazy {
mutableListOf(page1, page2)
......
......@@ -2,6 +2,7 @@ package com.base.datarecovery.activity.recovery
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Color
import android.os.Environment
......@@ -105,12 +106,14 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
private fun setThumbnails() = lifecycleScope.launch(Dispatchers.IO) {
var size = 0
folderBean?.recoveryList?.forEach {
folderBean?.recoveryList?.forEach { bean ->
runCatching {
val bitmap = BitmapFactory.decodeFile(it.path)
if (bitmap.height < 256 || bitmap.width < 256) {
size++
it.isThumbnails = true
val bitmap: Bitmap? = BitmapFactory.decodeFile(bean.path)
bitmap?.let {
if (it.height < 256 || it.width < 256) {
size++
bean.isThumbnails = true
}
}
}
}
......
......@@ -23,7 +23,8 @@ object AdMaxInit {
Log.d(TAG, "initAdMax")
// If you want to test your own AppLovin SDK key, change the value here and update the package name in the build.gradle
val YOUR_SDK_KEY = "GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW"
val YOUR_SDK_KEY = "05TMDQ5tZabpXQ45_UTbmEGNUtVAzSTzT6KmWQc5_CuWdzccS4DCITZoL3yIWUG3bbq60QC_d4WF28tUC4gVTF"
// val YOUR_SDK_KEY = "GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW"
val executor = Executors.newSingleThreadExecutor();
executor.execute {
......@@ -31,11 +32,13 @@ object AdMaxInit {
val initConfigBuilder = AppLovinSdkInitializationConfiguration.builder(YOUR_SDK_KEY, this)
initConfigBuilder.mediationProvider = AppLovinMediationProvider.MAX
// Enable test mode by default for the current device. Cannot be run on the main thread.
val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
if (currentGaid != null) {
initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
}
// AppLovinSdk.getInstance( this ).showMediationDebugger()
// val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
// if (currentGaid != null) {
// initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
// }
// Initialize the AppLovin SDK
val sdk = AppLovinSdk.getInstance(this)
......
......@@ -16,10 +16,9 @@ import com.base.datarecovery.databinding.FragmentGuideBinding
import com.base.datarecovery.help.BaseFragment
import com.base.datarecovery.utils.AppPreferences
class GuideFragment(
val page: Int
) : BaseFragment<FragmentGuideBinding>() {
class GuideFragment constructor() : BaseFragment<FragmentGuideBinding>() {
var page: Int = 1
override val binding: FragmentGuideBinding by lazy {
FragmentGuideBinding.inflate(layoutInflater)
......
......@@ -20,9 +20,9 @@ object ConfigHelper {
const val bannerAdmobId = "ca-app-pub-3940256099942544/9214589741"
//max广告id
const val interAdMaxId = "b31e7f6d11ee659e"
const val nativeAdMaxId = "96e8fe78b0efc5d1"
const val openAdMaxId = "d1d943cdd3127c90"
const val interAdMaxId = "a"
const val nativeAdMaxId = "b"
const val openAdMaxId = "c"
const val bannerMaxId = "ca-app-pub-3940256099942544/9214589741"
//一定展示大图广告
......
[versions]
agp = "8.0.0"
kotlin = "1.8.0"
kotlin = "1.9.0"
coreKtx = "1.8.1"
junit = "4.13.2"
junitVersion = "1.1.5"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment