Commit 50b66f58 authored by wanglei's avatar wanglei

...

parent 6b1a61ad
......@@ -10,7 +10,7 @@ android {
compileSdk 34
defaultConfig {
applicationId "confine.scream"
applicationId "com.asdqwe.ada.aaa"
minSdk 24
targetSdk 34
versionCode 25
......
{
"project_info": {
"project_number": "944507974954",
"project_id": "dumpster-photo-recovery",
"storage_bucket": "dumpster-photo-recovery.appspot.com"
"project_number": "136978743377",
"project_id": "test-6d2d1",
"storage_bucket": "test-6d2d1.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:944507974954:android:1309986ccc55e242589a53",
"mobilesdk_app_id": "1:136978743377:android:7127da27894a4e56137870",
"android_client_info": {
"package_name": "confine.scream"
"package_name": "com.asdqwe.ada.aaa"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDBejd5HFvww_CVve-aFYRBjR-d6XwIBFA"
"current_key": "AIzaSyDE29qrwvxLPkQJ9LB5BCeO6b_CPPvaE9o"
}
],
"services": {
......
......@@ -6,17 +6,20 @@ import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.widget.Toast
import androidx.activity.addCallback
import com.base.filerecoveryrecyclebin.BuildConfig
import com.base.filerecoveryrecyclebin.GlobalConfig
import com.base.filerecoveryrecyclebin.bean.ConstObject.fcmNotification
import com.base.filerecoveryrecyclebin.bean.ConstObject.stayNotification
import com.base.filerecoveryrecyclebin.databinding.ActivitySettingBinding
import com.base.filerecoveryrecyclebin.fcm.FCMManager.subscribeToTopic
import com.base.filerecoveryrecyclebin.fcm.FCMManager.unsubscribeFromTopic
import com.base.filerecoveryrecyclebin.fcm.NotificationUtil
import com.base.filerecoveryrecyclebin.help.BaseActivity
import com.base.filerecoveryrecyclebin.help.ConfigHelper
import com.base.filerecoveryrecyclebin.service.StayJobService
import com.base.filerecoveryrecyclebin.service.StayJobService.Companion.startJob
import com.base.filerecoveryrecyclebin.utils.AppPreferences
import com.base.filerecoveryrecyclebin.utils.BarUtils
import com.base.filerecoveryrecyclebin.view.RateStarPop.showRateStarPopDialog
......@@ -74,10 +77,22 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
}
binding.llScore.setOnClickListener {
showRateStarPopDialog(mustShow = true)
// NotificationUtil.sendNotification(this, ConstObject.ID_XINGZUO)
if (BuildConfig.DEBUG) {
NotificationUtil.sendNotification(this, "test")
} else {
showRateStarPopDialog(mustShow = true)
}
}
if (BuildConfig.DEBUG) {
val token = AppPreferences.getInstance().getString("token", "null")
binding.tvToken.text = token
binding.tvToken.setOnClickListener {
copyText(this, "aa")
}
}
}
fun copyText(context: Context, text: String?) {
......@@ -85,5 +100,6 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
context.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
val clip = ClipData.newPlainText("simple text", text)
clipboardManager.setPrimaryClip(clip)
Toast.makeText(context, "copy token", Toast.LENGTH_SHORT).show()
}
}
\ No newline at end of file
......@@ -266,4 +266,10 @@
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/tvToken"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
\ No newline at end of file
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