我将该模块配置为stand-alone app
以使用它。因此,当我构建Android APK时,我正在运行“ expo publicish,
”,并且正在Android Studio中制作APK。
顺便说一句,我发现如果更改 Expo源,它将被自动更新。
如何防止这种自动更新?
expo-cli版本:expo-cli 2.18.5
“博览会”:“ ^ 30.0.0”,
我的App.json
{
"expo": {
"name": "test",
"description": "This project is really great.",
"slug": "test",
"privacy": "public",
"sdkVersion": "30.0.0",
"packagerOpts": {
"config": "./rn-cli.config.js"
},
"platforms": ["android"],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"android": {
"package": "com.jackson.myapp",
"publishBundlePath": "android/app/src/main/assets/shell-app.bundle",
"publishManifestPath": "android/app/src/main/assets/shell-app-manifest.json",
"splash": {
"backgroundColor": "#000000"
}
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"usesIcloudStorage": true,
"bundleIdentifier": "com.jackson.myapps",
"publishBundlePath": "ios/mvw/Supporting/shell-app.bundle",
"publishManifestPath": "ios/mvw/Supporting/shell-app-manifest.json"
},
"isDetached": true,
"detach": {
"iosExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.8.4-sdk30.0.0-3de13133-1adc-4ba1-85691e570b4.tar.gz",
"androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.8.1-sdk30.0.0-0fde103b-be3d-43f9-bc48-30336971.tar.gz"
},
"scheme": "exp6c94a01048724a76bc92dca0c"
}
}
答案 0 :(得分:0)
对于Android,您需要更改默认设置。
您可以查看this section下的ExpoKit注释
您猜测
AppConstants.java
,您需要设置以下行:
public static boolean ARE_REMOTE_UPDATES_ENABLED = false;
制作APK之前,您至少必须运行expo publish
一次。