1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: project init

This commit is contained in:
steven 2023-03-16 13:45:26 +08:00
parent a182c5d3c6
commit d2f53e17c5
14 changed files with 11 additions and 25 deletions

View File

@ -0,0 +1 @@
{"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/detox.config.js":{"path":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/detox.config.js","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":109,"column":2}}},"fnMap":{},"branchMap":{"0":{"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":47}},"type":"cond-expr","locations":[{"start":{"line":4,"column":28},"end":{"line":4,"column":35}},{"start":{"line":4,"column":38},"end":{"line":4,"column":47}}],"line":4},"1":{"loc":{"start":{"line":9,"column":18},"end":{"line":9,"column":48}},"type":"cond-expr","locations":[{"start":{"line":9,"column":35},"end":{"line":9,"column":36}},{"start":{"line":9,"column":39},"end":{"line":9,"column":48}}],"line":9},"2":{"loc":{"start":{"line":15,"column":11},"end":{"line":15,"column":49}},"type":"cond-expr","locations":[{"start":{"line":15,"column":28},"end":{"line":15,"column":37}},{"start":{"line":15,"column":40},"end":{"line":15,"column":49}}],"line":15},"3":{"loc":{"start":{"line":16,"column":18},"end":{"line":16,"column":56}},"type":"cond-expr","locations":[{"start":{"line":16,"column":35},"end":{"line":16,"column":44}},{"start":{"line":16,"column":47},"end":{"line":16,"column":56}}],"line":16},"4":{"loc":{"start":{"line":58,"column":15},"end":{"line":58,"column":49}},"type":"cond-expr","locations":[{"start":{"line":58,"column":32},"end":{"line":58,"column":37}},{"start":{"line":58,"column":40},"end":{"line":58,"column":49}}],"line":58}},"s":{"0":1},"f":{},"b":{"0":[0,1],"1":[0,1],"2":[0,1],"3":[0,1],"4":[0,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d31b634118eaca812ef2f8fca35d3e150794893a","contentHash":"24644e452c14c12c3cc430658759cf69133f87c12c50f01a65dadd3cbb51ccfd"}}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"parent":"40725f6c-1e75-47cc-a089-e3ac329f51bd","pid":15209,"argv":["/usr/local/bin/node","/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/node_modules/.bin/detox","test","--configuration","android.emu.debug"],"execArgv":[],"cwd":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate","time":1678945059004,"ppid":15205,"coverageFilename":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/.nyc_output/11a13772-4a6a-40eb-9a53-ecdd52d43d9c.json","externalId":"","uuid":"11a13772-4a6a-40eb-9a53-ecdd52d43d9c","files":["/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/detox.config.js"]}

View File

@ -0,0 +1 @@
{"parent":null,"pid":15205,"argv":["/usr/local/bin/node","/opt/homebrew/bin/yarn","detox","test","--configuration","android.emu.debug"],"execArgv":[],"cwd":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate","time":1678945058656,"ppid":15204,"coverageFilename":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/.nyc_output/40725f6c-1e75-47cc-a089-e3ac329f51bd.json","externalId":"","uuid":"40725f6c-1e75-47cc-a089-e3ac329f51bd","files":[]}

View File

@ -0,0 +1 @@
{"parent":"11a13772-4a6a-40eb-9a53-ecdd52d43d9c","pid":15215,"argv":["/usr/local/bin/node","/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/node_modules/.bin/jest","--config","e2e/jest.config.js","e2e"],"execArgv":[],"cwd":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate","time":1678945059406,"ppid":15209,"coverageFilename":"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/.nyc_output/c5416197-e607-4c70-a717-4dea5dff19e2.json","externalId":"","uuid":"c5416197-e607-4c70-a717-4dea5dff19e2","files":["/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/e2e/globalSetup.ts"]}

View File

@ -0,0 +1 @@
{"processes":{"11a13772-4a6a-40eb-9a53-ecdd52d43d9c":{"parent":"40725f6c-1e75-47cc-a089-e3ac329f51bd","children":["c5416197-e607-4c70-a717-4dea5dff19e2"]},"40725f6c-1e75-47cc-a089-e3ac329f51bd":{"parent":null,"children":["11a13772-4a6a-40eb-9a53-ecdd52d43d9c"]},"c5416197-e607-4c70-a717-4dea5dff19e2":{"parent":"11a13772-4a6a-40eb-9a53-ecdd52d43d9c","children":[]}},"files":{"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/detox.config.js":["11a13772-4a6a-40eb-9a53-ecdd52d43d9c"],"/Users/arvinh/Desktop/remotework/react-native-pushy/Example/testHotUpdate/e2e/globalSetup.ts":["c5416197-e607-4c70-a717-4dea5dff19e2"]},"externalIds":{}}

View File

@ -24,21 +24,6 @@ module.exports = {
build:
'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet',
},
'ios.debug': {
type: 'ios.app',
binaryPath:
'ios/build/Build/Products/Debug-iphonesimulator/testHotUpdate.app',
build:
'xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build',
start: 'scripts/start-rn.sh ios',
},
'android.debug': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build:
'cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -',
start: 'scripts/start-rn.sh android',
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -114,7 +114,7 @@ export default function TestConsole({visible}) {
onPress={() => {
NativeTestMethod[i].invoke();
}}
style={{width: 10, height: 10, backgroundColor: 'red'}}
style={{width: 10, height: 10}}
/>,
);
}

View File

@ -1 +1 @@
1678849794
1678943753

View File

@ -8,16 +8,10 @@
"submodule": "git submodule update --init --recursive",
"test": "echo \"Error: no test specified\" && exit 1",
"build-lib": "yarn submodule && $ANDROID_HOME/ndk/20.1.5948944/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_APPLICATION_MK=android/jni/Application.mk NDK_LIBS_OUT=android/lib",
"build:ios": "cd Example/testHotUpdate && detox build --configuration ios.sim.debug",
"build:ios-debug": "cd Example/testHotUpdate && detox build --configuration ios.sim.debug",
"build:ios-release": "cd Example/testHotUpdate && yarn && detox build --configuration ios.sim.release",
"build:android-debug": "cd Example/testHotUpdate && detox build --configuration android.emu.debug",
"build:android-release": "cd Example/testHotUpdate && yarn && detox build --configuration android.emu.release",
"test:ios": "cd Example/testHotUpdate && detox test --configuration ios.sim.debug",
"test:ios-debug": "cd Example/testHotUpdate && detox test --configuration ios.sim.debug",
"test:ios-release": "cd Example/testHotUpdate && detox test --configuration ios.sim.release",
"test:android-debug": "cd Example/testHotUpdate && detox test --configuration android.emu.debug",
"test:android-release": "cd Example/testHotUpdate && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.debug",
"build:android-release": "cd Example/testHotUpdate && yarn && detox build --configuration android.emu.release",
"test:android-release": "cd Example/testHotUpdate && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.release",
"e2e:ios": "npm run build:ios-release && npm run test:ios-release",
"e2e:android": "npm run build:android-release && npm run test:android-release",
"tests:emulator:prepare": "cd .github/workflows/scripts/functions && yarn && yarn build",