question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use keystore.properties file for signing bundles

See original GitHub issue

Is your feature request related to a problem? Please describe.

I have a step in my CI build which uses the command build-apks. In my case these .apk files need to be signed. For this project, we have a file keystore.properties in a format like this.

With this approach, it is difficult to pass these values to bundletool.

Describe the solution you’d like

I would like to pass a single flag like --keystore-properties=keystore.properties, to set all of the signing parameters at once.

Describe alternatives you’ve considered I made a gradle task which extracts the value for each field from keystore.properties, and saves each property them into a new file. These files are then copied to variables in fastlane, so that they can be passed back to bundletool

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
plecesnecommented, Nov 26, 2019

Since this is a new flag, I think that’s fine.

0reactions
HughIngramcommented, Nov 26, 2019

I’m interested in contributing. I have been looking through the code, and I found this note in BuildApksCommand.java:

  // Signing-related flags: should match flags from apksig library.
  private static final Flag<Path> KEYSTORE_FLAG = Flag.path("ks");
  private static final Flag<String> KEY_ALIAS_FLAG = Flag.string("ks-key-alias");
  private static final Flag<Password> KEYSTORE_PASSWORD = Flag.password("ks-pass");
  private static final Flag<Password> KEY_PASSWORD = Flag.password("key-pass");

So adding a new flag here would mean that bundletool won’t match apksig exactly. What do you think @plecesne?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign your app - Android Developers
In the Generate Signed Bundle or APK dialog, select either Android App Bundle or APK and click Next. Select a module from the...
Read more >
Step-by-step guide to Android code signing ... - Codemagic Blog
We need to create a Java Key Store (JKS) file that contains our signing ... STEP 2: Signing our app bundle or APK...
Read more >
How To Securely Build and Sign Your Android App With ...
To be able to sign your application, you need to generate a .jks (Java KeyStore) file that contains your certificate.
Read more >
Configuring Android App Signing on React Native - MIRAI LABS
Instead, what you can do is create a separate upload.keystore.properties file and keep it within your app's workspace, but add it to your...
Read more >
Flutter Issue | Keystore file not set for signing config release
The instructions here did not work for me out of the box. I had to change the key.properties file path to:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found