Skip to content
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

Add support for APK #679

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Add support for APK #679

merged 1 commit into from
Oct 13, 2024

Conversation

epicmet
Copy link
Contributor

@epicmet epicmet commented Oct 13, 2024

Docs: https://developer.android.com/build/building-cmdline#package_pre-compiled_code_and_resources

As far as I understood, the classes.dex file is only specific for apk files and not other ext names (like .apks, .aab, .xapk, .apkm, .akp)

I don't know a simple "if statement" is good enough if you plan to support other ext names I mentioned (or even .jar or other zip file formats) But this PR should be sufficient enough for detecting only .apk files correctly.

Copy link
Collaborator

@Borewit Borewit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sindresorhus sindresorhus merged commit 7b10012 into sindresorhus:main Oct 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants