cb91c8c41c
* Add new CLI args for mapping files and deprecate args regarding jobf files (will be moved to the cache dir in the future) * Add support for importing method arg mappings Also change `mapping-file` to `mappings-path`, since folders are supported, too * Add GUI for importing mappings * Also show save file dialog when exporting mappings * Fix crash on startup when `--mappings-path` parameter is set * Include imported renames when exporting mappings * Add "close mappings" menu entry * Don't instantiate MappingTree unless actually needed * Terminology: `import` → `open`; `export` → `save` * Save location of open mapping file into project data * Correctly reset cache when loading new mappings * Remove unused import * Save opened mappings' last modified date to reset cache when changed * Fix if statement * Correctly handle absence of mappings path in project data * Show overwrite warning for folders only if not empty * Prevent crash when imported mappings don't have any namespaces * Handle wrong mappings namespace count error * Replace unneeded public with private * Add option for saving open mappings directly to disk * Correctly propagate and throw exceptions during decompiler init * Respect opened mappings' existing namespaces; fix related crash * Deduplicate code, add `DalvikToJavaBytecodeUtils` class * Small cleanup; move more functionality to utility class * Support for importing class, field and method mappings * Handle mappings in RenameDialog * Fix checkstyle * Fix wrong naming order * Use modified mapping-io JAR from https://github.com/skylot/jadx/commit/18070eb7a649db0b0daef38d456316d5b4650072 That commit got rid of redundant embedded libraries * Add null checks * Check if mapping tree is null before running MappingsVisitor * Use working mapping-io build * Handle cache invalidation directly in DiskCodeCache class * Don't reset UserRenamesMappingsMode if project is just reloaded * Fix checkstyle Co-authored-by: Skylot <skylot@gmail.com>
36 lines
1.1 KiB
Groovy
36 lines
1.1 KiB
Groovy
plugins {
|
|
id 'jadx-library'
|
|
}
|
|
|
|
dependencies {
|
|
api(project(':jadx-plugins:jadx-plugins-api'))
|
|
|
|
// TODO: Switch back to upstream once this PR gets merged:
|
|
// https://github.com/FabricMC/mapping-io/pull/19
|
|
// api 'net.fabricmc:mapping-io:0.3.0'
|
|
api files('libs/mapping-io-0.4.0-SNAPSHOT.jar')
|
|
// mapping-io's dependencies
|
|
runtimeOnly 'org.ow2.asm:asm:9.3'
|
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
// TODO: move resources decoding to separate plugin module
|
|
implementation 'com.android.tools.build:aapt2-proto:7.3.1-8691043'
|
|
implementation 'com.google.protobuf:protobuf-java:3.21.12' // forcing latest version
|
|
|
|
testImplementation 'org.apache.commons:commons-lang3:3.12.0'
|
|
|
|
testImplementation(project(':jadx-plugins:jadx-dex-input'))
|
|
testRuntimeOnly(project(':jadx-plugins:jadx-smali-input'))
|
|
testRuntimeOnly(project(':jadx-plugins:jadx-java-convert'))
|
|
testRuntimeOnly(project(':jadx-plugins:jadx-java-input'))
|
|
testRuntimeOnly(project(':jadx-plugins:jadx-raung-input'))
|
|
|
|
testImplementation 'org.eclipse.jdt:ecj:3.32.0'
|
|
testImplementation 'tools.profiler:async-profiler:2.9'
|
|
}
|
|
|
|
test {
|
|
exclude '**/tmp/*'
|
|
}
|