Skip to content

Commit 25f799e

Browse files
committed
support buildType
1 parent 9473c96 commit 25f799e

File tree

12 files changed

+47
-25
lines changed

12 files changed

+47
-25
lines changed

app/build.gradle

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'com.android.application'
3-
// id 'top.niunaijun.blackobfuscator'
3+
id 'top.niunaijun.blackobfuscator'
44
}
55

66
android {
@@ -14,6 +14,7 @@ android {
1414
versionCode 1
1515
versionName "1.0"
1616

17+
flavorDimensions "default"
1718
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1819
}
1920

@@ -22,17 +23,34 @@ android {
2223
minifyEnabled false
2324
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2425
}
26+
27+
debug {
28+
minifyEnabled false
29+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
30+
}
31+
32+
googleplay {
33+
minifyEnabled false
34+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
35+
}
36+
}
37+
38+
productFlavors {
39+
app {
40+
applicationId "com.ghosthing.ball"
41+
}
42+
2543
}
26-
compileOptions {
44+
compileOptions {
2745
sourceCompatibility JavaVersion.VERSION_1_8
2846
targetCompatibility JavaVersion.VERSION_1_8
2947
}
3048
}
3149

32-
//BlackObfuscator {
33-
// enabled true
34-
// obfClass = ["MainActivity", "com.bbb"]
35-
//}
50+
BlackObfuscator {
51+
enabled true
52+
obfClass = ["MainActivity", "com.bbb"]
53+
}
3654

3755
dependencies {
3856

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ buildscript {
1010
}
1111
dependencies {
1212
classpath "com.android.tools.build:gradle:4.2.0"
13-
// classpath "top.niunaijun.blackobfuscator:plugin:1.0.0"
13+
classpath "top.niunaijun.blackobfuscator:plugin:1.0.0"
1414
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1515
// NOTE: Do not place your application dependencies here; they belong
1616
// in the individual module build.gradle files
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e9f5e0a50ced710f1157589541b6b3d8
1+
ed7bf432cc57babf03a25c5a0ff95abc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4055cb450a96798f7aeddafce481cc9a4bfef2f5
1+
803f254bf5ef5711f0f6cf94f55b1237d3f8e7c8

localRepo/top/niunaijun/blackobfuscator/plugin/1.0.0/plugin-1.0.0.pom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<dependency>
2828
<groupId>com.github.CodingGay.BlackObfuscator</groupId>
2929
<artifactId>dex-tools</artifactId>
30-
<version>1.0.3</version>
30+
<version>2.1</version>
3131
<scope>runtime</scope>
3232
</dependency>
3333
</dependencies>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
58be27900eade6fbad79a9328c336ad6
1+
e072c183806d331aa32ac8863534a4ce
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4d286fbaa7f641cab7e669d781b564c0db4cf0fd
1+
76b4be6ced264f6379d490e0d7331dd732df1641

localRepo/top/niunaijun/blackobfuscator/plugin/maven-metadata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<versions>
88
<version>1.0.0</version>
99
</versions>
10-
<lastUpdated>20211217154344</lastUpdated>
10+
<lastUpdated>20220111141950</lastUpdated>
1111
</versioning>
1212
</metadata>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0316268e6b77e891d948dc5825c3a1e6
1+
ab00298c03962a3ffdc635a350badc08

0 commit comments

Comments
 (0)