소스 검색

migrated ios to RN41.2

Daniel Zlotin 7 년 전
부모
커밋
c1abfad6ff

+ 1
- 1
ios/RNN.h 파일 보기

@@ -3,7 +3,7 @@
3 3
 #import <UIKit/UIKit.h>
4 4
 
5 5
 #import "RNNEventEmitter.h"
6
-#import "RCTBridge.h"
6
+#import <React/RCTBridge.h>
7 7
 #import "RNNStore.h"
8 8
 
9 9
 @interface RNN : NSObject

+ 2
- 2
ios/RNN.m 파일 보기

@@ -2,7 +2,7 @@
2 2
 #import "RNN.h"
3 3
 #import "RNNEventEmitter.h"
4 4
 
5
-#import "RCTBridge.h"
5
+#import <React/RCTBridge.h>
6 6
 #import "RNNSplashScreen.h"
7 7
 
8 8
 @interface RNN()
@@ -62,7 +62,7 @@
62 62
 	
63 63
 #pragma GCC diagnostic push
64 64
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
65
-	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onJavaScriptDevReload) name:RCTReloadNotification object:self.bridge];
65
+//	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onJavaScriptDevReload) name:RCTReloadNotification object:self.bridge];
66 66
 #pragma GCC diagnostic pop
67 67
 }
68 68
 

+ 1
- 1
ios/RNNBridgeModule.h 파일 보기

@@ -1,7 +1,7 @@
1 1
 #import <Foundation/Foundation.h>
2 2
 #import <UIKit/UIKit.h>
3 3
 
4
-#import "RCTBridgeModule.h"
4
+#import <React/RCTBridgeModule.h>
5 5
 
6 6
 @interface RNNBridgeModule : NSObject <RCTBridgeModule>
7 7
 

+ 2
- 2
ios/RNNEventEmitter.h 파일 보기

@@ -1,8 +1,8 @@
1 1
 
2 2
 #import <Foundation/Foundation.h>
3 3
 
4
-#import "RCTEventEmitter.h"
5
-#import "RCTBridgeModule.h"
4
+#import <React/RCTEventEmitter.h>
5
+#import <React/RCTBridgeModule.h>
6 6
 
7 7
 @interface RNNEventEmitter : RCTEventEmitter <RCTBridgeModule>
8 8
 

+ 1
- 1
ios/RNNReactRootViewCreator.m 파일 보기

@@ -8,7 +8,7 @@
8 8
 
9 9
 #import "RNNReactRootViewCreator.h"
10 10
 #import "RNN.h"
11
-#import "RCTRootView.h"
11
+#import <React/RCTRootView.h>
12 12
 
13 13
 @implementation RNNReactRootViewCreator
14 14
 

+ 1
- 1
ios/RNNRootViewController.m 파일 보기

@@ -1,6 +1,6 @@
1 1
 
2 2
 #import "RNNRootViewController.h"
3
-#import "RCTRootView.h"
3
+#import <React/RCTRootView.h>
4 4
 #import "RNN.h"
5 5
 
6 6
 @interface RNNRootViewController()

+ 0
- 16
ios/ReactNativeNavigation.xcodeproj/project.pbxproj 파일 보기

@@ -447,10 +447,6 @@
447 447
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
448 448
 				GCC_WARN_UNUSED_FUNCTION = YES;
449 449
 				GCC_WARN_UNUSED_VARIABLE = YES;
450
-				HEADER_SEARCH_PATHS = (
451
-					"$(inherited)",
452
-					"$(SRCROOT)/../../react-native/React/**",
453
-				);
454 450
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
455 451
 				MTL_ENABLE_DEBUG_INFO = YES;
456 452
 				ONLY_ACTIVE_ARCH = YES;
@@ -490,10 +486,6 @@
490 486
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
491 487
 				GCC_WARN_UNUSED_FUNCTION = YES;
492 488
 				GCC_WARN_UNUSED_VARIABLE = YES;
493
-				HEADER_SEARCH_PATHS = (
494
-					"$(inherited)",
495
-					"$(SRCROOT)/../../react-native/React/**",
496
-				);
497 489
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
498 490
 				MTL_ENABLE_DEBUG_INFO = NO;
499 491
 				SDKROOT = iphoneos;
@@ -505,10 +497,6 @@
505 497
 			isa = XCBuildConfiguration;
506 498
 			buildSettings = {
507 499
 				GCC_TREAT_WARNINGS_AS_ERRORS = YES;
508
-				HEADER_SEARCH_PATHS = (
509
-					"$(inherited)",
510
-					"$(SRCROOT)/../../react-native/React/**",
511
-				);
512 500
 				OTHER_LDFLAGS = "-ObjC";
513 501
 				PRODUCT_NAME = ReactNativeNavigation;
514 502
 				PUBLIC_HEADERS_FOLDER_PATH = "include/${PRODUCT_NAME}";
@@ -520,10 +508,6 @@
520 508
 			isa = XCBuildConfiguration;
521 509
 			buildSettings = {
522 510
 				GCC_TREAT_WARNINGS_AS_ERRORS = YES;
523
-				HEADER_SEARCH_PATHS = (
524
-					"$(inherited)",
525
-					"$(SRCROOT)/../../react-native/React/**",
526
-				);
527 511
 				OTHER_LDFLAGS = "-ObjC";
528 512
 				PRODUCT_NAME = ReactNativeNavigation;
529 513
 				PUBLIC_HEADERS_FOLDER_PATH = "include/${PRODUCT_NAME}";

+ 95
- 33
playground/ios/playground.xcodeproj/project.pbxproj 파일 보기

@@ -176,6 +176,48 @@
176 176
 			remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
177 177
 			remoteInfo = "React-tvOS";
178 178
 		};
179
+		7BBE23FE1E632A63006FC0DF /* PBXContainerItemProxy */ = {
180
+			isa = PBXContainerItemProxy;
181
+			containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
182
+			proxyType = 2;
183
+			remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
184
+			remoteInfo = yoga;
185
+		};
186
+		7BBE24001E632A63006FC0DF /* PBXContainerItemProxy */ = {
187
+			isa = PBXContainerItemProxy;
188
+			containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
189
+			proxyType = 2;
190
+			remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
191
+			remoteInfo = "yoga-tvOS";
192
+		};
193
+		7BBE24021E632A63006FC0DF /* PBXContainerItemProxy */ = {
194
+			isa = PBXContainerItemProxy;
195
+			containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
196
+			proxyType = 2;
197
+			remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
198
+			remoteInfo = cxxreact;
199
+		};
200
+		7BBE24041E632A63006FC0DF /* PBXContainerItemProxy */ = {
201
+			isa = PBXContainerItemProxy;
202
+			containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
203
+			proxyType = 2;
204
+			remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
205
+			remoteInfo = "cxxreact-tvOS";
206
+		};
207
+		7BBE24061E632A63006FC0DF /* PBXContainerItemProxy */ = {
208
+			isa = PBXContainerItemProxy;
209
+			containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
210
+			proxyType = 2;
211
+			remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
212
+			remoteInfo = jschelpers;
213
+		};
214
+		7BBE24081E632A63006FC0DF /* PBXContainerItemProxy */ = {
215
+			isa = PBXContainerItemProxy;
216
+			containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
217
+			proxyType = 2;
218
+			remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
219
+			remoteInfo = "jschelpers-tvOS";
220
+		};
179 221
 		7BD721FD1E2E420400724059 /* PBXContainerItemProxy */ = {
180 222
 			isa = PBXContainerItemProxy;
181 223
 			containerPortal = 2647D6591DB175B300B23722 /* ReactNativeNavigation.xcodeproj */;
@@ -344,7 +386,13 @@
344 386
 			isa = PBXGroup;
345 387
 			children = (
346 388
 				146834041AC3E56700842450 /* libReact.a */,
347
-				7B9B39831DEB4076004A6281 /* libReact-tvOS.a */,
389
+				7B9B39831DEB4076004A6281 /* libReact.a */,
390
+				7BBE23FF1E632A63006FC0DF /* libyoga.a */,
391
+				7BBE24011E632A63006FC0DF /* libyoga.a */,
392
+				7BBE24031E632A63006FC0DF /* libcxxreact.a */,
393
+				7BBE24051E632A63006FC0DF /* libcxxreact.a */,
394
+				7BBE24071E632A63006FC0DF /* libjschelpers.a */,
395
+				7BBE24091E632A63006FC0DF /* libjschelpers.a */,
348 396
 			);
349 397
 			name = Products;
350 398
 			sourceTree = "<group>";
@@ -680,13 +728,55 @@
680 728
 			remoteRef = 7B9B397E1DEB4076004A6281 /* PBXContainerItemProxy */;
681 729
 			sourceTree = BUILT_PRODUCTS_DIR;
682 730
 		};
683
-		7B9B39831DEB4076004A6281 /* libReact-tvOS.a */ = {
731
+		7B9B39831DEB4076004A6281 /* libReact.a */ = {
684 732
 			isa = PBXReferenceProxy;
685 733
 			fileType = archive.ar;
686
-			path = "libReact-tvOS.a";
734
+			path = libReact.a;
687 735
 			remoteRef = 7B9B39821DEB4076004A6281 /* PBXContainerItemProxy */;
688 736
 			sourceTree = BUILT_PRODUCTS_DIR;
689 737
 		};
738
+		7BBE23FF1E632A63006FC0DF /* libyoga.a */ = {
739
+			isa = PBXReferenceProxy;
740
+			fileType = archive.ar;
741
+			path = libyoga.a;
742
+			remoteRef = 7BBE23FE1E632A63006FC0DF /* PBXContainerItemProxy */;
743
+			sourceTree = BUILT_PRODUCTS_DIR;
744
+		};
745
+		7BBE24011E632A63006FC0DF /* libyoga.a */ = {
746
+			isa = PBXReferenceProxy;
747
+			fileType = archive.ar;
748
+			path = libyoga.a;
749
+			remoteRef = 7BBE24001E632A63006FC0DF /* PBXContainerItemProxy */;
750
+			sourceTree = BUILT_PRODUCTS_DIR;
751
+		};
752
+		7BBE24031E632A63006FC0DF /* libcxxreact.a */ = {
753
+			isa = PBXReferenceProxy;
754
+			fileType = archive.ar;
755
+			path = libcxxreact.a;
756
+			remoteRef = 7BBE24021E632A63006FC0DF /* PBXContainerItemProxy */;
757
+			sourceTree = BUILT_PRODUCTS_DIR;
758
+		};
759
+		7BBE24051E632A63006FC0DF /* libcxxreact.a */ = {
760
+			isa = PBXReferenceProxy;
761
+			fileType = archive.ar;
762
+			path = libcxxreact.a;
763
+			remoteRef = 7BBE24041E632A63006FC0DF /* PBXContainerItemProxy */;
764
+			sourceTree = BUILT_PRODUCTS_DIR;
765
+		};
766
+		7BBE24071E632A63006FC0DF /* libjschelpers.a */ = {
767
+			isa = PBXReferenceProxy;
768
+			fileType = archive.ar;
769
+			path = libjschelpers.a;
770
+			remoteRef = 7BBE24061E632A63006FC0DF /* PBXContainerItemProxy */;
771
+			sourceTree = BUILT_PRODUCTS_DIR;
772
+		};
773
+		7BBE24091E632A63006FC0DF /* libjschelpers.a */ = {
774
+			isa = PBXReferenceProxy;
775
+			fileType = archive.ar;
776
+			path = libjschelpers.a;
777
+			remoteRef = 7BBE24081E632A63006FC0DF /* PBXContainerItemProxy */;
778
+			sourceTree = BUILT_PRODUCTS_DIR;
779
+		};
690 780
 		832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
691 781
 			isa = PBXReferenceProxy;
692 782
 			fileType = archive.ar;
@@ -791,12 +881,7 @@
791 881
 					"DEBUG=1",
792 882
 					"$(inherited)",
793 883
 				);
794
-				HEADER_SEARCH_PATHS = (
795
-					"$(inherited)",
796
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
797
-					"$(SRCROOT)/../node_modules/react-native/React/**",
798
-					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
799
-				);
884
+				HEADER_SEARCH_PATHS = "${SRCROOT}/../node_modules/react-native-navigation/ios/**";
800 885
 				INFOPLIST_FILE = playgroundTests/Info.plist;
801 886
 				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
802 887
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -811,12 +896,7 @@
811 896
 			buildSettings = {
812 897
 				BUNDLE_LOADER = "$(TEST_HOST)";
813 898
 				COPY_PHASE_STRIP = NO;
814
-				HEADER_SEARCH_PATHS = (
815
-					"$(inherited)",
816
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
817
-					"$(SRCROOT)/../node_modules/react-native/React/**",
818
-					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
819
-				);
899
+				HEADER_SEARCH_PATHS = "${SRCROOT}/../node_modules/react-native-navigation/ios/**";
820 900
 				INFOPLIST_FILE = playgroundTests/Info.plist;
821 901
 				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
822 902
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -832,10 +912,6 @@
832 912
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
833 913
 				DEAD_CODE_STRIPPING = NO;
834 914
 				DEVELOPMENT_TEAM = "";
835
-				HEADER_SEARCH_PATHS = (
836
-					"$(inherited)",
837
-					"$(SRCROOT)/../node_modules/react-native/React/**",
838
-				);
839 915
 				INFOPLIST_FILE = playground/Info.plist;
840 916
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
841 917
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -853,10 +929,6 @@
853 929
 			buildSettings = {
854 930
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
855 931
 				DEVELOPMENT_TEAM = "";
856
-				HEADER_SEARCH_PATHS = (
857
-					"$(inherited)",
858
-					"$(SRCROOT)/../node_modules/react-native/React/**",
859
-				);
860 932
 				INFOPLIST_FILE = playground/Info.plist;
861 933
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
862 934
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -906,11 +978,6 @@
906 978
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
907 979
 				GCC_WARN_UNUSED_FUNCTION = YES;
908 980
 				GCC_WARN_UNUSED_VARIABLE = YES;
909
-				HEADER_SEARCH_PATHS = (
910
-					"$(inherited)",
911
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
912
-					"$(SRCROOT)/../node_modules/react-native/React/**",
913
-				);
914 981
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
915 982
 				MTL_ENABLE_DEBUG_INFO = YES;
916 983
 				ONLY_ACTIVE_ARCH = YES;
@@ -950,11 +1017,6 @@
950 1017
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
951 1018
 				GCC_WARN_UNUSED_FUNCTION = YES;
952 1019
 				GCC_WARN_UNUSED_VARIABLE = YES;
953
-				HEADER_SEARCH_PATHS = (
954
-					"$(inherited)",
955
-					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
956
-					"$(SRCROOT)/../node_modules/react-native/React/**",
957
-				);
958 1020
 				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
959 1021
 				MTL_ENABLE_DEBUG_INFO = NO;
960 1022
 				OTHER_LDFLAGS = "";

+ 15
- 1
playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground.xcscheme 파일 보기

@@ -3,9 +3,23 @@
3 3
    LastUpgradeVersion = "0820"
4 4
    version = "1.3">
5 5
    <BuildAction
6
-      parallelizeBuildables = "YES"
6
+      parallelizeBuildables = "NO"
7 7
       buildImplicitDependencies = "YES">
8 8
       <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "83CBBA2D1A601D0E00E9B192"
18
+               BuildableName = "libReact.a"
19
+               BlueprintName = "React"
20
+               ReferencedContainer = "container:../node_modules/react-native/React/React.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
9 23
          <BuildActionEntry
10 24
             buildForTesting = "YES"
11 25
             buildForRunning = "YES"

+ 15
- 1
playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground_release.xcscheme 파일 보기

@@ -3,9 +3,23 @@
3 3
    LastUpgradeVersion = "0820"
4 4
    version = "1.3">
5 5
    <BuildAction
6
-      parallelizeBuildables = "YES"
6
+      parallelizeBuildables = "NO"
7 7
       buildImplicitDependencies = "YES">
8 8
       <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "83CBBA2D1A601D0E00E9B192"
18
+               BuildableName = "libReact.a"
19
+               BlueprintName = "React"
20
+               ReferencedContainer = "container:../node_modules/react-native/React/React.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
9 23
          <BuildActionEntry
10 24
             buildForTesting = "YES"
11 25
             buildForRunning = "YES"

+ 1
- 1
playground/ios/playground/AppDelegate.m 파일 보기

@@ -8,7 +8,7 @@
8 8
 // IMPORTANT: if you're getting an Xcode error that RCCManager.h isn't found, you've probably ran "npm install"
9 9
 // with npm ver 2. You'll need to "npm install" with npm 3 (see https://github.com/wix/react-native-navigation/issues/1)
10 10
 
11
-#import "RCTRootView.h"
11
+#import <React/RCTRootView.h>
12 12
 
13 13
 @implementation AppDelegate
14 14