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 code signing for Android release artefacts #1268

Open
freakboy3742 opened this issue May 11, 2023 · 1 comment
Open

Add code signing for Android release artefacts #1268

freakboy3742 opened this issue May 11, 2023 · 1 comment
Labels
android The issue relates to Android mobile support. enhancement New features, or improvements to existing features.

Comments

@freakboy3742
Copy link
Member

What is the problem or limitation you are having?

Briefcase currently supports code signing on macOS and Windows. Code signing is also required for Android release artefacts.

Describe the solution you'd like

briefcase package android --identity <identity> should accept a path to a keystore, and use that keystore to sign the app.

briefcase package android should prompt the user to do one of:

  1. Ad-hoc sign the app (i.e., do nothing explicit with signatures, as is done currently)
  2. Look for any file named *.jks in the project folder, the .android subfolder of the project folder, or the user's ~/.android folder, and provide those files as candidate keystores to use.
  3. Create a new keystore named org.example.myapp.jks in a .android folder of the project directory, and use that keystore.

Describe alternatives you've considered

Continue to require manual signing. The process of generating a keystore and signing the app; this is a simplification process.

Additional context

No response

@mhsmith
Copy link
Member

mhsmith commented Aug 8, 2024

You can configure both the debug and the release keystore with a build.gradle setting like this. To add it to your app, put a build_gradle_extra_content setting in the android section of your pyproject.toml file (probably as a TOML multi-line string), then rerun briefcase create android.

For a complete example, see #1944 (reply in thread).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android The issue relates to Android mobile support. enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants