|
@@ -84,8 +84,7 @@ project.ext.react = [
|
|
|
|
|
|
|
|
apply from: "../../node_modules/react-native/react.gradle"
|
|
apply from: "../../node_modules/react-native/react.gradle"
|
|
|
|
|
|
|
|
-//gms
|
|
|
|
|
-//apply plugin: 'com.google.gms.google-services'
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Set this to true to create two separate APKs instead of one:
|
|
* Set this to true to create two separate APKs instead of one:
|
|
@@ -145,7 +144,7 @@ aaptOptions.useNewCruncher = false
|
|
|
applicationId app_id
|
|
applicationId app_id
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
|
- versionCode 1
|
|
|
|
|
|
|
+ versionCode 4
|
|
|
versionName "1.0.1"
|
|
versionName "1.0.1"
|
|
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
|
manifestPlaceholders = [
|
|
manifestPlaceholders = [
|
|
@@ -263,6 +262,7 @@ dependencies {
|
|
|
implementation project(':jpush-react-native') // 添加 jpush 依赖
|
|
implementation project(':jpush-react-native') // 添加 jpush 依赖
|
|
|
implementation project(':jcore-react-native') // 添加 jcore 依赖
|
|
implementation project(':jcore-react-native') // 添加 jcore 依赖
|
|
|
|
|
|
|
|
|
|
+
|
|
|
//noinspection GradleDynamicVersion
|
|
//noinspection GradleDynamicVersion
|
|
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
|
|
|
|
|
@@ -292,8 +292,9 @@ dependencies {
|
|
|
implementation jscFlavor
|
|
implementation jscFlavor
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //gms
|
|
|
|
|
-// implementation 'com.google.firebase:firebase-messaging:23.0.5'
|
|
|
|
|
|
|
+ //fcm
|
|
|
|
|
+ implementation 'cn.jiguang.sdk.plugin:fcm:5.0.3'
|
|
|
|
|
+ implementation 'com.google.firebase:firebase-messaging:23.1.2'
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -329,3 +330,6 @@ def isNewArchitectureEnabled() {
|
|
|
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
|
|
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
|
|
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+//gms
|
|
|
|
|
+apply plugin: 'com.google.gms.google-services'
|