build: use jadx-gui as a library in plugins (PR #2310)

* fix(gui): fix javadoc issues

* feat(gui): export jadx-gui as a library

* fix(gui): fix javadoc issues

* fix(gui): remove invalid characters for javadoc

* add jadx-library also for jadx-cli and jadx-script-ide modules

---------

Co-authored-by: Skylot <118523+skylot@users.noreply.github.com>
This commit is contained in:
nitram84
2024-10-22 18:24:57 +02:00
committed by GitHub
parent a43b3282ef
commit 8a34d973ff
8 changed files with 13 additions and 10 deletions
+1
View File
@@ -1,5 +1,6 @@
plugins {
id("jadx-java")
id("jadx-library")
id("application")
// use shadow only for application scripts, jar will be copied from jadx-gui
+1
View File
@@ -1,6 +1,7 @@
plugins {
id("jadx-kotlin")
id("application")
id("jadx-library")
id("edu.sc.seis.launch4j") version "3.0.6"
id("com.gradleup.shadow") version "8.3.3"
id("org.beryx.runtime") version "1.13.1"
@@ -47,8 +47,8 @@ public class CacheManager {
}
/**
* If project cache is set -> check if cache entry exists for this project.
* If not -> calculate new and add entry.
* If project cache is set -&gt; check if cache entry exists for this project.
* If not -&gt; calculate new and add entry.
*/
public Path getCacheDir(JadxProject project, @Nullable String cacheDirStr) {
if (cacheDirStr == null) {
@@ -533,7 +533,7 @@ public class SmaliDebugger {
/**
* @param startIndex less than 0 means 0
* @param len less than or equals 0 means the maximum value 99 or the rest of the elements.
* @return An entry, The key is the total length of this array when len is <= 0, otherwise 0,
* @return An entry, The key is the total length of this array when len is &lt;= 0, otherwise 0,
* the value, if this array is an object array then it's object ids.
*/
public Entry<Integer, List<Long>> readArray(RuntimeValue reg, int startIndex, int len) throws SmaliDebuggerException {
@@ -123,7 +123,7 @@ public class ADBDevice {
}
/**
* @Return binary output of logcat
* @return binary output of logcat
*/
public byte[] getBinaryLogcat() throws IOException {
@@ -133,7 +133,7 @@ public class ADBDevice {
}
/**
* @Return binary output of logcat after provided timestamp
* @return binary output of logcat after provided timestamp
* Timestamp is in the format 09-08 02:18:03.131
*/
public byte[] getBinaryLogcat(String timestamp) throws IOException {
@@ -147,7 +147,7 @@ public class ADBDevice {
}
/**
* @Return binary output of logcat -c
* Binary output of logcat -c
*/
public void clearLogcat() throws IOException {
Socket socket = ADB.connect(info.getAdbHost(), info.getAdbPort());
@@ -39,7 +39,7 @@ import jadx.gui.utils.UiUtils;
import jadx.gui.utils.ui.MousePressedHandler;
/**
* A panel combining a {@link SearchBar and a scollable {@link CodeArea}
* A panel combining a {@link SearchBar} and a scollable {@link CodeArea}
*/
public class CodePanel extends JPanel {
private static final long serialVersionUID = 1117721869391885865L;
@@ -9,7 +9,7 @@ import javax.swing.text.Segment;
import org.fife.ui.rsyntaxtextarea.*;
/**
* 用于Smali代码高亮
* SmaliTokenMaker
* MartinKay@qq.com
*/
@@ -1280,7 +1280,7 @@ public class SmaliTokenMaker extends AbstractJFlexCTokenMaker {
*
* All internal variables are reset, the old input stream
* <b>cannot</b> be reused (internal buffer is discarded and lost).
* Lexical state is set to <tt>YY_INITIAL</tt>.
* Lexical state is set to <code>YY_INITIAL</code>
*
* @param reader the new input stream
*/
@@ -1371,7 +1371,7 @@ public class SmaliTokenMaker extends AbstractJFlexCTokenMaker {
}
/**
* Returns the character at position <tt>pos</tt> from the
* Returns the character at position<code>pos</code> from the
* matched text.
*
* It is equivalent to yytext().charAt(pos), but faster
@@ -1,5 +1,6 @@
plugins {
id("jadx-kotlin")
id("jadx-library")
}
dependencies {