Skip to content

Commit 55c1582

Browse files
committed
·...·
1 parent 56ae717 commit 55c1582

2 files changed

Lines changed: 34 additions & 5 deletions

File tree

app/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ android {
1616
versionCode 1
1717
versionName "1.0"
1818
}
19+
20+
flavorDimensions 'default'
21+
1922
buildTypes {
2023
release {
2124
minifyEnabled false
@@ -27,6 +30,16 @@ android {
2730
}
2831
}
2932

33+
productFlavors {
34+
primary {
35+
dimension = 'default'
36+
}
37+
secondary {
38+
dimension = 'default'
39+
applicationId = 'com.efraespada.otherobfuscator'
40+
}
41+
}
42+
3043
compileOptions {
3144
sourceCompatibility 1.8
3245
targetCompatibility 1.8

build.gradle

Lines changed: 21 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"
20-
// classpath files('../GradlePlugin/build/libs/plugin-3.0.jar')
21-
// classpath files('../KotlinGradlePlugin/build/libs/plugin-3.0.jar')
19+
// classpath "com.stringcare:plugin:$stringcare_version"
20+
// classpath files('../GradlePlugin/build/libs/plugin-3.1.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"
@@ -47,6 +47,22 @@ apply plugin: StringCare
4747
stringcare {
4848
debug true
4949
modules {
50-
app {}
50+
app {
51+
}
52+
}
53+
buildVariants {
54+
primaryDebug {
55+
applicationId = "com.efraespada.stringobfuscator"
56+
}
57+
primaryRelease {
58+
exclude = true
59+
applicationId = "com.efraespada.stringobfuscator"
60+
}
61+
secondaryDebug {
62+
applicationId = "com.efraespada.otherobfuscator"
63+
}
64+
secondaryRelease {
65+
applicationId = "com.efraespada.otherobfuscator"
66+
}
5167
}
5268
}

0 commit comments

Comments
 (0)