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

android gradle build: fix apk name #1025

Merged
merged 1 commit into from
Feb 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,9 +1181,9 @@ def build_package(self):

if is_gradle_build:
# on gradle build, the apk use the package name, and have no version
packagename = basename(dist_dir) # gradle specifically uses the folder name
packagename_src = basename(dist_dir) # gradle specifically uses the folder name
apk = u'{packagename}-{mode}.apk'.format(
packagename=packagename, mode=mode)
packagename=packagename_src, mode=mode)
apk_dir = join(dist_dir, "build", "outputs", "apk", mode_sign)
else:
# on ant, the apk use the title, and have version
Expand Down