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 ability to generate apks for different flavors via circle-ci for live stage #1096

Closed
mahalakshme opened this issue Sep 15, 2023 · 6 comments
Assignees

Comments

@mahalakshme
Copy link
Contributor

mahalakshme commented Sep 15, 2023

Currently apk generated in the live stage is not signed with the right keystore. This causes confusion when for some reason this apk need to be shared with external client or need to be used for internal testing.

Analysis notes - options:

  1. Try using make release_prod_universal_without_clean instead of using bundletool.jar to generate universal apk from bundle
  2. or use the right parameters for keystore, key password and keystore password

Additionally, deploy platform translations while building live stage.

@mahalakshme mahalakshme converted this from a draft issue Sep 15, 2023
@mahalakshme mahalakshme changed the title Add ability to generate apks for different flavors via circle-ci Add ability to generate apks for different flavors via circle-ci for live stage Sep 17, 2023
mahalakshme added a commit that referenced this issue Sep 17, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Sep 18, 2023

Related: #1028

@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Sep 18, 2023
@1t5j0y 1t5j0y self-assigned this Sep 18, 2023
1t5j0y added a commit that referenced this issue Sep 18, 2023
- helps with generating flavor specific prod APKs
1t5j0y added a commit that referenced this issue Sep 18, 2023
1t5j0y added a commit that referenced this issue Sep 18, 2023
1t5j0y added a commit that referenced this issue Sep 18, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Sep 18, 2023

Renamed keystore files to <flavor>-release-key.keystore
Standardised keystore password env var to <flavor>_KEYSTORE_PASSWORD (i.e. lfe_KEYSTORE_PASSWORD, lfeTeachNagaland_KEYSTORE_PASSWORD, generic_KEYSTORE_PASSWORD etc)
Standardised key password env var to <flavor>_KEY_PASSWORD
Added env var for key alias with the format <flavor>_KEY_ALIAS

@1t5j0y 1t5j0y moved this from In Progress to Code Review Ready in Avni Product Sep 18, 2023
@petmongrels
Copy link
Contributor

petmongrels commented Sep 18, 2023

does this need update - https://avni.readme.io/docs/release-process-for-the-cloud#circleci-build

also this - https://avni.readme.io/docs/flavouring-avni#steps-to-do-to-get-build-via-circle-ci

objective - can I follow these steps and generate my own apk?

@petmongrels petmongrels moved this from Code Review Ready to In Code Review in Avni Product Sep 18, 2023
@petmongrels petmongrels moved this from In Code Review to Code Review with Comments in Avni Product Sep 18, 2023
@1t5j0y 1t5j0y moved this from Code Review with Comments to In Progress in Avni Product Sep 19, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Sep 19, 2023

No changes to the steps required for building apks via circleci. Updated both the above docs for changes in steps for building prod APK locally.

@1t5j0y 1t5j0y moved this from In Progress to Code Review Ready in Avni Product Sep 19, 2023
@mahalakshme mahalakshme moved this from Code Review Ready to In Code Review in Avni Product Sep 19, 2023
@mahalakshme mahalakshme moved this from In Code Review to QA Ready in Avni Product Sep 19, 2023
1t5j0y pushed a commit that referenced this issue Sep 19, 2023
(cherry picked from commit 427f47b)
1t5j0y added a commit that referenced this issue Sep 19, 2023
- helps with generating flavor specific prod APKs

(cherry picked from commit 73fb58a)
1t5j0y added a commit that referenced this issue Sep 19, 2023
1t5j0y added a commit that referenced this issue Sep 19, 2023
1t5j0y added a commit that referenced this issue Sep 19, 2023
1t5j0y added a commit that referenced this issue Sep 19, 2023
1t5j0y added a commit that referenced this issue Sep 19, 2023
1t5j0y added a commit that referenced this issue Sep 19, 2023
@mahalakshme mahalakshme moved this from QA Ready to In QA in Avni Product Sep 19, 2023
@mahalakshme mahalakshme moved this from In QA to QA Ready in Avni Product Sep 19, 2023
@mahalakshme
Copy link
Contributor Author

@1t5j0y I think upload translations not done for live stage. Just realised recently.

@mahalakshme mahalakshme moved this from QA Ready to Code Review with Comments in Avni Product Sep 22, 2023
@1t5j0y 1t5j0y moved this from Code Review with Comments to In Progress in Avni Product Sep 22, 2023
@1t5j0y
Copy link
Contributor

1t5j0y commented Sep 22, 2023

Added into scope of this card and implemented.

@1t5j0y 1t5j0y moved this from In Progress to Code Review Ready in Avni Product Sep 22, 2023
@petmongrels petmongrels moved this from Code Review Ready to Done in Avni Product Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants