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 packaging (AAB) for uploading to playstore for Saral v1.0 and document the steps. #30

Closed
dileep-gadiraju opened this issue Nov 17, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@dileep-gadiraju
Copy link
Collaborator

Android packaging (AAB) for uploading to playstore for Saral v1.0 and document the steps.

@dileep-gadiraju dileep-gadiraju added the documentation Improvements or additions to documentation label Nov 17, 2021
@dileep-gadiraju
Copy link
Collaborator Author

dileep-gadiraju commented Nov 23, 2021 via email

@navin9584
Copy link
Contributor

navin9584 commented Nov 24, 2021

Android App Bundling Steps
1.Open Terminal in %FRONTEND_FOLDER%/SaralApp/android folder

./gradlew clean

  1. APK Signing can be enabled using the below Gradle files. Make sure the Keystore file is to be used for signing placed in FRONTEND_FOLDER%/SaralApp/android/app folder.

%FRONTEND_FOLDER%/SaralApp/android/gradle.properties

MYAPP_RELEASE_STORE_FILE=my-upload-key.keystore
MYAPP_RELEASE_STORE_PASSWORD=tarento@mis
MYAPP_RELEASE_KEY_ALIAS=hwrecog-key-alias
MYAPP_RELEASE_KEY_PASSWORD=tarento@mis

%FRONTEND_FOLDER%/SaralApp/android/app/build.gradle
Note: Make sure signingConfig signingConfigs.release line is uncommented.

signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

buildTypes {
debug {
signingConfig signingConfigs.release
}
release {
signingConfig signingConfigs.release
debug {
debuggable true
}
}
}

  1. Open Terminal in %FRONTEND_FOLDER%/SaralApp/android folder
    ./gradlew bundleRelease

  2. You can find release .aab file in Project-Saral/v1.0/frontend/SaralApp/android/app/build/outputs/bundle/release folder.

upload on playstore steps

  1. got to google console by click on this link
    https://play.google.com/console/about/
  2. login with developer account
  3. required short discription of saral app
  4. required long discription of saral app
  5. required app icon
  6. required screenshots of app minimum 1 and maximum 8
  7. required one banner size image
  8. select the type of application
  9. add contact detail (optional)
  10. after all detail go to option publish your app on google play
  11. select app countries for publishing
  12. go to create new release and upload the AAB file
  13. click on review release
  14. click on start rollout to production

step to convert AAB file Into APK file
1 download java bundletool from
https://github.com/google/bundletool/releases
2 make a folder suppose name (saralapp) and put java bundletool, AAB file & keystore file in same folder
3 open command folder from saralapp folder
4 run this command :-

java -jar bundletool.jar build-apks --bundle=./app-release.aab --output=./universal.apks --ks=./hwrecog-upload-
key.keystore --ks-key-alias=hwrecog-key-alias --mode=universal
(make sure bundletool name , AAB file name , keystore file name , and alias name is correct)

5 give keystore password
6 Now universal zip file is generated in saralapp folder after extract it will be installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants