Skip to content

Use fastlane to build and distribute iOS app#349

Merged
tung2744 merged 7 commits intomasterfrom
dev-2149-migrate-away-from-appcenter
Mar 21, 2025
Merged

Use fastlane to build and distribute iOS app#349
tung2744 merged 7 commits intomasterfrom
dev-2149-migrate-away-from-appcenter

Conversation

@louischan-oursky
Copy link
Copy Markdown
Contributor

@linear
Copy link
Copy Markdown

linear Bot commented Mar 20, 2025

@louischan-oursky louischan-oursky changed the title Use fastlane to build and distribute iOS app [WIP] Use fastlane to build and distribute iOS app Mar 21, 2025
@louischan-oursky louischan-oursky changed the title [WIP] Use fastlane to build and distribute iOS app Use fastlane to build and distribute iOS app Mar 21, 2025
Comment thread Makefile
Comment on lines +84 to +86
.PHONY: react-native-set-versionCode
react-native-set-versionCode:
/usr/bin/sed -I "" "s/versionCode 1/versionCode $(shell date +%s)/" ./example/reactnative/android/app/build.gradle
Copy link
Copy Markdown
Collaborator

@tung2744 tung2744 Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for? Seems not referenced anywhere. And I believe there should be other way to set the version code without using text replacement


Found it was referenced in the workflow.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will improve this when I do the android part.

Comment thread Makefile
Comment on lines +88 to +105
.PHONY: react-native-build-unsigned-apk
react-native-build-unsigned-apk:
cd ./example/reactnative/android; \
./gradlew :app:assembleRelease

.PHONY: react-native-zipalign
react-native-zipalign:
"$(ANDROID_HOME)/build-tools/33.0.3/zipalign" -c -v 4 ./example/reactnative/android/app/build/outputs/apk/release/app-release-unsigned.apk

.PHONY: react-native-apksigner
react-native-apksigner:
"$(ANDROID_HOME)/build-tools/33.0.3/apksigner" sign \
--ks $(ANDROID_KEYSTORE_PATH) \
--ks-key-alias $(ANDROID_KEY_ALIAS) \
--ks-pass pass:$(ANDROID_KEYSTORE_PASSWORD) \
--key-pass pass:$(ANDROID_KEY_PASSWORD) \
--out ./example/reactnative/android/app/build/outputs/apk/release/app-release-signed.apk \
./example/reactnative/android/app/build/outputs/apk/release/app-release-unsigned.apk
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I believe you should be able to handle all this with fastlane

  2. I think playstore requires an aab instead of apk.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just moved the code from the YAML file to here. Will use fastlane to distribute in another PR.

@tung2744 tung2744 merged commit 6e31336 into master Mar 21, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants