@react-native-community/template 0.77.0-nightly-2024924-b3ed5a7 → 0.77.0-nightly-2024925-0f4745b
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/package.json +1 -1
- package/template/ios/HelloWorld/AppDelegate.swift +28 -0
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +4 -10
- package/template/ios/HelloWorld/AppDelegate.h +0 -6
- package/template/ios/HelloWorld/AppDelegate.mm +0 -31
- package/template/ios/HelloWorld/main.m +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-community/template",
|
|
3
|
-
"version": "0.77.0-nightly-
|
|
3
|
+
"version": "0.77.0-nightly-2024925-0f4745b",
|
|
4
4
|
"description": "The template used by `npx @react-native-community/cli init` to bootstrap a React Native application.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import UIKit
|
|
2
|
+
import React
|
|
3
|
+
import React_RCTAppDelegate
|
|
4
|
+
|
|
5
|
+
@main
|
|
6
|
+
class AppDelegate: RCTAppDelegate {
|
|
7
|
+
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
|
8
|
+
self.moduleName = "HelloWorld";
|
|
9
|
+
|
|
10
|
+
// You can add your custom initial props in the dictionary below.
|
|
11
|
+
// They will be passed down to the ViewController used by React Native.
|
|
12
|
+
self.initialProps = [:];
|
|
13
|
+
|
|
14
|
+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
override func sourceURL(for bridge: RCTBridge) -> URL? {
|
|
18
|
+
self.bundleURL()
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
override func bundleURL() -> URL? {
|
|
22
|
+
#if DEBUG
|
|
23
|
+
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
|
|
24
|
+
#else
|
|
25
|
+
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
|
|
26
|
+
#endif
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
10
|
00E356F31AD99517003FC87E /* HelloWorldTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* HelloWorldTests.m */; };
|
|
11
11
|
0C80B921A6F3F58F76C31292 /* libPods-HelloWorld.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-HelloWorld.a */; };
|
|
12
|
-
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
|
|
13
12
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
|
14
|
-
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
|
|
15
13
|
7699B88040F8A987B510C191 /* libPods-HelloWorld-HelloWorldTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-HelloWorld-HelloWorldTests.a */; };
|
|
14
|
+
76D661D02C777F4B0022369A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76D661CF2C777F470022369A /* AppDelegate.swift */; };
|
|
16
15
|
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
|
|
17
16
|
/* End PBXBuildFile section */
|
|
18
17
|
|
|
@@ -31,11 +30,8 @@
|
|
|
31
30
|
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
32
31
|
00E356F21AD99517003FC87E /* HelloWorldTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HelloWorldTests.m; sourceTree = "<group>"; };
|
|
33
32
|
13B07F961A680F5B00A75B9A /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
34
|
-
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = HelloWorld/AppDelegate.h; sourceTree = "<group>"; };
|
|
35
|
-
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = HelloWorld/AppDelegate.mm; sourceTree = "<group>"; };
|
|
36
33
|
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = HelloWorld/Images.xcassets; sourceTree = "<group>"; };
|
|
37
34
|
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = HelloWorld/Info.plist; sourceTree = "<group>"; };
|
|
38
|
-
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = HelloWorld/main.m; sourceTree = "<group>"; };
|
|
39
35
|
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = HelloWorld/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
|
40
36
|
19F6CBCC0A4E27FBF8BF4A61 /* libPods-HelloWorld-HelloWorldTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-HelloWorld-HelloWorldTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
41
37
|
3B4392A12AC88292D35C810B /* Pods-HelloWorld.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloWorld.debug.xcconfig"; path = "Target Support Files/Pods-HelloWorld/Pods-HelloWorld.debug.xcconfig"; sourceTree = "<group>"; };
|
|
@@ -44,6 +40,7 @@
|
|
|
44
40
|
5DCACB8F33CDC322A6C60F78 /* libPods-HelloWorld.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-HelloWorld.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
45
41
|
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = HelloWorld/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
|
46
42
|
89C6BE57DB24E9ADA2F236DE /* Pods-HelloWorld-HelloWorldTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloWorld-HelloWorldTests.release.xcconfig"; path = "Target Support Files/Pods-HelloWorld-HelloWorldTests/Pods-HelloWorld-HelloWorldTests.release.xcconfig"; sourceTree = "<group>"; };
|
|
43
|
+
76D661CF2C777F470022369A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
|
47
44
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
|
48
45
|
/* End PBXFileReference section */
|
|
49
46
|
|
|
@@ -87,12 +84,10 @@
|
|
|
87
84
|
13B07FAE1A68108700A75B9A /* HelloWorld */ = {
|
|
88
85
|
isa = PBXGroup;
|
|
89
86
|
children = (
|
|
90
|
-
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
|
|
91
|
-
13B07FB01A68108700A75B9A /* AppDelegate.mm */,
|
|
92
87
|
13B07FB51A68108700A75B9A /* Images.xcassets */,
|
|
88
|
+
76D661CF2C777F470022369A /* AppDelegate.swift */,
|
|
93
89
|
13B07FB61A68108700A75B9A /* Info.plist */,
|
|
94
90
|
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
|
|
95
|
-
13B07FB71A68108700A75B9A /* main.m */,
|
|
96
91
|
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
|
|
97
92
|
);
|
|
98
93
|
name = HelloWorld;
|
|
@@ -394,8 +389,7 @@
|
|
|
394
389
|
isa = PBXSourcesBuildPhase;
|
|
395
390
|
buildActionMask = 2147483647;
|
|
396
391
|
files = (
|
|
397
|
-
|
|
398
|
-
13B07FC11A68108700A75B9A /* main.m in Sources */,
|
|
392
|
+
76D661D02C777F4B0022369A /* AppDelegate.swift in Sources */,
|
|
399
393
|
);
|
|
400
394
|
runOnlyForDeploymentPostprocessing = 0;
|
|
401
395
|
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#import "AppDelegate.h"
|
|
2
|
-
|
|
3
|
-
#import <React/RCTBundleURLProvider.h>
|
|
4
|
-
|
|
5
|
-
@implementation AppDelegate
|
|
6
|
-
|
|
7
|
-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
8
|
-
{
|
|
9
|
-
self.moduleName = @"HelloWorld";
|
|
10
|
-
// You can add your custom initial props in the dictionary below.
|
|
11
|
-
// They will be passed down to the ViewController used by React Native.
|
|
12
|
-
self.initialProps = @{};
|
|
13
|
-
|
|
14
|
-
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
18
|
-
{
|
|
19
|
-
return [self bundleURL];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
- (NSURL *)bundleURL
|
|
23
|
-
{
|
|
24
|
-
#if DEBUG
|
|
25
|
-
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
26
|
-
#else
|
|
27
|
-
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
28
|
-
#endif
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@end
|