Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
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
File Recovery RecycleBin
Commits
4157d9bd
Commit
4157d9bd
authored
Feb 12, 2025
by
kuxulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换成正式广告ID
parent
eb2d4f9d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
73 deletions
+73
-73
google-services.json
app/google-services.json
+6
-6
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-2
SettingActivity.kt
...m/base/filerecoveryrecyclebin/activity/SettingActivity.kt
+43
-43
ConfigHelper.kt
...java/com/base/filerecoveryrecyclebin/help/ConfigHelper.kt
+4
-4
activity_setting.xml
app/src/main/res/layout/activity_setting.xml
+18
-18
No files found.
app/google-services.json
View file @
4157d9bd
{
"project_info"
:
{
"project_number"
:
"
136978743377
"
,
"project_id"
:
"
test-6d2d1
"
,
"storage_bucket"
:
"
test-6d2d1
.firebasestorage.app"
"project_number"
:
"
994045210083
"
,
"project_id"
:
"
file-clean-junk---quick
"
,
"storage_bucket"
:
"
file-clean-junk---quick
.firebasestorage.app"
},
"client"
:
[
{
"client_info"
:
{
"mobilesdk_app_id"
:
"1:
136978743377:android:7127da27894a4e56137870
"
,
"mobilesdk_app_id"
:
"1:
994045210083:android:0727da20f4ef823edd44d6
"
,
"android_client_info"
:
{
"package_name"
:
"com.
eig.fileclean
.wh.ag"
"package_name"
:
"com.
nin.filecleanqu
.wh.ag"
}
},
"oauth_client"
:
[],
"api_key"
:
[
{
"current_key"
:
"AIzaSyD
E29qrwvxLPkQJ9LB5BCeO6b_CPPvaE9o
"
"current_key"
:
"AIzaSyD
IuwpLwecKdXVZSB1Otm4TIo0KusIM5S4
"
}
],
"services"
:
{
...
...
app/src/main/AndroidManifest.xml
View file @
4157d9bd
...
...
@@ -313,10 +313,10 @@
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:value=
"ca-app-pub-
3940256099942544~3347511713
"
/>
android:value=
"ca-app-pub-
4149956191269663~3105959345
"
/>
<meta-data
android:name=
"com.facebook.sdk.ApplicationId"
android:value=
"
@string/facebook_app_id
"
/>
android:value=
"
1138962274559879
"
/>
</application>
</manifest>
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/activity/SettingActivity.kt
View file @
4157d9bd
...
...
@@ -98,49 +98,49 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
showRateStarPopDialog
(
mustShow
=
true
)
// NotificationUtil.sendNotification(this, ConstObject.ID_XINGZUO)
}
val
token
=
AppPreferences
.
getInstance
().
getString
(
"token"
,
""
)
binding
.
textToCopy
.
text
=
token
// 维护一个索引变量来追踪当前通知
var
currentNotificationIndex
=
0
binding
.
btnText
.
setOnClickListener
{
// 定义通知ID列表
val
notificationIds
=
listOf
(
ConstObject
.
ID_JUNK_CLEAN_PUSH
,
ConstObject
.
ID_SIMILAR_IMAGE
,
ConstObject
.
ID_SCREENSHOT_CLEAN
,
ConstObject
.
ID_RECOVERY_PHOTOS
,
ConstObject
.
ID_RECOVERY_VIDEOS
,
ConstObject
.
ID_RECOVERY_DOCUMENTS
,
ConstObject
.
ID_WHATSAPP
,
ConstObject
.
ID_APP_PROCESS
,
ConstObject
.
ID_APP_MANAGER
,
ConstObject
.
ID_BATTERY_INFO
,
ConstObject
.
ID_XINGZUO
,
ConstObject
.
ID_WHEATHER
)
// 检查是否还有通知可以发送
if
(
currentNotificationIndex
<
notificationIds
.
size
)
{
// 获取当前通知ID
val
notificationId
=
notificationIds
[
currentNotificationIndex
]
// 发送通知
NotificationUtil
.
sendNotification
(
this
,
notificationId
)
// 更新索引,指向下一个通知
currentNotificationIndex
++
}
else
{
// 所有通知已发送完,显示提示信息
Log
.
d
(
"Notification"
,
"All notifications have been sent."
)
Toast
.
makeText
(
this
,
"所有通知已发送完!"
,
Toast
.
LENGTH_SHORT
).
show
()
// 重置索引,从头开始发送通知
currentNotificationIndex
=
0
}
}
//
//
val token = AppPreferences.getInstance().getString("token", "")
//
binding.textToCopy.text = token
//
//
//
维护一个索引变量来追踪当前通知
//
var currentNotificationIndex = 0
//
//
binding.btnText.setOnClickListener {
//
// 定义通知ID列表
//
val notificationIds = listOf(
//
ConstObject.ID_JUNK_CLEAN_PUSH,
//
ConstObject.ID_SIMILAR_IMAGE,
//
ConstObject.ID_SCREENSHOT_CLEAN,
//
ConstObject.ID_RECOVERY_PHOTOS,
//
ConstObject.ID_RECOVERY_VIDEOS,
//
ConstObject.ID_RECOVERY_DOCUMENTS,
//
ConstObject.ID_WHATSAPP,
//
ConstObject.ID_APP_PROCESS,
//
ConstObject.ID_APP_MANAGER,
//
ConstObject.ID_BATTERY_INFO,
//
ConstObject.ID_XINGZUO,
//
ConstObject.ID_WHEATHER
//
)
//
//
// 检查是否还有通知可以发送
//
if (currentNotificationIndex < notificationIds.size) {
//
// 获取当前通知ID
//
val notificationId = notificationIds[currentNotificationIndex]
//
//
// 发送通知
//
NotificationUtil.sendNotification(this, notificationId)
//
//
// 更新索引,指向下一个通知
//
currentNotificationIndex++
//
} else {
//
// 所有通知已发送完,显示提示信息
//
Log.d("Notification", "All notifications have been sent.")
//
Toast.makeText(this, "所有通知已发送完!", Toast.LENGTH_SHORT).show()
//
//
// 重置索引,从头开始发送通知
//
currentNotificationIndex = 0
//
}
//
}
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/help/ConfigHelper.kt
View file @
4157d9bd
...
...
@@ -18,10 +18,10 @@ object ConfigHelper {
const
val
nativeAdmobIdTest
=
"ca-app-pub-3940256099942544/2247696110"
// admob广告id
const
val
interAdmobId
=
"ca-app-pub-
3940256099942544/1033173712
"
const
val
nativeAdmobId
=
"ca-app-pub-
3940256099942544/2247696110
"
const
val
openAdmobId
=
"ca-app-pub-
3940256099942544/9257395921
"
const
val
bannerAdmobId
=
"ca-app-pub-
3940256099942544/9214589741
"
const
val
interAdmobId
=
"ca-app-pub-
4149956191269663/4989886658
"
const
val
nativeAdmobId
=
"ca-app-pub-
4149956191269663/7375203384
"
const
val
openAdmobId
=
"ca-app-pub-
4149956191269663/2363723315
"
const
val
bannerAdmobId
=
"ca-app-pub-
4149956191269663/6781705812
"
//max id
const
val
interAdMaxId
=
"b31e7f6d11ee659e"
...
...
app/src/main/res/layout/activity_setting.xml
View file @
4157d9bd
...
...
@@ -269,24 +269,24 @@
<Button
android:id=
"@+id/btn_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"测试推送"
android:layout_marginTop=
"30dp"
/
>
<TextView
android:id=
"@+id/textToCopy"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"30dp"
android:text=
"这里是你想复制的token"
android:textColor=
"@color/black"
android:textIsSelectable=
"true"
android:textSize=
"18sp"
/
>
<!-- <Button-->
<!-- android:id="@+id/btn_text"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="测试推送"-->
<!-- android:layout_marginTop="30dp"-->
<!-- />--
>
<!-- <TextView-->
<!-- android:id="@+id/textToCopy"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_centerHorizontal="true"-->
<!-- android:layout_marginTop="30dp"-->
<!-- android:text="这里是你想复制的token"-->
<!-- android:textColor="@color/black"-->
<!-- android:textIsSelectable="true"-->
<!-- android:textSize="18sp" />--
>
...
...
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