Skip to content

Commit cabf55e

Browse files
committed
feat(all): prepare for 2.0.7
1 parent 29b4a9c commit cabf55e

File tree

90 files changed

+2606
-592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2606
-592
lines changed

dev.skidfuscator.annotations/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group 'dev.skidfuscator.community'
6-
version '2.0.0-SNAPSHOT'
6+
version '2.0.1-SNAPSHOT'
77

88
repositories {
99
mavenCentral()

dev.skidfuscator.client.standalone/src/main/java/dev/skidfuscator/obfuscator/SkidfuscatorMain.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class SkidfuscatorMain {
1717

1818
@SneakyThrows
1919
public static void main(String[] args) {
20+
2021
if (args.length == 1 && args[0].equalsIgnoreCase("cli")) {
2122
final LineReader reader = LineReaderBuilder
2223
.builder()
@@ -58,6 +59,7 @@ public static void main(String[] args) {
5859
false,
5960
false,
6061
false,
62+
false,
6163
false
6264
);
6365

dev.skidfuscator.client.standalone/src/main/java/dev/skidfuscator/obfuscator/command/ObfuscateCommand.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ public class ObfuscateCommand implements Callable<Integer> {
8080
)
8181
private boolean notrack;
8282

83-
@CommandLine.Option(
84-
names = {"-re", "--renamer"},
85-
description = "Enables renamer for the obfuscation"
86-
)
87-
private boolean renamer;
88-
8983
@Override
9084
public Integer call() {
9185
/* Total number of processors or cores available to the JVM */
@@ -206,7 +200,7 @@ public Integer call() {
206200
.jmod(MiscUtil.getJavaVersion() > 8)
207201
.fuckit(fuckit)
208202
.config(config)
209-
.renamer(renamer)
203+
.renamer(false)
210204
.analytics(!notrack)
211205
.build();
212206

dev.skidfuscator.commons/src/main/java/dev/skidfuscator/config/DefaultConfig.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,21 @@ public DefaultConfig(Config config, String path) {
2121
}
2222

2323
public List<String> getExemptions() {
24-
return getStringList(path + "exempt", new ArrayList<>());
24+
return getStringList("exempt", new ArrayList<>());
2525
}
2626

2727
public boolean getBoolean(String path, final boolean dflt) {
2828
return get(path, dflt, config::getBoolean);
2929
}
3030

31+
public String getString(String path, final String dflt) {
32+
return get(path, dflt, config::getString);
33+
}
34+
35+
public int getInt(String path, final int dflt) {
36+
return get(path, dflt, config::getInt);
37+
}
38+
3139
public List<String> getStringList(String path, final List<String> dflt) {
3240
return get(path, dflt, config::getStringList);
3341
}
@@ -50,7 +58,7 @@ public <T> T get(String path, final T dflt, final Function<String, T> supplier)
5058
cache.put(path, var);
5159
}
5260

53-
assert dflt.getClass().isAssignableFrom(var.getClass()) : "Value loaded at path is not a type assigned!";
61+
//assert var.getClass().isAssignableFrom(dflt.getClass()) : "Value loaded at path is not a type assigned! (" + var.getClass() + " vs " + dflt.getClass() + ")";
5462

5563
return (T) var;
5664
}

dev.skidfuscator.commons/src/main/java/dev/skidfuscator/config/DefaultSkidConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public DefaultSkidConfig(Config config, String path) {
1111
}
1212

1313
public boolean isDriver() {
14-
return this.getBoolean("driver", true);
14+
return this.getBoolean("driver.enabled", true);
1515
}
1616

1717
public File[] getLibs() {

dev.skidfuscator.commons/src/main/java/dev/skidfuscator/obfuscator/SkidfuscatorSession.java

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class SkidfuscatorSession {
2525
private boolean c2j;
2626

2727
private boolean lowCon;
28+
private boolean dex;
2829

2930

3031
/**
@@ -35,6 +36,10 @@ public File getInput() {
3536
return input;
3637
}
3738

39+
public void setInput(File input) {
40+
this.input = input;
41+
}
42+
3843
/**
3944
* @return the output
4045
*/
@@ -103,19 +108,7 @@ public boolean isAnalytics() {
103108
return analytics;
104109
}
105110

106-
public boolean isRenamer() {
107-
return renamer;
108-
}
109-
110-
public boolean isNative() {
111-
return c2j;
112-
}
113-
114-
public boolean isLowCon() {
115-
return lowCon;
116-
}
117-
118-
public void setLowCon(boolean lowCon) {
119-
this.lowCon = lowCon;
111+
public boolean isDex() {
112+
return dex;
120113
}
121114
}

dev.skidfuscator.commons/src/main/resources/defaultConfig.hocon

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ stringAnnotationEncryption {
2525
exempt: []
2626
}
2727

28+
exceptionReturn {
29+
enabled: true
30+
exempt: []
31+
}
32+
2833
flowCondition {
2934
enabled: true
3035
exempt: []
@@ -66,17 +71,42 @@ native: {
6671
exempt: []
6772
}
6873

74+
driver: {
75+
enabled: false
76+
}
77+
78+
reference {
79+
enabled: false
80+
}
81+
82+
fileCrasher: {
83+
enabled: false
84+
}
85+
6986
classRenamer {
7087
enabled: false
71-
exempt: []
88+
type: CUSTOM
89+
prefix: "skido/"
90+
chars: [
91+
"K"
92+
"oO",
93+
"o0"
94+
]
95+
depth: 3
7296
}
7397

7498
methodRenamer {
7599
enabled: false
76-
exempt: []
100+
type: CUSTOM
101+
chars: [
102+
"K"
103+
"oO",
104+
"o0"
105+
]
106+
depth: 3
77107
}
78108

79109
fieldRenamer {
80110
enabled: false
81-
exempt: []
111+
type: ALPHABETICAL
82112
}

dev.skidfuscator.obfuscator/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies {
2121
implementation 'com.github.matomo-org:matomo-java-tracker:v1.7'
2222
api 'com.github.Col-E:jphantom:1.4.3'
2323
implementation 'dev.dirs:directories:26'
24+
2425
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
2526
implementation 'org.fusesource.jansi:jansi:2.4.0'
2627
implementation 'org.yaml:snakeyaml:1.33'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Redirect log messages to console
2+
log4j.rootLogger=DEBUG, stdout
3+
log4j.rootLogger=ERROR, stderr
4+
log4j.rootLogger=INFO, stdout
5+
6+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
7+
log4j.appender.stdout.Target=System.out
8+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
9+
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p - %m%n
10+
11+
log4j.appender.stderr=org.apache.log4j.ConsoleAppender
12+
log4j.appender.stderr.Target=System.err
13+
log4j.appender.stderr.layout=org.apache.log4j.PatternLayout
14+
log4j.appender.stderr.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p - %m%n
15+
16+
# Redirect log messages to a log file, support file rolling.
17+
# log4j.appender.file=org.apache.log4j.RollingFileAppender
18+
# log4j.appender.file.File=C:\\log4j-application.log
19+
# log4j.appender.file.MaxFileSize=5MB
20+
# log4j.appender.file.MaxBackupIndex=10
21+
# log4j.appender.file.layout=org.apache.log4j.PatternLayout
22+
# log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

0 commit comments

Comments
 (0)