Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery White
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Data Recovery White
Commits
d2f94b79
Commit
d2f94b79
authored
Jul 19, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
e49c1ee4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
21 deletions
+26
-21
build.gradle
app/build.gradle
+1
-1
google-services.json
app/google-services.json
+1
-1
GuideActivity.kt
...ava/com/base/datarecovery/activity/guide/GuideActivity.kt
+2
-2
FileRecoveryActivity.kt
...se/datarecovery/activity/recovery/FileRecoveryActivity.kt
+8
-5
AdMaxInit.kt
app/src/main/java/com/base/datarecovery/ads/max/AdMaxInit.kt
+8
-5
GuideFragment.kt
...main/java/com/base/datarecovery/fragment/GuideFragment.kt
+2
-3
ConfigHelper.kt
app/src/main/java/com/base/datarecovery/help/ConfigHelper.kt
+3
-3
libs.versions.toml
gradle/libs.versions.toml
+1
-1
No files found.
app/build.gradle
View file @
d2f94b79
...
...
@@ -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
...
...
app/google-services.json
View file @
d2f94b79
...
...
@@ -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"
:
[],
...
...
app/src/main/java/com/base/datarecovery/activity/guide/GuideActivity.kt
View file @
d2f94b79
...
...
@@ -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
)
...
...
app/src/main/java/com/base/datarecovery/activity/recovery/FileRecoveryActivity.kt
View file @
d2f94b79
...
...
@@ -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
}
}
}
}
...
...
app/src/main/java/com/base/datarecovery/ads/max/AdMaxInit.kt
View file @
d2f94b79
...
...
@@ -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
)
...
...
app/src/main/java/com/base/datarecovery/fragment/GuideFragment.kt
View file @
d2f94b79
...
...
@@ -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
)
...
...
app/src/main/java/com/base/datarecovery/help/ConfigHelper.kt
View file @
d2f94b79
...
...
@@ -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"
//一定展示大图广告
...
...
gradle/libs.versions.toml
View file @
d2f94b79
[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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment