类 ResourcesObfuscator
java.lang.Object
io.github.amsonix.molt.internal.reschiper.obfuscation.ResourcesObfuscator
- 所有已实现的接口:
Closeable,AutoCloseable
The `ResourcesObfuscator` class is responsible for obfuscating resources in an Android AppBundle.
It performs resource obfuscation based on provided mapping rules, while also allowing for whitelisting of resources.
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()com.android.tools.build.bundletool.model.AppBundleObfuscates resources in the AppBundle based on the provided mapping rules and whitelisting.void
-
字段详细资料
-
构造器详细资料
-
ResourcesObfuscator
public ResourcesObfuscator(Path bundlePath, com.android.tools.build.bundletool.model.AppBundle rawAppBundle, Set<String> whiteListRules, Path outputLogLocationDir, Path mappingPath) throws IOException Constructs a `ResourcesObfuscator` with the specified parameters.- 参数:
bundlePath- The path to the AppBundle bundle.rawAppBundle- The raw AppBundle.whiteListRules- The set of whitelisting rules for resources.outputLogLocationDir- The directory where log files will be generated.mappingPath- The path to the resource mapping file (can be null).- 抛出:
IOException- If an I/O error occurs during initialization.
-
-
方法详细资料
-
getMode
-
withMode
-
obfuscate
Obfuscates resources in the AppBundle based on the provided mapping rules and whitelisting.- 返回:
- The obfuscated AppBundle.
- 抛出:
IOException- If an I/O error occurs during obfuscation.
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 抛出:
IOException
-