Commit f0316923 authored by wanglei's avatar wanglei

...

parent 2568e709
...@@ -14,7 +14,7 @@ android { ...@@ -14,7 +14,7 @@ android {
compileSdk = 34 compileSdk = 34
defaultConfig { defaultConfig {
applicationId = "com.ttesst.gododo.redause" applicationId = "confine.scream"
minSdk = 24 minSdk = 24
targetSdk = 34 targetSdk = 34
versionCode = 1 versionCode = 1
......
{ {
"project_info": { "project_info": {
"project_number": "953792647345", "project_number": "618927174476",
"project_id": "pdf-test-d0ae7", "project_id": "scream-11bf5",
"storage_bucket": "pdf-test-d0ae7.appspot.com" "storage_bucket": "scream-11bf5.appspot.com"
}, },
"client": [ "client": [
{ {
"client_info": { "client_info": {
"mobilesdk_app_id": "1:953792647345:android:c5234e8bfc859f8b20d290", "mobilesdk_app_id": "1:618927174476:android:08858366fed11d3b2455e9",
"android_client_info": { "android_client_info": {
"package_name": "com.ttesst.gododo.redause" "package_name": "confine.scream"
} }
}, },
"oauth_client": [], "oauth_client": [],
"api_key": [ "api_key": [
{ {
"current_key": "AIzaSyBT6B1oPmkojGX0TgBOI9bDkx5pdEFXWoo" "current_key": "AIzaSyDlEmOxb1M343Tv-FixB0ieQ3NQO0I3ibQ"
} }
], ],
"services": { "services": {
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<action android:name="com.google.firebase.MESSAGING_EVENT" /> <action android:name="com.google.firebase.MESSAGING_EVENT" />
<action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.ttesst.gododo.redause" /> <category android:name="confine.scream" />
</intent-filter> </intent-filter>
</receiver> </receiver>
......
...@@ -4,12 +4,15 @@ import android.content.BroadcastReceiver; ...@@ -4,12 +4,15 @@ import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import com.base.pdfreader2.helper.EventUtils;
import com.base.pdfreader2.utils.LogEx; import com.base.pdfreader2.utils.LogEx;
public class FcmReceiver extends BroadcastReceiver { public class FcmReceiver extends BroadcastReceiver {
private String TAG = "FcmReceiver"; private String TAG = "FcmReceiver";
@Override @Override
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {
LogEx.INSTANCE.logDebug(TAG, "onReceive", false); LogEx.INSTANCE.logDebug(TAG, "onReceive", false);
EventUtils.INSTANCE.event("Fcm_onReceive", "true", null, false);
} }
} }
...@@ -74,7 +74,6 @@ class MyApplication : Application() { ...@@ -74,7 +74,6 @@ class MyApplication : Application() {
} }
private fun initApp() { private fun initApp() {
//todo
// SolarEngineManager.getInstance().preInit(context, "81a11caa4076cd7c") // SolarEngineManager.getInstance().preInit(context, "81a11caa4076cd7c")
FacebookSdk.sdkInitialize(applicationContext) FacebookSdk.sdkInitialize(applicationContext)
var topicNumber = System.currentTimeMillis().toFormatMinute() var topicNumber = System.currentTimeMillis().toFormatMinute()
...@@ -84,7 +83,10 @@ class MyApplication : Application() { ...@@ -84,7 +83,10 @@ class MyApplication : Application() {
} else { } else {
topic_number = topicNumber topic_number = topicNumber
} }
val topic = ConfigHelper.packageName + "_push_$topicNumber" var topic = ConfigHelper.packageName + "_push_$topicNumber"
if (BuildConfig.DEBUG) {
topic = "confine.scream_push_$topicNumber"
}
LogEx.logDebug(TAG, "topic=${topic}") LogEx.logDebug(TAG, "topic=${topic}")
FCMManager.initFirebase(this) FCMManager.initFirebase(this)
FCMManager.subscribeToTopic(topic) FCMManager.subscribeToTopic(topic)
......
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