Build for iOS and Android in CI, and deploy iOS builds to TestFlight #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
iOS
Building for iOS requires a paid Apple Developer account, and a bunch of identifiers and certificates. Setting all of this is up is extremely frustrating if you don't know what you're doing and y'all have much higher priority items to work on right now, so I went ahead and set it up. Here's how it works:
prebuild
to generate theios
project.fastlane match
to pull the correct certificates and provisioning profiles for signing the iOS app.Fastfile
)This will allow you to instantly distribute the scouting app to up to 100 people (over email -- will give y'all access later). If the app passes Apple Beta review (which it might, it's not too hard), you can distribute it with a link, which is extremely convenient.
Android
Since I already had
fastlane
set up, I set up a lane to build for Android and dump the APK into artifacts. Android distribution is way easier, so y'all can figure that out. I've used DeployGate in the past, and Firebase also has an App Distribution product that looks promising. If you want to use Google Play internal distribution, I have a paid account, so let me know and I can set it up.Builds (and deploys for iOS) are automatically done on push. They're a little slow right now (~10 minutes), but it should hopefully be okay. Let me know if the speed is causing problems.