# Install AVD files
yes | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;default;x86'
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
# Create emulator
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_29_AOSP -d pixel --package 'system-images;android-29;default;x86' --force
$ANDROID_HOME/emulator/emulator -list-avds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Clear watchman watches | |
| watchman watch-del-all 2>/dev/null | |
| # Delete metro cache | |
| rm -rf "${TMPDIR:-/tmp}"/metro-* | |
| # local xcodebuild cache | |
| cd ios/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| echo | |
| echo "!!!! BUILDING IOS, PLEASE WAIT... !!!!!" | |
| echo | |
| npm ci | |
| npm run lint | |
| npm run markdown-link-check | |
| npm run test -- --no-watchman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # NOTE: must be run on a MacOS Agent! | |
| steps: | |
| - script: | | |
| # Install AVD files | |
| yes | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;default;x86_64' | |
| yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses | |
| # Create emulator | |
| echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_29_AOSP -d pixel --package 'system-images;android-29;default;x86_64' --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>AppleAntiAliasingThreshold</key> | |
| <integer>1</integer> | |
| <key>ApplePressAndHoldEnabled</key> | |
| <false/> | |
| <key>AppleScrollAnimationEnabled</key> | |
| <integer>0</integer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [color] | |
| ui = auto | |
| [push] | |
| default = current | |
| [commit] | |
| verbose = true | |
| [color "branch"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| publish-docker-image: | |
| name: Publish docker image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/react-native-community/releases/issues/214#issuecomment-791487871 |
For npm packages that don't provide arm binaries:
npm i --target_arch=x64For gradle packages that don't provide arm binaries:
// for apple m1, please add protoc_platform=osx-x86_64 in $HOME/.gradle/gradle.properties