-
-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apkeditor: init at 1.4.1 #349470
base: master
Are you sure you want to change the base?
apkeditor: init at 1.4.1 #349470
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM
45b88f6
to
be30d9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we have a from-source version, do you think there's merit in the precompiled version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pre-compiled version is different from the from-source version in that it uses the binary libraries in the repo while the from-source version compiles those binary libraries from their original source. I cannot know what is the version of the libraries that the pre-compiled release use, so one of them may have bugs that the other one does not have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah? Almost any software we are packaging in nixpkgs is not using the exact version of all dependencies as upstream does but usually that is not that big of a deal especially if it is just a patch or a minor release.
one of them may have bugs that the other one does not have.
Is that theoretical or did the from source compiled version actually not work as expected in your tests?
c9a83c2
to
07a444a
Compare
This is starting to look pretty good. One thing that sticks out a bit is that the file is quite long. Would it be possible to factor out the vendored deps into separate files perhaps? |
785afb8
to
2908c8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final nits.
I have ran the binary and it successfully decompiles an APK.
|
Could you split the package inits into separate commits? Then we can merge. |
Before we merge, I want to take another look at #349470 (comment) because I think if the source variant is buggy, we should not package it and if it isn't then we don't need the binary variant. If theoretical something could not work but in practice it does, I think we should drop the binary package. |
It's theoretical. I see your point. Normally I won't package with the binary if I can build from source. APKEditor manages its dependencies by having the dependencies compiled as jar files in the libs dir instead of letting Gradle fetch from Maven or something. This untypical way of managing dependencies made me re-thought about this. Normally, if building from source with different version of dependency doesn't work, we can know which difference caused this because we can see the codes. For APKEditor, it would be harder to troubleshoot in this case because we technically cannot see the source codes of its dependencies. I do not know what people would do in this case by convention. I briefly tested the package built from source, and it worked, so if you think we can delete the package built from binary, I am OK with that. |
Yeah let's skip the binary package for now. |
|
APKEditor: Powerful android apk resources editor.
This package installs a command
APKEditor
.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.