-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
169 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
app/src/main/java/top/niunaijun/blackobfuscator/asplugin/Abx.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package top.niunaijun.blackobfuscator.asplugin; | ||
|
||
/** | ||
* Created by Milk on 2022/1/13. | ||
* * ∧_∧ | ||
* (`・ω・∥ | ||
* 丶 つ0 | ||
* しーJ | ||
* 此处无Bug | ||
*/ | ||
public class Abx { | ||
public static boolean go() { | ||
return System.currentTimeMillis() > 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.55 KB
(110%)
localRepo/top/niunaijun/blackobfuscator/plugin/1.0.0/plugin-1.0.0.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
localRepo/top/niunaijun/blackobfuscator/plugin/1.0.0/plugin-1.0.0.jar.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ed7bf432cc57babf03a25c5a0ff95abc | ||
eb035af7c6ce60caf3ab9c762a96e98d |
2 changes: 1 addition & 1 deletion
2
localRepo/top/niunaijun/blackobfuscator/plugin/1.0.0/plugin-1.0.0.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
803f254bf5ef5711f0f6cf94f55b1237d3f8e7c8 | ||
eaab39a87530bce1ff233150bed9bd1c786c64d1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
localRepo/top/niunaijun/blackobfuscator/plugin/maven-metadata.xml.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ab00298c03962a3ffdc635a350badc08 | ||
a4e0ad7fcf21d4047bf1348dbbbeae58 |
2 changes: 1 addition & 1 deletion
2
localRepo/top/niunaijun/blackobfuscator/plugin/maven-metadata.xml.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5472636145974a6e10fa5af7b149bed773731c73 | ||
ef65fe9ba949d79e0d61ed67e5197027f3a5221b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
plugin/src/main/java/top/niunaijun/blackobfuscator/core/Mapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package top.niunaijun.blackobfuscator.core; | ||
|
||
import org.apache.commons.io.FileUtils; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.nio.charset.Charset; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* Created by Milk on 2022/1/12. | ||
* * ∧_∧ | ||
* (`・ω・∥ | ||
* 丶 つ0 | ||
* しーJ | ||
* 此处无Bug | ||
*/ | ||
public class Mapping { | ||
private File mFile; | ||
private final Map<String, String> mapping = new HashMap<>(); | ||
|
||
public Mapping(String file) { | ||
if (file == null) | ||
return; | ||
mFile = new File(file); | ||
parser(); | ||
} | ||
|
||
private void parser() { | ||
if (mFile == null || !mFile.exists()) | ||
return; | ||
try { | ||
List<String> strings = FileUtils.readLines(mFile, Charset.defaultCharset()); | ||
for (String string : strings) { | ||
if (string.startsWith("#") || string.startsWith(" ")) { | ||
continue; | ||
} | ||
String[] split = string.split(" -> "); | ||
if (split.length != 2) { | ||
continue; | ||
} | ||
// System.out.println("add mapping : " + string); | ||
mapping.put(split[0], split[1].substring(0, split[1].length() - 1)); | ||
} | ||
} catch (IOException ignored) { | ||
} | ||
} | ||
|
||
public String get(String origClazz) { | ||
return mapping.get(origClazz); | ||
} | ||
|
||
public Map<String, String> getMapping() { | ||
return mapping; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters