Skip to content

React-native 0.70 support #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,25 +129,37 @@ jobs:
build-android-ios-065:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.65
react-native-version: '0.65'
release-version: 0.0.${GITHUB_SHA::8}

build-android-ios-069:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.69
react-native-version: '0.69'
release-version: 0.0.${GITHUB_SHA::8}

build-android-ios-070:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: '0.70'
release-version: 0.0.${GITHUB_SHA::8}

build-windows-065:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.65
react-native-version: '0.65'
release-version: 0.0.${GITHUB_SHA::8}

build-windows-069:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.69
react-native-version: '0.69'
release-version: 0.0.${GITHUB_SHA::8}

build-windows-070:
uses: ./.github/workflows/windows.yml
with:
react-native-version: '0.70'
release-version: 0.0.${GITHUB_SHA::8}

build-typescript:
Expand Down
50 changes: 43 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,49 @@ jobs:
build-android-ios-064:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.64
react-native-version: '0.64'
release-version: ${GITHUB_REF/refs\/tags\//}

build-android-ios-065:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.65
react-native-version: '0.65'
release-version: ${GITHUB_REF/refs\/tags\//}

build-android-ios-069:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.69
react-native-version: '0.69'
release-version: ${GITHUB_REF/refs\/tags\//}

build-android-ios-070:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: '0.70'
release-version: ${GITHUB_REF/refs\/tags\//}

build-windows-064:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.64
react-native-version: '0.64'
release-version: ${GITHUB_REF/refs\/tags\//}

build-windows-065:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.65
react-native-version: '0.65'
release-version: ${GITHUB_REF/refs\/tags\//}

build-windows-069:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.69
react-native-version: '0.69'
release-version: ${GITHUB_REF/refs\/tags\//}

build-windows-070:
uses: ./.github/workflows/windows.yml
with:
react-native-version: '0.70'
release-version: ${GITHUB_REF/refs\/tags\//}

build-typescript:
Expand All @@ -46,7 +58,7 @@ jobs:
release-version: ${GITHUB_REF/refs\/tags\//}

package:
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-windows-064, build-windows-065, build-windows-069]
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-android-ios-070, build-windows-064, build-windows-065, build-windows-069, build-windows-070]
runs-on: macos-latest
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -74,6 +86,11 @@ jobs:
with:
name: 'Assembled-iOSAndroid0.69'
path: Package/Assembled-iOSAndroid0.69
- name: Download Assembled-iOSAndroid 0.70 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-iOSAndroid0.70'
path: Package/Assembled-iOSAndroid0.70
- name: Download Assembled-Windows 0.64 Folder
uses: actions/download-artifact@v2
with:
Expand All @@ -89,6 +106,11 @@ jobs:
with:
name: 'Assembled-Windows0.69'
path: Package/Assembled-Windows0.69
- name: Download Assembled-Windows 0.70 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-Windows0.70'
path: Package/Assembled-Windows0.70
- name: Display structure of downloaded Assembled and Assembled-Windows folders
run: ls -R
- name: Setup Node.js
Expand Down Expand Up @@ -126,6 +148,13 @@ jobs:
working-directory: ./Package/Assembled-iOSAndroid0.69
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Version & Publish Package @babylonjs/react-native-iosandroid-0-70
run: |
npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//}
npm publish --access public
working-directory: ./Package/Assembled-iOSAndroid0.70
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Version & Publish Package @babylonjs/react-native-windows-0-64
run: |
Expand All @@ -148,3 +177,10 @@ jobs:
working-directory: ./Package/Assembled-Windows0.69
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Version & Publish Package @babylonjs/react-native-windows-0-70
run: |
npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//}
npm publish --access public
working-directory: ./Package/Assembled-Windows0.70
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 19 additions & 7 deletions .github/workflows/publish_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,49 @@ jobs:
build-android-ios-064:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.64
react-native-version: '0.64'
release-version: ${{ github.event.inputs.release_version }}

build-android-ios-065:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.65
react-native-version: '0.65'
release-version: ${{ github.event.inputs.release_version }}

build-android-ios-069:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: 0.69
react-native-version: '0.69'
release-version: ${{ github.event.inputs.release_version }}

build-android-ios-070:
uses: ./.github/workflows/ios_android.yml
with:
react-native-version: '0.70'
release-version: ${{ github.event.inputs.release_version }}

build-windows-064:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.64
react-native-version: '0.64'
release-version: ${{ github.event.inputs.release_version }}

build-windows-065:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.65
react-native-version: '0.65'
release-version: ${{ github.event.inputs.release_version }}

build-windows-069:
uses: ./.github/workflows/windows.yml
with:
react-native-version: 0.69
react-native-version: '0.69'
release-version: ${{ github.event.inputs.release_version }}

build-windows-070:
uses: ./.github/workflows/windows.yml
with:
react-native-version: '0.70'
release-version: ${{ github.event.inputs.release_version }}

build-typescript:
Expand All @@ -56,7 +68,7 @@ jobs:
release-version: ${{ github.event.inputs.release_version }}

package:
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-windows-064, build-windows-065, build-windows-069]
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-android-ios-070, build-windows-064, build-windows-065, build-windows-069, build-windows-070]
runs-on: macos-latest
steps:
- name: Checkout Repo
Expand Down
6 changes: 6 additions & 0 deletions Apps/Playground/0.70/.buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
2 changes: 2 additions & 0 deletions Apps/Playground/0.70/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
16 changes: 16 additions & 0 deletions Apps/Playground/0.70/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
},
},
],
};
64 changes: 64 additions & 0 deletions Apps/Playground/0.70/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local

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

# node.js
#
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
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/
7 changes: 7 additions & 0 deletions Apps/Playground/0.70/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
};
1 change: 1 addition & 0 deletions Apps/Playground/0.70/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.5
1 change: 1 addition & 0 deletions Apps/Playground/0.70/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 6 additions & 0 deletions Apps/Playground/0.70/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.5'

gem 'cocoapods', '~> 1.11', '>= 1.11.2'
14 changes: 14 additions & 0 deletions Apps/Playground/0.70/__tests__/App-test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @format
*/

import 'react-native';
import React from 'react';
import App from '../App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
renderer.create(<App />);
});
1 change: 1 addition & 0 deletions Apps/Playground/0.70/_node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
Loading