Commit d2f94b79 authored by wanglei's avatar wanglei

...

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