Commit 4157d9bd authored by kuxulei's avatar kuxulei

替换成正式广告ID

parent eb2d4f9d
{ {
"project_info": { "project_info": {
"project_number": "136978743377", "project_number": "994045210083",
"project_id": "test-6d2d1", "project_id": "file-clean-junk---quick",
"storage_bucket": "test-6d2d1.firebasestorage.app" "storage_bucket": "file-clean-junk---quick.firebasestorage.app"
}, },
"client": [ "client": [
{ {
"client_info": { "client_info": {
"mobilesdk_app_id": "1:136978743377:android:7127da27894a4e56137870", "mobilesdk_app_id": "1:994045210083:android:0727da20f4ef823edd44d6",
"android_client_info": { "android_client_info": {
"package_name": "com.eig.fileclean.wh.ag" "package_name": "com.nin.filecleanqu.wh.ag"
} }
}, },
"oauth_client": [], "oauth_client": [],
"api_key": [ "api_key": [
{ {
"current_key": "AIzaSyDE29qrwvxLPkQJ9LB5BCeO6b_CPPvaE9o" "current_key": "AIzaSyDIuwpLwecKdXVZSB1Otm4TIo0KusIM5S4"
} }
], ],
"services": { "services": {
......
...@@ -313,10 +313,10 @@ ...@@ -313,10 +313,10 @@
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 --> <!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data <meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID" 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 <meta-data
android:name="com.facebook.sdk.ApplicationId" android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" /> android:value="1138962274559879" />
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -98,49 +98,49 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() { ...@@ -98,49 +98,49 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
showRateStarPopDialog(mustShow = true) showRateStarPopDialog(mustShow = true)
// NotificationUtil.sendNotification(this, ConstObject.ID_XINGZUO) // NotificationUtil.sendNotification(this, ConstObject.ID_XINGZUO)
} }
//
val token = AppPreferences.getInstance().getString("token", "") // val token = AppPreferences.getInstance().getString("token", "")
binding.textToCopy.text = token // binding.textToCopy.text = token
//
// 维护一个索引变量来追踪当前通知 //// 维护一个索引变量来追踪当前通知
var currentNotificationIndex = 0 // var currentNotificationIndex = 0
//
binding.btnText.setOnClickListener { // binding.btnText.setOnClickListener {
// 定义通知ID列表 // // 定义通知ID列表
val notificationIds = listOf( // val notificationIds = listOf(
ConstObject.ID_JUNK_CLEAN_PUSH, // ConstObject.ID_JUNK_CLEAN_PUSH,
ConstObject.ID_SIMILAR_IMAGE, // ConstObject.ID_SIMILAR_IMAGE,
ConstObject.ID_SCREENSHOT_CLEAN, // ConstObject.ID_SCREENSHOT_CLEAN,
ConstObject.ID_RECOVERY_PHOTOS, // ConstObject.ID_RECOVERY_PHOTOS,
ConstObject.ID_RECOVERY_VIDEOS, // ConstObject.ID_RECOVERY_VIDEOS,
ConstObject.ID_RECOVERY_DOCUMENTS, // ConstObject.ID_RECOVERY_DOCUMENTS,
ConstObject.ID_WHATSAPP, // ConstObject.ID_WHATSAPP,
ConstObject.ID_APP_PROCESS, // ConstObject.ID_APP_PROCESS,
ConstObject.ID_APP_MANAGER, // ConstObject.ID_APP_MANAGER,
ConstObject.ID_BATTERY_INFO, // ConstObject.ID_BATTERY_INFO,
ConstObject.ID_XINGZUO, // ConstObject.ID_XINGZUO,
ConstObject.ID_WHEATHER // ConstObject.ID_WHEATHER
) // )
//
// 检查是否还有通知可以发送 // // 检查是否还有通知可以发送
if (currentNotificationIndex < notificationIds.size) { // if (currentNotificationIndex < notificationIds.size) {
// 获取当前通知ID // // 获取当前通知ID
val notificationId = notificationIds[currentNotificationIndex] // val notificationId = notificationIds[currentNotificationIndex]
//
// 发送通知 // // 发送通知
NotificationUtil.sendNotification(this, notificationId) // NotificationUtil.sendNotification(this, notificationId)
//
// 更新索引,指向下一个通知 // // 更新索引,指向下一个通知
currentNotificationIndex++ // currentNotificationIndex++
} else { // } else {
// 所有通知已发送完,显示提示信息 // // 所有通知已发送完,显示提示信息
Log.d("Notification", "All notifications have been sent.") // Log.d("Notification", "All notifications have been sent.")
Toast.makeText(this, "所有通知已发送完!", Toast.LENGTH_SHORT).show() // Toast.makeText(this, "所有通知已发送完!", Toast.LENGTH_SHORT).show()
//
// 重置索引,从头开始发送通知 // // 重置索引,从头开始发送通知
currentNotificationIndex = 0 // currentNotificationIndex = 0
} // }
} // }
......
...@@ -18,10 +18,10 @@ object ConfigHelper { ...@@ -18,10 +18,10 @@ object ConfigHelper {
const val nativeAdmobIdTest = "ca-app-pub-3940256099942544/2247696110" const val nativeAdmobIdTest = "ca-app-pub-3940256099942544/2247696110"
// admob广告id // admob广告id
const val interAdmobId = "ca-app-pub-3940256099942544/1033173712" const val interAdmobId = "ca-app-pub-4149956191269663/4989886658"
const val nativeAdmobId = "ca-app-pub-3940256099942544/2247696110" const val nativeAdmobId = "ca-app-pub-4149956191269663/7375203384"
const val openAdmobId = "ca-app-pub-3940256099942544/9257395921" const val openAdmobId = "ca-app-pub-4149956191269663/2363723315"
const val bannerAdmobId = "ca-app-pub-3940256099942544/9214589741" const val bannerAdmobId = "ca-app-pub-4149956191269663/6781705812"
//max id //max id
const val interAdMaxId = "b31e7f6d11ee659e" const val interAdMaxId = "b31e7f6d11ee659e"
......
...@@ -269,24 +269,24 @@ ...@@ -269,24 +269,24 @@
<Button <!-- <Button-->
android:id="@+id/btn_text" <!-- android:id="@+id/btn_text"-->
android:layout_width="wrap_content" <!-- android:layout_width="wrap_content"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:text="测试推送" <!-- android:text="测试推送"-->
android:layout_marginTop="30dp" <!-- android:layout_marginTop="30dp"-->
/> <!-- />-->
<TextView <!-- <TextView-->
android:id="@+id/textToCopy" <!-- android:id="@+id/textToCopy"-->
android:layout_width="wrap_content" <!-- android:layout_width="wrap_content"-->
android:layout_height="wrap_content" <!-- android:layout_height="wrap_content"-->
android:layout_centerHorizontal="true" <!-- android:layout_centerHorizontal="true"-->
android:layout_marginTop="30dp" <!-- android:layout_marginTop="30dp"-->
android:text="这里是你想复制的token" <!-- android:text="这里是你想复制的token"-->
android:textColor="@color/black" <!-- android:textColor="@color/black"-->
android:textIsSelectable="true" <!-- android:textIsSelectable="true"-->
android:textSize="18sp" /> <!-- android:textSize="18sp" />-->
......
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