Skip to content

Commit

Permalink
refactor: use DexKit as default
Browse files Browse the repository at this point in the history
Signed-off-by: ACh Sulfate <[email protected]>
  • Loading branch information
cinit committed Aug 26, 2022
1 parent e2b45a7 commit 68f91a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class TroubleshootFragment : BaseRootLayoutFragment() {
CategoryItem("反混淆") {
textItem(
"切换反混淆后端", "如非必要请不要更改",
value = DexDeobfsProvider.currentBackendName,
value = DexDeobfsProvider.currentBackendId,
onClick = clickToSwitchDexDeobfsBackend
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object DexDeobfsProvider {
}

var currentBackendId: String
get() = ConfigManager.getDefaultConfig().getString(KEY_DEX_DEOBFS_BACKEND, LegacyDexDeobfs.ID)!!
get() = ConfigManager.getDefaultConfig().getString(KEY_DEX_DEOBFS_BACKEND, DexKitDeobfs.ID)!!
set(value) {
require(value in listOf(LegacyDexDeobfs.ID, DexBuilderDexDeobfs.ID, DexKitDeobfs.ID)) {
"Unknown dex deobfs backend: $value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public DexMethodDescriptor doFindMethodImpl(int i) {
}

public static final String ID = "DexBuilder";
public static final String NAME = "DexBuilder(更快)";
public static final String NAME = "DexBuilder(较快)";

@NonNull
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class DexKitDeobfs private constructor(
companion object {

const val ID = "DexKit"
const val NAME = "DexKit(极速)"
const val NAME = "DexKit(默认, 最快)"

@JvmStatic
fun newInstance(): DexKitDeobfs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public static ArrayList<Integer> a(byte[] buf, byte[] target) {
}

public static final String ID = "Legacy";
public static final String NAME = "Legacy(默认)";
public static final String NAME = "Legacy(兼容性好, 最慢)";

@NonNull
@Override
Expand Down

0 comments on commit 68f91a6

Please sign in to comment.