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.
This PR installs all required Android SDKs, Ruby, Cocoapods, Fastlane and all required build tools in a deterministic manner using Nix Flakes. Unfortunately, Xcode can't be automatically installed because Apple License lets only Apple serve Xcode binaries (needs authentication into your Apple Account) but the setup of installing the right version of Xcode has been added in this PR.
This PR also brings in the necessary documentation to do any dev work in a simpler and faster manner for this repo.
How to check if the setup works on your machine:
yarn install
yarn start
in one terminal.make emulator
on one terminal andyarn android
in another. If you get "error Failed to launch emulator." in the yarn android run, it's cool. This won't exit the android build, our emulator device will be available to Android Debug Bridge(adb). Ifyarn start
failed on the first run, don't worry as it's a known issue, you can restart theyarn start
command and everything rerun theyarn android
command.xcodes
CLI as well as you should be shown in the direnv logs (~9-10 GB download for downloading and selecting Xcode) If you don't have iOS Runtime, then you should also doxcodes runtimes install "iOS 17.4"
. With that, now you can runyarn ios
for Blink to run.Ruby gets built on your machine so the first run can take about 5-6 minutes to install everything.
Working on Linux
Tested on:
Working on MacOS
Tested on:
Android Development
iOS Development