mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-01 05:43:11 +08:00
setup rnoh
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -48,3 +48,4 @@ Example/testHotUpdate/artifacts
|
|||||||
yarn-error.log
|
yarn-error.log
|
||||||
Example/testHotUpdate/.yarn
|
Example/testHotUpdate/.yarn
|
||||||
android/bin
|
android/bin
|
||||||
|
Example/testHotUpdate/harmony
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -96,6 +96,7 @@ android {
|
|||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
|
crunchPngs false
|
||||||
// Caution! In production, you need to generate your own keystore file.
|
// Caution! In production, you need to generate your own keystore file.
|
||||||
// see https://reactnative.dev/docs/signed-apk-android.
|
// see https://reactnative.dev/docs/signed-apk-android.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
|
|||||||
Binary file not shown.
@@ -1,11 +1,24 @@
|
|||||||
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
const {mergeConfig, getDefaultConfig} = require('@react-native/metro-config');
|
||||||
|
const {createHarmonyMetroConfig} = require('react-native-harmony/metro.config');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Metro configuration
|
* @type {import("metro-config").ConfigT}
|
||||||
* https://facebook.github.io/metro/docs/configuration
|
|
||||||
*
|
|
||||||
* @type {import('metro-config').MetroConfig}
|
|
||||||
*/
|
*/
|
||||||
const config = {};
|
const config = {
|
||||||
|
transformer: {
|
||||||
|
getTransformOptions: async () => ({
|
||||||
|
transform: {
|
||||||
|
experimentalImportSupport: false,
|
||||||
|
inlineRequires: true,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|
module.exports = mergeConfig(
|
||||||
|
getDefaultConfig(__dirname),
|
||||||
|
createHarmonyMetroConfig({
|
||||||
|
reactNativeHarmonyPackageName: 'react-native-harmony',
|
||||||
|
}),
|
||||||
|
config,
|
||||||
|
);
|
||||||
|
|||||||
@@ -10,14 +10,17 @@
|
|||||||
"test:e2e": "detox test --configuration android.emu.debug",
|
"test:e2e": "detox test --configuration android.emu.debug",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"postinstall": "patch-package",
|
"postinstall": "patch-package",
|
||||||
"apk": "cd android && ./gradlew assembleRelease"
|
"apk": "cd android && ./gradlew assembleRelease",
|
||||||
|
"dev": "react-native bundle-harmony --dev"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@react-native-oh-tpl/react-native-camera-kit": "file:../react-native-harmony/react-native-oh-tpl-react-native-camera-kit-14.0.0-beta15-0.0.3.tgz",
|
||||||
"patch-package": "^8.0.0",
|
"patch-package": "^8.0.0",
|
||||||
"postinstall-postinstall": "^2.1.0",
|
"postinstall-postinstall": "^2.1.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-native": "0.72.5",
|
"react-native": "0.72.5",
|
||||||
"react-native-camera-kit": "^14.0.0-beta15",
|
"react-native-camera-kit": "^14.0.0-beta15",
|
||||||
|
"react-native-harmony": "file:../react-native-harmony/rnoh-react-native-harmony-0.72.29.tgz",
|
||||||
"react-native-paper": "^5.12.5",
|
"react-native-paper": "^5.12.5",
|
||||||
"react-native-safe-area-context": "^4.11.0",
|
"react-native-safe-area-context": "^4.11.0",
|
||||||
"react-native-update": "^10.15.0",
|
"react-native-update": "^10.15.0",
|
||||||
@@ -42,5 +45,8 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=16"
|
||||||
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"@react-native-community/cli": "11.3.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user