apk2java-linux icon indicating copy to clipboard operation
apk2java-linux copied to clipboard

Old version libraries

Open sytolk opened this issue 8 years ago • 12 comments

You can set version number of dex2jar apktool.. in .ini file

sytolk avatar May 30 '16 07:05 sytolk

What about placing the INI file with version number in the tool's archive? The path will become something like "name_version.jar" and the ini will point which version use

TheZ3ro avatar Jun 01 '16 11:06 TheZ3ro

Its ok. Can you provide PR for this ?

sytolk avatar Jun 01 '16 11:06 sytolk

Why not INI fail to have download Url only and download libraries jar fails ?

sytolk avatar Jun 01 '16 11:06 sytolk

Its better to skip version in code "name.jar" download and rename fail without version. But use real Url for download not you repository

sytolk avatar Jun 01 '16 11:06 sytolk

I've think about that, but download url are not fixed an can change for various reason (url goes offline, etc..) Other solutions?

TheZ3ro avatar Jun 01 '16 12:06 TheZ3ro

If this https://github.com/pxb1988/dex2jar is offline this download link will be offline too :) https://github.com/TheZ3ro/apk2java-linux/releases/download/tool/tool.zip dex2jar can be downloaded from two different repository sourceforge and bitbucket. Other solution is download URL in INI file to override hardcoded default URL in python code. But its need to have separated URLs for the each library. .INI file its need to be placing not in the tool's archive (its a part of the python code project). Its need to be placed in the python project dir. Like this project https://github.com/trickortweak/flickr-uploader

sytolk avatar Jun 01 '16 12:06 sytolk

But what if pxb1988 change his nickname or change the repository owner? For my repository I can address this changes.

Anyway I think we can place the ini file in the project and if some tool isn't online report that to the users (and maybe automatically download a new updated ini file from this repository)

TheZ3ro avatar Jun 01 '16 12:06 TheZ3ro

If pxb1988 is changed link can be easy changed in .ini file if its have new version link can be changed too. The main idea is if I download master branch of this repository next year and view that its have outdated libraries I can change URLs in .INI and run decompiler with new one. Why not include tool libraries in project? if I checkout git repository python will download tool.zip -two download steps. Its better to have only one download source code with tools directory from github repository.

sytolk avatar Jun 01 '16 15:06 sytolk

Uploading tool into the repository will increase the repository size.

I want a solution that always works even if I will stop maintaining this repo. Changing links will not work if I stop updating this project

TheZ3ro avatar Jun 01 '16 16:06 TheZ3ro

"Uploading tool into the repository will increase the repository size." -yes but I think that this is better instead of download it from releases. After you will stop maintainense.. I suppose that it will exist forks with changed .INI file only ;) and all forks will points to you repo. Thanks for this!

sytolk avatar Jun 01 '16 16:06 sytolk

What about this:

Apk2java will read tool's urls from INI file. In the default INI file there will be the link to my repository tool's (always online). If user wan't update tool simply change the links in the INI file.


Remember: my goal is to have a tool that always works by default (cloning the repo in a clean PC). Different tools' version can behave differently (like #6 ) but that is up to the users. With the version I distribute on my repo, the project must always work.

:smiley:

TheZ3ro avatar Jun 01 '16 17:06 TheZ3ro

Its ok

sytolk avatar Jun 01 '16 17:06 sytolk