expo-template-bare-minimum 48.0.14 → 49.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/app/build.gradle
CHANGED
|
@@ -21,8 +21,14 @@ react {
|
|
|
21
21
|
entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
|
|
22
22
|
reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
|
|
23
23
|
hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
|
|
24
|
+
codegenDir = new File(["node", "--print", "require.resolve('react-native-codegen/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
|
|
24
25
|
debuggableVariants = expoDebuggableVariants
|
|
25
26
|
|
|
27
|
+
// Use Expo CLI to bundle the app, this ensures the Metro config
|
|
28
|
+
// works correctly with Expo projects.
|
|
29
|
+
cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim())
|
|
30
|
+
bundleCommand = "export:embed"
|
|
31
|
+
|
|
26
32
|
/* Folders */
|
|
27
33
|
// The root of your project, i.e. where "package.json" lives. Default is '..'
|
|
28
34
|
// root = file("../")
|
|
@@ -30,8 +36,6 @@ react {
|
|
|
30
36
|
// reactNativeDir = file("../node_modules/react-native")
|
|
31
37
|
// The folder where the react-native Codegen package is. Default is ../node_modules/react-native-codegen
|
|
32
38
|
// codegenDir = file("../node_modules/react-native-codegen")
|
|
33
|
-
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
|
|
34
|
-
// cliFile = file("../node_modules/react-native/cli.js")
|
|
35
39
|
|
|
36
40
|
/* Variants */
|
|
37
41
|
// The list of variants to that are debuggable. For those we're going to
|
|
@@ -42,9 +46,7 @@ react {
|
|
|
42
46
|
/* Bundling */
|
|
43
47
|
// A list containing the node command and its flags. Default is just 'node'.
|
|
44
48
|
// nodeExecutableAndArgs = ["node"]
|
|
45
|
-
|
|
46
|
-
// The command to run when bundling. By default is 'bundle'
|
|
47
|
-
// bundleCommand = "ram-bundle"
|
|
49
|
+
|
|
48
50
|
//
|
|
49
51
|
// The path to the CLI configuration file. Default is empty.
|
|
50
52
|
// bundleConfig = file(../rn-cli.config.js)
|
package/gitignore
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
20
20
|
{
|
|
21
21
|
#if DEBUG
|
|
22
|
-
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"
|
|
22
|
+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@".expo/.virtual-metro-entry"];
|
|
23
23
|
#else
|
|
24
24
|
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
25
25
|
#endif
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
);
|
|
215
215
|
runOnlyForDeploymentPostprocessing = 0;
|
|
216
216
|
shellPath = /bin/sh;
|
|
217
|
-
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" $PROJECT_ROOT ios relative | tail -n 1)\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
|
|
217
|
+
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios relative | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli')\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
|
|
218
218
|
};
|
|
219
219
|
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
|
|
220
220
|
isa = PBXShellScriptBuildPhase;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
);
|
|
277
277
|
runOnlyForDeploymentPostprocessing = 0;
|
|
278
278
|
shellPath = /bin/sh;
|
|
279
|
-
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\nexport RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `$NODE_BINARY --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'\"`\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open `$NODE_BINARY --print \"require('path').dirname(require.resolve('
|
|
279
|
+
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\nexport RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `$NODE_BINARY --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'\"`\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open `$NODE_BINARY --print \"require('path').dirname(require.resolve('expo/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n";
|
|
280
280
|
showEnvVarsInLog = 0;
|
|
281
281
|
};
|
|
282
282
|
/* End PBXShellScriptBuildPhase section */
|
package/metro.config.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// Learn more https://docs.expo.io/guides/customizing-metro
|
|
2
2
|
const { getDefaultConfig } = require('expo/metro-config');
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/** @type {import('expo/metro-config').MetroConfig} */
|
|
5
|
+
const config = getDefaultConfig(__dirname);
|
|
6
|
+
|
|
7
|
+
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-template-bare-minimum",
|
|
3
3
|
"description": "This bare project template includes a minimal setup for using unimodules with React Native.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "49.0.0-alpha.1",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "expo start --dev-client",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"web": "expo start --web"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"expo": "~
|
|
14
|
-
"expo-splash-screen": "~0.
|
|
15
|
-
"expo-status-bar": "~1.
|
|
13
|
+
"expo": "~49.0.0-alpha.1",
|
|
14
|
+
"expo-splash-screen": "~0.19.0",
|
|
15
|
+
"expo-status-bar": "~1.5.0",
|
|
16
16
|
"react": "18.2.0",
|
|
17
|
-
"react-native": "0.71.
|
|
17
|
+
"react-native": "0.71.7"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/core": "^7.20.0"
|