Collection and extraction JAR assets (also jar's inside zip or apk) from GitHub
The program collects repo assets via GitHub API (using kohsuke/github-api). It's collecting stage.
On the extracting stage the program unpack zip and apk archives and extracts from them of jars. Program use modified Dex2Jar for decompiling dex files in APK archives to jars.
-i
or--input
: path to folder, in which will be written asstes and sources (if this is a collecting stage) or unziped jars (from zip, apk or just copied jars);--collecting
: collecting stage: collecting repo assets via GitHub API (direct or by users - it is specified in Runner object);--extracting
: extracting stage: unpacking zip and apk archives and extracts from them of jars (or just copying jars).
To run program you must run main
function in main.kt
, not forgetting to set the program arguments.
Also you can run jar file (you can download from the release assets):
java -jar ./github-kotlin-jar-collector-0.1.jar -i ./assets --collecting