expo-template-bare-minimum 53.0.8 → 53.0.9-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.
@@ -24,7 +24,7 @@ class MainApplication : Application(), ReactApplication {
24
24
  override fun getPackages(): List<ReactPackage> {
25
25
  val packages = PackageList(this).packages
26
26
  // Packages that cannot be autolinked yet can be added manually here, for example:
27
- // packages.add(new MyReactNativePackage());
27
+ // packages.add(MyReactNativePackage())
28
28
  return packages
29
29
  }
30
30
 
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
4
4
  networkTimeout=10000
5
5
  validateDistributionUrl=true
6
6
  zipStoreBase=GRADLE_USER_HOME
package/android/gradlew CHANGED
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114
114
  NONSTOP* ) nonstop=true ;;
115
115
  esac
116
116
 
117
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117
+ CLASSPATH="\\\"\\\""
118
118
 
119
119
 
120
120
  # Determine the Java command to use to start the JVM.
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
213
213
  set -- \
214
214
  "-Dorg.gradle.appname=$APP_BASE_NAME" \
215
215
  -classpath "$CLASSPATH" \
216
- org.gradle.wrapper.GradleWrapperMain \
216
+ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217
217
  "$@"
218
218
 
219
219
  # Stop when "xargs" is not available.
@@ -70,11 +70,11 @@ goto fail
70
70
  :execute
71
71
  @rem Setup the command line
72
72
 
73
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
+ set CLASSPATH=
74
74
 
75
75
 
76
76
  @rem Execute Gradle
77
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
78
78
 
79
79
  :end
80
80
  @rem End local scope for the variables with windows NT shell
@@ -1,24 +1,35 @@
1
- import React
2
1
  import Expo
2
+ import React
3
+ import ReactAppDependencyProvider
3
4
 
4
5
  @UIApplicationMain
5
6
  public class AppDelegate: ExpoAppDelegate {
7
+ var window: UIWindow?
8
+
9
+ var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
10
+ var reactNativeFactory: RCTReactNativeFactory?
11
+
6
12
  public override func application(
7
13
  _ application: UIApplication,
8
14
  didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
9
15
  ) -> Bool {
10
- self.moduleName = "main"
11
- self.initialProps = [:]
16
+ let delegate = ReactNativeDelegate()
17
+ let factory = ExpoReactNativeFactory(delegate: delegate)
18
+ delegate.dependencyProvider = RCTAppDependencyProvider()
12
19
 
13
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
14
- }
20
+ reactNativeDelegate = delegate
21
+ reactNativeFactory = factory
22
+ bindReactNativeFactory(factory)
15
23
 
16
- public override func bundleURL() -> URL? {
17
- #if DEBUG
18
- return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
19
- #else
20
- return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
24
+ #if os(iOS) || os(tvOS)
25
+ window = UIWindow(frame: UIScreen.main.bounds)
26
+ factory.startReactNative(
27
+ withModuleName: "main",
28
+ in: window,
29
+ launchOptions: launchOptions)
21
30
  #endif
31
+
32
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
22
33
  }
23
34
 
24
35
  // Linking API
@@ -40,3 +51,20 @@ public class AppDelegate: ExpoAppDelegate {
40
51
  return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
41
52
  }
42
53
  }
54
+
55
+ class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
56
+ // Extension point for config-plugins
57
+
58
+ override func sourceURL(for bridge: RCTBridge) -> URL? {
59
+ // needed to return the correct URL for expo-dev-client.
60
+ bridge.bundleURL ?? bundleURL()
61
+ }
62
+
63
+ override func bundleURL() -> URL? {
64
+ #if DEBUG
65
+ return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
66
+ #else
67
+ return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
68
+ #endif
69
+ }
70
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
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
4
  "license": "0BSD",
5
- "version": "53.0.8",
5
+ "version": "53.0.9-1",
6
6
  "main": "index.js",
7
7
  "scripts": {
8
8
  "start": "expo start --dev-client",
@@ -11,13 +11,10 @@
11
11
  "web": "expo start --web"
12
12
  },
13
13
  "dependencies": {
14
- "expo": "~53.0.0-preview.5",
15
- "expo-status-bar": "~2.2.0",
16
- "react": "19.0.0",
17
- "react-native": "0.79.0"
18
- },
19
- "overrides": {
20
- "react": "19.0.0"
14
+ "expo": "53.0.9",
15
+ "expo-status-bar": "~2.2.3",
16
+ "react": "19.1.0",
17
+ "react-native": "0.80.0"
21
18
  },
22
19
  "devDependencies": {
23
20
  "@babel/core": "^7.20.0"
@@ -1 +0,0 @@
1
- {"root":"/Users/brent/code/expo/templates/expo-template-bare-minimum","reactNativePath":"/Users/brent/code/expo/templates/expo-template-bare-minimum/node_modules/react-native","dependencies":{"expo":{"root":"/Users/brent/code/expo/templates/expo-template-bare-minimum/node_modules/expo","name":"expo","platforms":{"android":{"sourceDir":"/Users/brent/code/expo/templates/expo-template-bare-minimum/node_modules/expo/android","packageImportPath":"import expo.modules.ExpoModulesPackage;","packageInstance":"new ExpoModulesPackage()","buildTypes":[],"componentDescriptors":[],"cmakeListsPath":"/Users/brent/code/expo/templates/expo-template-bare-minimum/node_modules/expo/android/build/generated/source/codegen/jni/CMakeLists.txt","cxxModuleCMakeListsModuleName":null,"cxxModuleCMakeListsPath":null,"cxxModuleHeaderName":null}}}},"project":{"android":{"packageName":"com.helloworld","sourceDir":"/Users/brent/code/expo/templates/expo-template-bare-minimum/android"}}}
@@ -1 +0,0 @@
1
- 5d028ea98616dae8eb2e417ae1be211a9ad9fee0283679997344372e7a520dec
@@ -1 +0,0 @@
1
- 1c865220c1bb3c5ac981d9297b91547b33da4402ca777f096d3edb89ea4bbacb