expo-template-bare-minimum 44.0.9 → 45.0.0
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/.idea/modules/-1038281344/HelloWorld.react-native-safe-area-context.iml +94 -0
- package/android/.idea/modules/-1357046555/HelloWorld.react-native-reanimated.iml +26 -0
- package/android/.idea/modules/-150769534/HelloWorld.expo-manifests.iml +97 -0
- package/android/.idea/modules/-184925778/HelloWorld.expo-json-utils.iml +98 -0
- package/android/.idea/modules/-2122143186/HelloWorld.expo-application.iml +109 -0
- package/android/.idea/modules/-235831713/HelloWorld.expo-keep-awake.iml +74 -0
- package/android/.idea/modules/-305550864/HelloWorld.expo-splash-screen.iml +121 -0
- package/android/.idea/modules/-51310931/HelloWorld.expo-constants.iml +78 -0
- package/android/.idea/modules/-782810028/HelloWorld.expo-updates-interface.iml +89 -0
- package/android/.idea/modules/-953330280/HelloWorld.react-native-screens.iml +128 -0
- package/android/.idea/modules/1258575575/HelloWorld.react-native-gesture-handler.iml +95 -0
- package/android/.idea/modules/1285763372/HelloWorld.expo-structured-headers.iml +117 -0
- package/android/.idea/modules/130277035/HelloWorld.expo.iml +145 -0
- package/android/.idea/modules/1523306737/HelloWorld.expo-font.iml +74 -0
- package/android/.idea/modules/1642879102/HelloWorld.expo-file-system.iml +109 -0
- package/android/.idea/modules/1872392903/HelloWorld.expo-modules-core.iml +124 -0
- package/android/.idea/modules/536861352/HelloWorld.expo-updates.iml +156 -0
- package/android/.idea/modules/HelloWorld.iml +19 -0
- package/android/.idea/modules/app/HelloWorld.app.iml +163 -0
- package/android/.idea/workspace.xml +104 -0
- package/android/.project +17 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/app/build.gradle +134 -10
- package/android/app/src/main/AndroidManifest.xml +2 -2
- package/android/app/src/main/java/com/helloworld/MainApplication.java +12 -3
- package/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java +116 -0
- package/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java +36 -0
- package/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -0
- package/android/app/src/main/jni/Android.mk +49 -0
- package/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -0
- package/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -0
- package/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -0
- package/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -0
- package/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -0
- package/android/app/src/main/jni/MainComponentsRegistry.h +32 -0
- package/android/app/src/main/jni/OnLoad.cpp +11 -0
- package/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/android/app/src/main/res/values/styles.xml +1 -0
- package/android/build.gradle +27 -8
- package/android/gitignore +21 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradle.properties +16 -4
- package/android/gradlew +154 -103
- package/android/gradlew.bat +89 -103
- package/android/settings.gradle +6 -0
- package/ios/HelloWorld/AppDelegate.mm +125 -0
- package/ios/HelloWorld.xcodeproj/project.pbxproj +8 -6
- package/ios/HelloWorld.xcodeproj/project.xcworkspace/xcuserdata/tomasz.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Podfile +15 -17
- package/ios/gitignore +29 -0
- package/package.json +7 -7
- package/ios/HelloWorld/AppDelegate.m +0 -76
- package/ios/HelloWorld.xcodeproj/project.xcworkspace/xcuserdata/brentvatne.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
13B07FBC1A68108700A75B9A /* AppDelegate.
|
|
10
|
+
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
|
|
11
11
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
|
12
12
|
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
|
|
13
13
|
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
|
|
21
21
|
13B07F961A680F5B00A75B9A /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
22
22
|
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = HelloWorld/AppDelegate.h; sourceTree = "<group>"; };
|
|
23
|
-
13B07FB01A68108700A75B9A /* AppDelegate.
|
|
23
|
+
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = HelloWorld/AppDelegate.mm; sourceTree = "<group>"; };
|
|
24
24
|
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = HelloWorld/Images.xcassets; sourceTree = "<group>"; };
|
|
25
25
|
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = HelloWorld/Info.plist; sourceTree = "<group>"; };
|
|
26
26
|
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = HelloWorld/main.m; sourceTree = "<group>"; };
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
BB2F792B24A3F905000567C9 /* Supporting */,
|
|
52
52
|
008F07F21AC5B25A0029DE68 /* main.jsbundle */,
|
|
53
53
|
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
|
|
54
|
-
13B07FB01A68108700A75B9A /* AppDelegate.
|
|
54
|
+
13B07FB01A68108700A75B9A /* AppDelegate.mm */,
|
|
55
55
|
13B07FB51A68108700A75B9A /* Images.xcassets */,
|
|
56
56
|
13B07FB61A68108700A75B9A /* Info.plist */,
|
|
57
57
|
13B07FB71A68108700A75B9A /* main.m */,
|
|
@@ -246,11 +246,13 @@
|
|
|
246
246
|
inputPaths = (
|
|
247
247
|
"${PODS_ROOT}/Target Support Files/Pods-HelloWorld/Pods-HelloWorld-resources.sh",
|
|
248
248
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
|
|
249
|
+
"${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
|
|
249
250
|
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
|
|
250
251
|
);
|
|
251
252
|
name = "[CP] Copy Pods Resources";
|
|
252
253
|
outputPaths = (
|
|
253
254
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
|
|
255
|
+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
|
|
254
256
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
|
|
255
257
|
);
|
|
256
258
|
runOnlyForDeploymentPostprocessing = 0;
|
|
@@ -284,7 +286,7 @@
|
|
|
284
286
|
isa = PBXSourcesBuildPhase;
|
|
285
287
|
buildActionMask = 2147483647;
|
|
286
288
|
files = (
|
|
287
|
-
13B07FBC1A68108700A75B9A /* AppDelegate.
|
|
289
|
+
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
|
|
288
290
|
13B07FC11A68108700A75B9A /* main.m in Sources */,
|
|
289
291
|
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
|
|
290
292
|
);
|
|
@@ -348,7 +350,7 @@
|
|
|
348
350
|
buildSettings = {
|
|
349
351
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
350
352
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
|
351
|
-
CLANG_CXX_LANGUAGE_STANDARD = "
|
|
353
|
+
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
|
352
354
|
CLANG_CXX_LIBRARY = "libc++";
|
|
353
355
|
CLANG_ENABLE_MODULES = YES;
|
|
354
356
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
@@ -404,7 +406,7 @@
|
|
|
404
406
|
buildSettings = {
|
|
405
407
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
406
408
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
|
407
|
-
CLANG_CXX_LANGUAGE_STANDARD = "
|
|
409
|
+
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
|
408
410
|
CLANG_CXX_LIBRARY = "libc++";
|
|
409
411
|
CLANG_ENABLE_MODULES = YES;
|
|
410
412
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
Binary file
|
package/ios/Podfile
CHANGED
|
@@ -3,6 +3,8 @@ require File.join(File.dirname(`node --print "require.resolve('react-native/pack
|
|
|
3
3
|
require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
|
|
4
4
|
|
|
5
5
|
platform :ios, '12.0'
|
|
6
|
+
install! 'cocoapods',
|
|
7
|
+
:deterministic_uuids => false
|
|
6
8
|
|
|
7
9
|
require 'json'
|
|
8
10
|
podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {}
|
|
@@ -11,9 +13,15 @@ target 'HelloWorld' do
|
|
|
11
13
|
use_expo_modules!
|
|
12
14
|
config = use_native_modules!
|
|
13
15
|
|
|
16
|
+
# Flags change depending on the env values.
|
|
17
|
+
flags = get_default_flags()
|
|
18
|
+
|
|
14
19
|
use_react_native!(
|
|
15
20
|
:path => config[:reactNativePath],
|
|
16
|
-
:hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes'
|
|
21
|
+
:hermes_enabled => flags[:hermes_enabled] || podfile_properties['expo.jsEngine'] == 'hermes',
|
|
22
|
+
:fabric_enabled => flags[:fabric_enabled],
|
|
23
|
+
# An absolute path to your application root.
|
|
24
|
+
:app_path => "#{Dir.pwd}/.."
|
|
17
25
|
)
|
|
18
26
|
|
|
19
27
|
# Uncomment to opt-in to using Flipper
|
|
@@ -24,24 +32,14 @@ target 'HelloWorld' do
|
|
|
24
32
|
|
|
25
33
|
post_install do |installer|
|
|
26
34
|
react_native_post_install(installer)
|
|
35
|
+
end
|
|
27
36
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
|
|
34
|
-
target.build_phases.move(build_phase, 0)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
37
|
+
post_integrate do |installer|
|
|
38
|
+
begin
|
|
39
|
+
expo_patch_react_imports!(installer)
|
|
40
|
+
rescue => e
|
|
41
|
+
Pod::UI.warn e
|
|
38
42
|
end
|
|
39
43
|
end
|
|
40
44
|
|
|
41
|
-
# Optional: exprimental feature
|
|
42
|
-
#
|
|
43
|
-
# post_integrate do |installer|
|
|
44
|
-
# expo_patch_react_imports!(installer)
|
|
45
|
-
# end
|
|
46
|
-
|
|
47
45
|
end
|
package/ios/gitignore
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# OSX
|
|
2
|
+
#
|
|
3
|
+
.DS_Store
|
|
4
|
+
|
|
5
|
+
# Xcode
|
|
6
|
+
#
|
|
7
|
+
build/
|
|
8
|
+
*.pbxuser
|
|
9
|
+
!default.pbxuser
|
|
10
|
+
*.mode1v3
|
|
11
|
+
!default.mode1v3
|
|
12
|
+
*.mode2v3
|
|
13
|
+
!default.mode2v3
|
|
14
|
+
*.perspectivev3
|
|
15
|
+
!default.perspectivev3
|
|
16
|
+
xcuserdata
|
|
17
|
+
*.xccheckout
|
|
18
|
+
*.moved-aside
|
|
19
|
+
DerivedData
|
|
20
|
+
*.hmap
|
|
21
|
+
*.ipa
|
|
22
|
+
*.xcuserstate
|
|
23
|
+
project.xcworkspace
|
|
24
|
+
|
|
25
|
+
# Bundle artifacts
|
|
26
|
+
*.jsbundle
|
|
27
|
+
|
|
28
|
+
# CocoaPods
|
|
29
|
+
/Pods/
|
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": "45.0.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "expo start --dev-client",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"web": "expo start --web"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"expo": "~
|
|
14
|
-
"expo-splash-screen": "~0.
|
|
15
|
-
"expo-status-bar": "~1.
|
|
16
|
-
"react": "17.0.
|
|
17
|
-
"react-dom": "17.0.
|
|
18
|
-
"react-native": "0.
|
|
13
|
+
"expo": "~45.0.0-beta.4",
|
|
14
|
+
"expo-splash-screen": "~0.15.0",
|
|
15
|
+
"expo-status-bar": "~1.3.0",
|
|
16
|
+
"react": "17.0.2",
|
|
17
|
+
"react-dom": "17.0.2",
|
|
18
|
+
"react-native": "0.68.1",
|
|
19
19
|
"react-native-web": "0.17.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
#import "AppDelegate.h"
|
|
2
|
-
|
|
3
|
-
#import <React/RCTBridge.h>
|
|
4
|
-
#import <React/RCTBundleURLProvider.h>
|
|
5
|
-
#import <React/RCTRootView.h>
|
|
6
|
-
#import <React/RCTLinkingManager.h>
|
|
7
|
-
#import <React/RCTConvert.h>
|
|
8
|
-
|
|
9
|
-
#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
|
|
10
|
-
#import <FlipperKit/FlipperClient.h>
|
|
11
|
-
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
|
|
12
|
-
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
|
|
13
|
-
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
|
|
14
|
-
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
|
|
15
|
-
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
|
|
16
|
-
|
|
17
|
-
static void InitializeFlipper(UIApplication *application) {
|
|
18
|
-
FlipperClient *client = [FlipperClient sharedClient];
|
|
19
|
-
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
|
|
20
|
-
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
|
|
21
|
-
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
|
|
22
|
-
[client addPlugin:[FlipperKitReactPlugin new]];
|
|
23
|
-
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
|
|
24
|
-
[client start];
|
|
25
|
-
}
|
|
26
|
-
#endif
|
|
27
|
-
|
|
28
|
-
@implementation AppDelegate
|
|
29
|
-
|
|
30
|
-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
31
|
-
{
|
|
32
|
-
#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
|
|
33
|
-
InitializeFlipper(application);
|
|
34
|
-
#endif
|
|
35
|
-
|
|
36
|
-
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];
|
|
37
|
-
RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil];
|
|
38
|
-
rootView.backgroundColor = [UIColor whiteColor];
|
|
39
|
-
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
|
40
|
-
UIViewController *rootViewController = [self.reactDelegate createRootViewController];
|
|
41
|
-
rootViewController.view = rootView;
|
|
42
|
-
self.window.rootViewController = rootViewController;
|
|
43
|
-
[self.window makeKeyAndVisible];
|
|
44
|
-
|
|
45
|
-
[super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
46
|
-
|
|
47
|
-
return YES;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
|
|
51
|
-
{
|
|
52
|
-
// If you'd like to export some custom RCTBridgeModules, add them here!
|
|
53
|
-
return @[];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
|
|
57
|
-
#ifdef DEBUG
|
|
58
|
-
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
|
59
|
-
#else
|
|
60
|
-
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
61
|
-
#endif
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Linking API
|
|
65
|
-
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
|
|
66
|
-
return [RCTLinkingManager application:application openURL:url options:options];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Universal Links
|
|
70
|
-
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
|
|
71
|
-
return [RCTLinkingManager application:application
|
|
72
|
-
continueUserActivity:userActivity
|
|
73
|
-
restorationHandler:restorationHandler];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@end
|