Commit Graph

1958 Commits

Author SHA1 Message Date
Skylot ee2556ecb6 fix(gui): update mappings node instead full reload on 'save as' (#1732) 2023-04-20 22:00:06 +01:00
Skylot e57787393e chore(build): fix gradle tasks dependencies 2023-04-20 19:46:59 +01:00
Skylot b7634024d6 chore: update gradle and dependencies 2023-04-20 17:22:16 +01:00
Skylot 9417671606 refactor: extract input-api into library (#1821) 2023-04-20 17:22:16 +01:00
Skylot 2e652b4219 fix(plugins): use loaded mapping tree on export (#1732) 2023-04-20 17:22:16 +01:00
Skylot 1d6ebed7e5 chore: fix spotless apply 2023-04-20 17:22:16 +01:00
Skylot 19cf22b9e3 chore: update Eclipse formatter config 2023-04-20 17:22:16 +01:00
Skylot 75fbdd3ac4 chore(build): set required Java version to 11, update dependencies 2023-04-20 17:22:16 +01:00
Skylot 13e317d927 fix(gui): resolve active tab restore issue 2023-04-20 17:22:15 +01:00
Skylot 7a309ca367 fix: improve plugins data handling 2023-04-20 17:22:15 +01:00
Skylot a992c93198 fix(plugins): improve custom passes merge ordering 2023-04-20 17:22:15 +01:00
Skylot ee3a653c1b fix(gui): show options from all plugins 2023-04-20 17:22:15 +01:00
Skylot e8e7028792 perf: improve usage data apply 2023-04-20 17:22:15 +01:00
Skylot 2403d32ae4 feat(gui): use plain json config instead java preferences 2023-04-20 17:22:15 +01:00
Skylot 1c89c7290c fix(gui): discard old settings migrations 2023-04-20 17:22:15 +01:00
Skylot 1891f6fd7e fix: ignore source name if current alias is better (#1795) 2023-04-20 17:22:14 +01:00
Skylot e933b41236 script: replace method call with calculated result (#1251) 2023-04-20 17:22:14 +01:00
Skylot 9f7432134c feat(gui): show loaded mapping file in input nodes 2023-04-20 17:22:14 +01:00
Skylot 7d69e5aaab feat(gui): add script log open button 2023-04-20 17:22:14 +01:00
Skylot 780b1a0d53 fix(gui): resolve ktlint deprecation warnings 2023-04-20 17:22:14 +01:00
Skylot ea37f3e9f7 fix: don't inline constants into lambdas 2023-04-20 17:22:14 +01:00
Skylot c6ed117df6 fix: improve internal state checks 2023-04-20 17:22:14 +01:00
Skylot cedcc29e01 chore(gui): add missing keys for new i18n file 2023-04-20 17:22:13 +01:00
Skylot d5219e7f0c feat: allow to move class to another package 2023-04-20 17:22:13 +01:00
Skylot 9a6dec0dbd fix: scripts runtime code and docs clean up 2023-04-20 17:22:13 +01:00
Skylot 17574ee554 chore: update dependencies 2023-04-20 17:22:13 +01:00
Skylot 926f4e497a feat(gui): allow to dock log viewer, new filter modes 2023-04-20 17:22:13 +01:00
Skylot acbe94df27 feat(script): add code area popup menu action 2023-04-20 17:22:13 +01:00
Skylot a2f018a00b feat(gui): add run, check and format script actions 2023-04-20 17:22:12 +01:00
Skylot 98cc1b1022 script: add sample deobf by code script (#1706) 2023-04-20 17:22:06 +01:00
Skylot 745f46f81f build: configure spotless for kotlin, apply code style fixes 2023-04-20 19:01:41 +03:00
Skylot 6912ed40b4 feat(gui): save usage data into disk cache 2023-04-20 19:01:41 +03:00
Skylot a89dbc1152 refactor: make input plugin api similar to pass plugins 2023-04-20 19:01:40 +03:00
Skylot 0c4d46ead5 refactor: move plugins-api module into jadx-core 2023-04-20 19:01:39 +03:00
Skylot eae9bac938 refactor: move mappings feature to separate plugin module 2023-04-20 19:01:39 +03:00
Julian Burner cb91c8c41c feat: mapping-io import support (#1531)(PR #1532)
* 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>
2023-04-20 19:01:38 +03:00
Skylot cb1f3e9843 refactor: use package nodes in api and ui 2023-04-20 19:01:38 +03:00
Skylot d4927db52b refactor: split and simplify deobfuscator 2023-04-20 19:01:37 +03:00
Skylot bc7300bd01 feat: add package node, allow to rename packages 2023-04-20 19:01:36 +03:00
Skylot 278d7fa3f9 feat(script): add options support 2023-04-20 19:01:35 +03:00
Skylot d9af91bc4d feat(gui): add auto complete for jadx scripts 2023-04-20 19:01:35 +03:00
Skylot 18fe9f305c feat(gui): support scripts in UI 2023-04-20 19:01:34 +03:00
Skylot e5e64365fc feat: add base scripting support 2023-04-20 19:01:29 +03:00
Skylot fdf170529f fix: use strict patterns for synthetic methods inline (#1829) v1.4.7 2023-04-19 17:52:37 +01:00
Skylot 50283ab543 fix: additional checks to forbid inline of null consts (#1828) 2023-04-19 15:49:06 +01:00
Skylot 3fa3e5acec fix: correct args shift for instance invoke-custom (#1816) 2023-04-16 20:10:57 +01:00
Skylot 4230cd5b5a feat(plugins): allow to load classes using input stream or byte array in jadx-input plugin (#1457) 2023-04-10 21:28:53 +01:00
nitram84 1ad6527de5 fix(xml): use parent attibute only for styles (PR #1815) 2023-04-10 18:34:17 +01:00
nitram84 0421ad80c1 fix: filter invalid chars in app name for gradle export (PR #1813) 2023-04-08 18:16:14 +01:00
nitram84 35e0201f06 fix(gradle): fix gradle build with version 7.4.2 - 7.6 2023-04-08 19:49:15 +03:00