Skip to content

Commit b24c92a

Browse files
author
eespada
committed
dynamic applicationIds support
1 parent 85b399f commit b24c92a

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

app/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ android {
1616
versionCode 1
1717
versionName "1.0"
1818
}
19+
flavorDimensions "type"
1920
buildTypes {
2021
release {
2122
minifyEnabled false
@@ -26,6 +27,15 @@ android {
2627
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2728
}
2829
}
30+
productFlavors {
31+
prod {
32+
dimension "type"
33+
}
34+
dev {
35+
dimension "type"
36+
applicationId = "com.efraespada.otherobfuscator"
37+
}
38+
}
2939

3040
compileOptions {
3141
sourceCompatibility 1.8

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: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ buildscript {
1616
}
1717

1818
dependencies {
19-
classpath "com.stringcare:plugin:$stringcare_version"
19+
// classpath "com.stringcare:plugin:$stringcare_version"
2020
// classpath files('../GradlePlugin/build/libs/plugin-3.0.jar')
21-
// classpath files('../KotlinGradlePlugin/build/libs/plugin-3.0.jar')
21+
classpath files('../KotlinGradlePlugin/build/libs/plugin-3.1.jar')
2222
// classpath files('..\\GradlePlugin\\build\\libs\\plugin-0.9.jar')
23-
classpath 'com.android.tools.build:gradle:3.4.1'
23+
classpath 'com.android.tools.build:gradle:3.4.2'
2424
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1"
2525
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
2626
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
@@ -46,7 +46,13 @@ apply plugin: StringCare
4646

4747
stringcare {
4848
debug true
49-
modules {
50-
app {}
49+
variants {
50+
prod {
51+
skip = true
52+
applicationId = "com.efraespada.stringobfuscator"
53+
}
54+
dev {
55+
applicationId = "com.efraespada.otherobfuscator"
56+
}
5157
}
5258
}

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)