Skip to content

Commit

Permalink
chore: migrate to react-native-test-app (react-native-webview#2148)
Browse files Browse the repository at this point in the history
* chore: migrate to react-native-test-app

- Android test app now requires JDK 11
- Bump react-native* to 0.64
- Bump jest to 26.6.3
- Bump typescript to 4.5.5

* unbreak Windows build

* fix Windows autolink

* don't use nuget and default to x64

* add logging during deploy

* restore certificate for deployment

* update app id

* reuse appxmanifest
  • Loading branch information
tido64 authored Feb 17, 2022
1 parent bd3af37 commit 8f758f8
Show file tree
Hide file tree
Showing 108 changed files with 3,144 additions and 7,664 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v2
name: Checkout Code

- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Install node modules
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --pure-lockfile

- name: yarn build
if: steps.yarn-cache.outputs.cache-hit == 'true'
run: |
Expand All @@ -39,25 +39,24 @@ jobs:
- name: Build x64 release
shell: powershell
run: npx react-native run-windows --root example --arch x64 --release --no-packager --no-deploy --logging
run: yarn windows --release --no-packager --no-deploy --logging

# Workaround for a bug in package searching during deploy.
# The deploy script only searches windows/{*/bin/x64/Release,Release/*}, but the build step above placed the pakcages at windows/x64/Release.
# Copy the packages to Windows/Release before deploying.
- name: Deploy
shell: powershell
run: |
cd example
Copy-Item -Path windows\x64\Release -Recurse -Destination windows\
npx react-native run-windows --arch x64 --release --no-build --no-packager
Copy-Item -Path example\windows\x64\Release -Recurse -Destination example\windows\
npx react-native run-windows --arch x64 --release --root example --logging --no-build --no-packager
- name: Start Appium server
shell: powershell
run: Start-Process PowerShell -ArgumentList "yarn appium"

- name: Start React server
shell: powershell
run: Start-Process PowerShell -ArgumentList "yarn start:windows"
run: Start-Process PowerShell -ArgumentList "yarn start"

- name: Run tests
run: yarn test:windows
1 change: 0 additions & 1 deletion example/.gitattributes

This file was deleted.

73 changes: 10 additions & 63 deletions example/.gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,67 +1,14 @@
# OSX
#
*.binlog
*.hprof
*.xcworkspace/
*.zip
.DS_Store

# Xcode
#
.gradle/
.idea/
.vs/
Pods/
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# exclude project.xcworkspace except for xcshareddata/WorkspaceSettings.xcsettings
project.xcworkspace/*
**/project.xcworkspace/contents.xcworkspacedata
**/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

# Android/IntelliJ
#
build/
.idea
.gradle
dist/
local.properties
*.iml

# Visual Studio Code
#
.vscode/

# node.js
#
msbuild.binlog
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/
6 changes: 0 additions & 6 deletions example/.prettierrc.js

This file was deleted.

55 changes: 0 additions & 55 deletions example/android/app/_BUCK

This file was deleted.

204 changes: 0 additions & 204 deletions example/android/app/build.gradle

This file was deleted.

Loading

0 comments on commit 8f758f8

Please sign in to comment.