feat: CI测试
This commit is contained in:
parent
3d5012fced
commit
26cda39451
2
.github/workflows/e2e_android.yml
vendored
2
.github/workflows/e2e_android.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get device name
|
- name: Get device name
|
||||||
id: device
|
id: device
|
||||||
run: node -e "console.log('AVD_NAME=' + require('./Example/testHotUpdate/detox.config.js').devices.emulator.device.avdName)" >> $GITHUB_OUTPUT
|
run: node -e "console.log('AVD_NAME=' + require('./Example/testHotUpdate/.detoxrc').devices.emulator.device.avdName)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Detox test
|
- name: Detox test
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
apply plugin: "com.android.application"
|
plugins {
|
||||||
|
id 'com.android.application'
|
||||||
|
id 'org.jetbrains.kotlin.android'
|
||||||
|
}
|
||||||
|
|
||||||
import com.android.build.OutputFile
|
import com.android.build.OutputFile
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ buildscript {
|
|||||||
minSdkVersion = 21
|
minSdkVersion = 21
|
||||||
compileSdkVersion = 31
|
compileSdkVersion = 31
|
||||||
targetSdkVersion = 31
|
targetSdkVersion = 31
|
||||||
kotlinVersion = '1.7.10'
|
kotlinVersion = '1.6.10'
|
||||||
|
|
||||||
if (System.properties['os.arch'] == "aarch64") {
|
if (System.properties['os.arch'] == "aarch64") {
|
||||||
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
||||||
|
@ -37,4 +37,4 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|||||||
# your application. You should enable this flag either if you want
|
# your application. You should enable this flag either if you want
|
||||||
# to write custom TurboModules/Fabric components OR use libraries that
|
# to write custom TurboModules/Fabric components OR use libraries that
|
||||||
# are providing them.
|
# are providing them.
|
||||||
newArchEnabled=false
|
newArchEnabled=true
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
"metro-react-native-babel-preset": "^0.76.0",
|
"metro-react-native-babel-preset": "^0.76.0",
|
||||||
"prettier": "^2.8.4",
|
"prettier": "^2.8.4",
|
||||||
"react-test-renderer": "18.2.0",
|
"react-test-renderer": "18.2.0",
|
||||||
"ts-jest": "^29.0.5"
|
"ts-jest": "^29.0.5",
|
||||||
|
"pod-install": "^0.1.37"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "react-native"
|
"preset": "react-native"
|
||||||
|
@ -1 +1 @@
|
|||||||
1680410620
|
1680412162
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
||||||
folly_version = '2021.07.22.00'
|
folly_version = '2021.06.28.00-v2'
|
||||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = package['name']
|
s.name = package['name']
|
||||||
|
Loading…
Reference in New Issue
Block a user