You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/07/15 13:37:22 UTC

[GitHub] [cordova-android] jsaraiva commented on issue #729: Support new Android App Bundle package format

jsaraiva commented on issue #729: Support new Android App Bundle package format
URL: https://github.com/apache/cordova-android/issues/729#issuecomment-511405278
 
 
   > @jfoclpf I got it working on circle ci.
   > 
   > The steps are:
   > 
   > ```
   > 1 - run:
   >       name: Build android!
   >       command: 'ionic cordova build android --prod --release'
   > 
   > 2  - run:
   >       name: Build an app bundle
   >       command: 'cd /Users/test_user/project/platforms/android && ./gradlew bundle'
   > 3 - run:
   >       name: Signing an app bundle
   >       command: jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore /Users/test_user/project/sign/my_key.keystore /Users/test_user/project/platforms/android/app/build/outputs/bundle/release/app.aab todoapp -storepass my_password
   > ```
   > 
   > 4 - Upload app.aab to google play.
   
   Hello.
   
   The instructions above are right on the money.
   Furthermore, and in case this helps anyone:
   You can skip the signing step itself. If you add a build.json file to your project with the release signing info (see [https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#using-buildjson](https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#using-buildjson)), then this will automatically generate a release-signing.properties file, which in turn will be used by the Gradle tasks (including the task to build the bundle). So, step 3 can be sidestepped entirely.
   Also, running the gradlew "bundle" task generates bundles for both debug and release. If you want to only generate the release version, use "bundleRelease" (or "bundleDebug" to get the debug version).
   
   Cheers!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org