|
@@ -60,8 +60,12 @@ android {
|
|
|
|
|
|
buildTypes {
|
|
buildTypes {
|
|
release {
|
|
release {
|
|
- if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
|
|
|
|
- signingConfig signingConfigs.debug_g6s
|
|
|
|
|
|
+ if ("yd_watch_2" == app_device_type) {
|
|
|
|
+ if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
|
|
|
|
+ signingConfig signingConfigs.debug_g6s
|
|
|
|
+ } else {
|
|
|
|
+ signingConfig signingConfigs.debug
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
signingConfig signingConfigs.debug
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
@@ -70,8 +74,12 @@ android {
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
debug {
|
|
debug {
|
|
- if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
|
|
|
|
- signingConfig signingConfigs.debug_g6s
|
|
|
|
|
|
+ if ("yd_watch_2" == app_device_type) {
|
|
|
|
+ if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
|
|
|
|
+ signingConfig signingConfigs.debug_g6s
|
|
|
|
+ } else {
|
|
|
|
+ signingConfig signingConfigs.debug
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
signingConfig signingConfigs.debug
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
@@ -84,8 +92,12 @@ android {
|
|
sourceSets {
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/code'
|
|
main.java.srcDirs += 'src/main/code'
|
|
|
|
|
|
- if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
|
|
|
|
- main.manifest.srcFile 'src/main/sharedUserId/AndroidManifest.xml'
|
|
|
|
|
|
+ if ("yd_watch_2" == app_device_type) {
|
|
|
|
+ if (rootProject.ext.watch_type == "g6s" || rootProject.ext.watch_type == "asr") {
|
|
|
|
+ main.manifest.srcFile 'src/main/sharedUserId/AndroidManifest.xml'
|
|
|
|
+ } else {
|
|
|
|
+ main.manifest.srcFile 'src/main/AndroidManifest.xml'
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
main.manifest.srcFile 'src/main/AndroidManifest.xml'
|
|
main.manifest.srcFile 'src/main/AndroidManifest.xml'
|
|
}
|
|
}
|