-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bceecc3
Showing
126 changed files
with
25,024 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
rn: react-native-community/[email protected] | ||
|
||
commands: | ||
attach_project: | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
|
||
jobs: | ||
install-dependencies: | ||
executor: rn/linux_js | ||
steps: | ||
- checkout | ||
- attach_project | ||
- restore_cache: | ||
keys: | ||
- dependencies-{{ checksum "package.json" }} | ||
- dependencies- | ||
- restore_cache: | ||
keys: | ||
- dependencies-example-{{ checksum "example/package.json" }} | ||
- dependencies-example- | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
yarn install --cwd example --frozen-lockfile | ||
yarn install --frozen-lockfile | ||
- save_cache: | ||
key: dependencies-{{ checksum "package.json" }} | ||
paths: node_modules | ||
- save_cache: | ||
key: dependencies-example-{{ checksum "example/package.json" }} | ||
paths: example/node_modules | ||
- persist_to_workspace: | ||
root: . | ||
paths: . | ||
lint: | ||
executor: rn/linux_js | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Lint files | ||
command: | | ||
yarn lint | ||
typescript: | ||
executor: rn/linux_js | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Typecheck files | ||
command: | | ||
yarn typescript | ||
test: | ||
executor: rn/linux_js | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Integration tests | ||
command: | | ||
yarn test | ||
e2e-ios: | ||
executor: | ||
name: rn/macos | ||
xcode_version: '11.4.0' | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- rn/setup_macos_executor: | ||
node_version: '12.10.0' | ||
- rn/ios_simulator_start: | ||
device: 'iPhone 11' | ||
- run: | ||
command: yarn install --frozen-lockfile | ||
name: yarn install | ||
- rn/pod_install: | ||
pod_install_directory: 'example/ios' | ||
- run: | ||
command: yarn e2e:build:ios:release | ||
name: build for detox | ||
- run: | ||
command: yarn e2e:test:ios:release | ||
name: test detox | ||
- store_artifacts: | ||
path: ./artifacts | ||
e2e-android: | ||
executor: | ||
name: rn/macos | ||
xcode_version: '11.4.0' | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- rn/setup_macos_executor: | ||
node_version: '12.10.0' | ||
- run: | ||
command: yarn install --frozen-lockfile | ||
name: yarn install | ||
- rn/android_emulator_start: | ||
logcat_grep: 'com.amazon.ivsplayer' | ||
- run: | ||
command: yarn e2e:build:android:release | ||
name: build for detox | ||
- run: | ||
no_output_timeout: 60m | ||
command: yarn e2e:test:android:release | ||
name: test detox | ||
- store_artifacts: | ||
path: ./artifacts | ||
|
||
workflows: | ||
build-and-test: | ||
jobs: | ||
- install-dependencies | ||
- lint: | ||
requires: | ||
- install-dependencies | ||
- typescript: | ||
requires: | ||
- install-dependencies | ||
- test: | ||
requires: | ||
- install-dependencies | ||
- e2e-android: | ||
requires: | ||
- install-dependencies | ||
- e2e-ios: | ||
requires: | ||
- install-dependencies |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"testRunner": "jest", | ||
"runnerConfig": "e2e/config.json", | ||
"apps": { | ||
"ios.debug": { | ||
"type": "ios.app", | ||
"binaryPath": "example/ios/build/Build/Products/Debug-iphonesimulator/AmazonIvsExample.app", | ||
"build": "xcodebuild -workspace example/ios/AmazonIvsExample.xcworkspace -configuration Debug -scheme AmazonIvsExample -destination 'platform=iOS Simulator,name=iPhone 11' -derivedDataPath example/ios/build" | ||
}, | ||
"ios.release": { | ||
"type": "ios.app", | ||
"binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/AmazonIvsExample.app", | ||
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace example/ios/AmazonIvsExample.xcworkspace -configuration Release -scheme AmazonIvsExample -destination 'platform=iOS Simulator,name=iPhone 11' -derivedDataPath example/ios/build" | ||
}, | ||
"android.debug": { | ||
"type": "android.apk", | ||
"binaryPath": "example/android/app/build/outputs/apk/debug/app-debug.apk", | ||
"build": "cd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -" | ||
}, | ||
"android.release": { | ||
"type": "android.apk", | ||
"binaryPath": "example/android/app/build/outputs/apk/release/app-release.apk", | ||
"build": "export RCT_NO_LAUNCH_PACKAGER=true && (cd example/android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -)" | ||
} | ||
}, | ||
"devices": { | ||
"simulator": { | ||
"type": "ios.simulator", | ||
"device": { | ||
"type": "iPhone 11" | ||
} | ||
}, | ||
"emulator": { | ||
"type": "android.emulator", | ||
"device": { | ||
"avdName": "Pixel_3a_API_30_x86" | ||
}, | ||
"utilBinaryPaths": ["./test-butler-app.apk"] | ||
}, | ||
"ci-emulator": { | ||
"type": "android.emulator", | ||
"device": { | ||
"avdName": "TestingAVD" | ||
}, | ||
"utilBinaryPaths": ["./test-butler-app.apk"] | ||
} | ||
}, | ||
"configurations": { | ||
"ios": { | ||
"device": "simulator", | ||
"app": "ios.debug" | ||
}, | ||
"ios.sim.release": { | ||
"device": "simulator", | ||
"app": "ios.release" | ||
}, | ||
"android": { | ||
"device": "emulator", | ||
"app": "android.debug" | ||
}, | ||
"android.emu.release": { | ||
"device": "ci-emulator", | ||
"app": "android.release" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
indent_style = space | ||
indent_size = 2 | ||
|
||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
e2e | ||
lib | ||
example/dist |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.pbxproj -text | ||
# specific for windows script files | ||
*.bat text eol=crlf |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# XDE | ||
.expo/ | ||
|
||
# VSCode | ||
.vscode/ | ||
jsconfig.json | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
|
||
# Android/IJ | ||
# | ||
.idea | ||
.gradle | ||
local.properties | ||
android.iml | ||
|
||
# Cocoapods | ||
# | ||
example/ios/Pods | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-debug.log | ||
yarn-error.log | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
android/app/libs | ||
android/keystores/debug.keystore | ||
|
||
# Expo | ||
.expo/* | ||
|
||
# generated by bob | ||
lib/ | ||
artifacts | ||
|
||
test-butler-app.apk | ||
|
||
# react-native-config codegen | ||
example/ios/tmp.xcconfig |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Override Yarn command so we can automatically setup the repo on running `yarn` | ||
|
||
yarn-path "scripts/bootstrap.js" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Code of Conduct | ||
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). | ||
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact | ||
[email protected] with any additional questions or comments. |
Oops, something went wrong.