Skip to content

Commit e03be98

Browse files
author
eespada
committed
dynamic applicationIds support
2 parents 55c1582 + b24c92a commit e03be98

4 files changed

Lines changed: 14 additions & 25 deletions

File tree

app/build.gradle

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ android {
1616
versionCode 1
1717
versionName "1.0"
1818
}
19-
20-
flavorDimensions 'default'
21-
19+
flavorDimensions "type"
2220
buildTypes {
2321
release {
2422
minifyEnabled false
@@ -29,14 +27,13 @@ android {
2927
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3028
}
3129
}
32-
3330
productFlavors {
34-
primary {
35-
dimension = 'default'
31+
prod {
32+
dimension "type"
3633
}
37-
secondary {
38-
dimension = 'default'
39-
applicationId = 'com.efraespada.otherobfuscator'
34+
dev {
35+
dimension "type"
36+
applicationId = "com.efraespada.otherobfuscator"
4037
}
4138
}
4239

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
General <strong>Kenobi</strong>.
77
</string>
88
<string name="pattern" hidden="true">%1$s (%2$d)</string>
9-
<string name="snake_msg_hidden" hidden="true">\n\nla-li-lu-le-lo\n\n🐍😄🍉</string>
9+
<string name="snake_msg_hidden" hidden="true">\n\nla-li-lu-le-lo\n\n🐍😄🍉 \n\n áéíóú ?</string>
1010
<string name="hello_world_a">Hello
1111
World
1212
</string>

build.gradle

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ buildscript {
1818
dependencies {
1919
// classpath "com.stringcare:plugin:$stringcare_version"
2020
// classpath files('../GradlePlugin/build/libs/plugin-3.1.jar')
21+
// classpath files('../GradlePlugin/build/libs/plugin-3.0.jar')
2122
classpath files('../KotlinGradlePlugin/build/libs/plugin-3.1.jar')
2223
// classpath files('..\\GradlePlugin\\build\\libs\\plugin-0.9.jar')
2324
classpath 'com.android.tools.build:gradle:3.4.2'
@@ -46,22 +47,13 @@ apply plugin: StringCare
4647

4748
stringcare {
4849
debug true
49-
modules {
50-
app {
51-
}
52-
}
53-
buildVariants {
54-
primaryDebug {
55-
applicationId = "com.efraespada.stringobfuscator"
56-
}
57-
primaryRelease {
58-
exclude = true
50+
51+
variants {
52+
prod {
53+
skip = true
5954
applicationId = "com.efraespada.stringobfuscator"
6055
}
61-
secondaryDebug {
62-
applicationId = "com.efraespada.otherobfuscator"
63-
}
64-
secondaryRelease {
56+
dev {
6557
applicationId = "com.efraespada.otherobfuscator"
6658
}
6759
}

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
}
3535
externalNativeBuild {
3636
cmake {
37-
version "3.14.4"
37+
version "3.10.2"
3838
path "CMakeLists.txt"
3939
}
4040
}

0 commit comments

Comments
 (0)