Parcourir la source

preparing for detox

Daniel Zlotin il y a 7 ans
Parent
révision
c12720dc56

+ 228
- 24
playground/ios/playground.xcodeproj/project.pbxproj Voir le fichier

@@ -7,24 +7,24 @@
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
10
-		00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11
-		00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12
-		00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13
-		00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14
-		00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
10
+		00C302E51ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11
+		00C302E71ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12
+		00C302E81ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13
+		00C302E91ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14
+		00C302EA1ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 15
 		00E356F31AD99517003FC87E /* playgroundTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* playgroundTests.m */; };
16
-		133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17
-		139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18
-		139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
16
+		133E29F31AD74F7200F7D852 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17
+		139105C61AF99C1200B5F7CC /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18
+		139FDEF61B0652A700C62182 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
19 19
 		13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
20 20
 		13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
21 21
 		13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 22
 		13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23
-		146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
23
+		146834051AC3E58100842450 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24 24
 		2636F1CD1E11309B007ABB09 /* RNNViewControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2636F1CC1E11309B007ABB09 /* RNNViewControllerTests.m */; };
25
-		2647D65F1DB175C200B23722 /* libReactNativeNavigation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2647D65E1DB175B300B23722 /* libReactNativeNavigation.a */; };
26
-		7B9B39861DEB4091004A6281 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B9B39631DEB4076004A6281 /* libRCTAnimation.a */; };
27
-		832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
25
+		2647D65F1DB175C200B23722 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 2647D65E1DB175B300B23722 /* libReactNativeNavigation.a */; };
26
+		7B9B39861DEB4091004A6281 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B9B39631DEB4076004A6281 /* libRCTAnimation.a */; };
27
+		832341BD1AAA6AB300B99B32 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
28 28
 /* End PBXBuildFile section */
29 29
 
30 30
 /* Begin PBXContainerItemProxy section */
@@ -215,18 +215,18 @@
215 215
 			isa = PBXFrameworksBuildPhase;
216 216
 			buildActionMask = 2147483647;
217 217
 			files = (
218
-				7B9B39861DEB4091004A6281 /* libRCTAnimation.a in Frameworks */,
219
-				2647D65F1DB175C200B23722 /* libReactNativeNavigation.a in Frameworks */,
220
-				146834051AC3E58100842450 /* libReact.a in Frameworks */,
221
-				00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
222
-				00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
223
-				00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
224
-				133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
225
-				00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
226
-				139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
227
-				832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
228
-				00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
229
-				139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
218
+				7B9B39861DEB4091004A6281 /* ReferenceProxy in Frameworks */,
219
+				2647D65F1DB175C200B23722 /* ReferenceProxy in Frameworks */,
220
+				146834051AC3E58100842450 /* ReferenceProxy in Frameworks */,
221
+				00C302E51ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
222
+				00C302E71ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
223
+				00C302E81ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
224
+				133E29F31AD74F7200F7D852 /* ReferenceProxy in Frameworks */,
225
+				00C302E91ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
226
+				139105C61AF99C1200B5F7CC /* ReferenceProxy in Frameworks */,
227
+				832341BD1AAA6AB300B99B32 /* ReferenceProxy in Frameworks */,
228
+				00C302EA1ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
229
+				139FDEF61B0652A700C62182 /* ReferenceProxy in Frameworks */,
230 230
 			);
231 231
 			runOnlyForDeploymentPostprocessing = 0;
232 232
 		};
@@ -818,6 +818,29 @@
818 818
 			};
819 819
 			name = Release;
820 820
 		};
821
+		048D2E7E9477FA2088E39149 /* Release_Detox */ = {
822
+			isa = XCBuildConfiguration;
823
+			buildSettings = {
824
+				BUNDLE_LOADER = "$(TEST_HOST)";
825
+				COPY_PHASE_STRIP = NO;
826
+				FRAMEWORK_SEARCH_PATHS = (
827
+					"$(SDKROOT)/Developer/Library/Frameworks",
828
+					"$(inherited)",
829
+				);
830
+				HEADER_SEARCH_PATHS = (
831
+					"$(inherited)",
832
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
833
+					"$(SRCROOT)/../node_modules/react-native/React/**",
834
+					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
835
+				);
836
+				INFOPLIST_FILE = playgroundTests/Info.plist;
837
+				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
838
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
839
+				PRODUCT_NAME = "$(TARGET_NAME)";
840
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/playground.app/playground";
841
+			};
842
+			name = Release_Detox;
843
+		};
821 844
 		13B07F941A680F5B00A75B9A /* Debug */ = {
822 845
 			isa = XCBuildConfiguration;
823 846
 			buildSettings = {
@@ -865,6 +888,109 @@
865 888
 			};
866 889
 			name = Release;
867 890
 		};
891
+		2984212B73D7531DE5F65D1F /* Debug_Detox */ = {
892
+			isa = XCBuildConfiguration;
893
+			buildSettings = {
894
+				BUNDLE_LOADER = "$(TEST_HOST)";
895
+				FRAMEWORK_SEARCH_PATHS = (
896
+					"$(SDKROOT)/Developer/Library/Frameworks",
897
+					"$(inherited)",
898
+				);
899
+				GCC_PREPROCESSOR_DEFINITIONS = (
900
+					"DEBUG=1",
901
+					"$(inherited)",
902
+				);
903
+				HEADER_SEARCH_PATHS = (
904
+					"$(inherited)",
905
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
906
+					"$(SRCROOT)/../node_modules/react-native/React/**",
907
+					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
908
+				);
909
+				INFOPLIST_FILE = playgroundTests/Info.plist;
910
+				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
911
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
912
+				PRODUCT_NAME = "$(TARGET_NAME)";
913
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/playground.app/playground";
914
+			};
915
+			name = Debug_Detox;
916
+		};
917
+		29AFC5A9B25FF77E054960D7 /* Release_Detox */ = {
918
+			isa = XCBuildConfiguration;
919
+			buildSettings = {
920
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
921
+				DEPLOY_DETOX_FRAMEWORK = YES;
922
+				DEVELOPMENT_TEAM = "";
923
+				FRAMEWORK_SEARCH_PATHS = (
924
+					"$(inherited)",
925
+					"$(PROJECT_DIR)/../node_modules/detox",
926
+				);
927
+				HEADER_SEARCH_PATHS = (
928
+					"$(inherited)",
929
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
930
+					"$(SRCROOT)/../node_modules/react-native/React/**",
931
+					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
932
+				);
933
+				INFOPLIST_FILE = playground/Info.plist;
934
+				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
935
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
936
+				OTHER_LDFLAGS = (
937
+					"-ObjC",
938
+					"-l\"c++\"",
939
+					"-framework",
940
+					Detox,
941
+				);
942
+				PRODUCT_BUNDLE_IDENTIFIER = com.reactnativenavigation.playground;
943
+				PRODUCT_NAME = playground;
944
+			};
945
+			name = Release_Detox;
946
+		};
947
+		57FA1AC8487324BC4A99A465 /* Debug_Detox */ = {
948
+			isa = XCBuildConfiguration;
949
+			buildSettings = {
950
+				ALWAYS_SEARCH_USER_PATHS = NO;
951
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
952
+				CLANG_CXX_LIBRARY = "libc++";
953
+				CLANG_ENABLE_MODULES = YES;
954
+				CLANG_ENABLE_OBJC_ARC = YES;
955
+				CLANG_WARN_BOOL_CONVERSION = YES;
956
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
957
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
958
+				CLANG_WARN_EMPTY_BODY = YES;
959
+				CLANG_WARN_ENUM_CONVERSION = YES;
960
+				CLANG_WARN_INT_CONVERSION = YES;
961
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
962
+				CLANG_WARN_UNREACHABLE_CODE = YES;
963
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
964
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
965
+				COPY_PHASE_STRIP = NO;
966
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
967
+				GCC_C_LANGUAGE_STANDARD = gnu99;
968
+				GCC_DYNAMIC_NO_PIC = NO;
969
+				GCC_OPTIMIZATION_LEVEL = 0;
970
+				GCC_PREPROCESSOR_DEFINITIONS = (
971
+					"DEBUG=1",
972
+					"$(inherited)",
973
+				);
974
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
975
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
976
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
977
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
978
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
979
+				GCC_WARN_UNUSED_FUNCTION = YES;
980
+				GCC_WARN_UNUSED_VARIABLE = YES;
981
+				HEADER_SEARCH_PATHS = (
982
+					"$(inherited)",
983
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
984
+					"$(SRCROOT)/../node_modules/react-native/React/**",
985
+				);
986
+				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
987
+				MTL_ENABLE_DEBUG_INFO = YES;
988
+				ONLY_ACTIVE_ARCH = YES;
989
+				OTHER_LDFLAGS = "";
990
+				SDKROOT = iphoneos;
991
+			};
992
+			name = Debug_Detox;
993
+		};
868 994
 		83CBBA201A601CBA00E9B192 /* Debug */ = {
869 995
 			isa = XCBuildConfiguration;
870 996
 			buildSettings = {
@@ -953,6 +1079,78 @@
953 1079
 			};
954 1080
 			name = Release;
955 1081
 		};
1082
+		BBF3AB28495B87423DAC695F /* Release_Detox */ = {
1083
+			isa = XCBuildConfiguration;
1084
+			buildSettings = {
1085
+				ALWAYS_SEARCH_USER_PATHS = NO;
1086
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1087
+				CLANG_CXX_LIBRARY = "libc++";
1088
+				CLANG_ENABLE_MODULES = YES;
1089
+				CLANG_ENABLE_OBJC_ARC = YES;
1090
+				CLANG_WARN_BOOL_CONVERSION = YES;
1091
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
1092
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1093
+				CLANG_WARN_EMPTY_BODY = YES;
1094
+				CLANG_WARN_ENUM_CONVERSION = YES;
1095
+				CLANG_WARN_INT_CONVERSION = YES;
1096
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1097
+				CLANG_WARN_UNREACHABLE_CODE = YES;
1098
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1099
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1100
+				COPY_PHASE_STRIP = YES;
1101
+				ENABLE_NS_ASSERTIONS = NO;
1102
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
1103
+				GCC_C_LANGUAGE_STANDARD = gnu99;
1104
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1105
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1106
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
1107
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1108
+				GCC_WARN_UNUSED_FUNCTION = YES;
1109
+				GCC_WARN_UNUSED_VARIABLE = YES;
1110
+				HEADER_SEARCH_PATHS = (
1111
+					"$(inherited)",
1112
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1113
+					"$(SRCROOT)/../node_modules/react-native/React/**",
1114
+				);
1115
+				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1116
+				MTL_ENABLE_DEBUG_INFO = NO;
1117
+				OTHER_LDFLAGS = "";
1118
+				SDKROOT = iphoneos;
1119
+				VALIDATE_PRODUCT = YES;
1120
+			};
1121
+			name = Release_Detox;
1122
+		};
1123
+		DB9A0E11DD86A380A31F9DD9 /* Debug_Detox */ = {
1124
+			isa = XCBuildConfiguration;
1125
+			buildSettings = {
1126
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1127
+				DEAD_CODE_STRIPPING = NO;
1128
+				DEPLOY_DETOX_FRAMEWORK = YES;
1129
+				DEVELOPMENT_TEAM = "";
1130
+				FRAMEWORK_SEARCH_PATHS = (
1131
+					"$(inherited)",
1132
+					"$(PROJECT_DIR)/../node_modules/detox",
1133
+				);
1134
+				HEADER_SEARCH_PATHS = (
1135
+					"$(inherited)",
1136
+					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1137
+					"$(SRCROOT)/../node_modules/react-native/React/**",
1138
+					"$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
1139
+				);
1140
+				INFOPLIST_FILE = playground/Info.plist;
1141
+				IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1142
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1143
+				OTHER_LDFLAGS = (
1144
+					"-ObjC",
1145
+					"-l\"c++\"",
1146
+					"-framework",
1147
+					Detox,
1148
+				);
1149
+				PRODUCT_BUNDLE_IDENTIFIER = com.reactnativenavigation.playground;
1150
+				PRODUCT_NAME = playground;
1151
+			};
1152
+			name = Debug_Detox;
1153
+		};
956 1154
 /* End XCBuildConfiguration section */
957 1155
 
958 1156
 /* Begin XCConfigurationList section */
@@ -961,6 +1159,8 @@
961 1159
 			buildConfigurations = (
962 1160
 				00E356F61AD99517003FC87E /* Debug */,
963 1161
 				00E356F71AD99517003FC87E /* Release */,
1162
+				2984212B73D7531DE5F65D1F /* Debug_Detox */,
1163
+				048D2E7E9477FA2088E39149 /* Release_Detox */,
964 1164
 			);
965 1165
 			defaultConfigurationIsVisible = 0;
966 1166
 			defaultConfigurationName = Debug;
@@ -970,6 +1170,8 @@
970 1170
 			buildConfigurations = (
971 1171
 				13B07F941A680F5B00A75B9A /* Debug */,
972 1172
 				13B07F951A680F5B00A75B9A /* Release */,
1173
+				DB9A0E11DD86A380A31F9DD9 /* Debug_Detox */,
1174
+				29AFC5A9B25FF77E054960D7 /* Release_Detox */,
973 1175
 			);
974 1176
 			defaultConfigurationIsVisible = 0;
975 1177
 			defaultConfigurationName = Debug;
@@ -979,6 +1181,8 @@
979 1181
 			buildConfigurations = (
980 1182
 				83CBBA201A601CBA00E9B192 /* Debug */,
981 1183
 				83CBBA211A601CBA00E9B192 /* Release */,
1184
+				57FA1AC8487324BC4A99A465 /* Debug_Detox */,
1185
+				BBF3AB28495B87423DAC695F /* Release_Detox */,
982 1186
 			);
983 1187
 			defaultConfigurationIsVisible = 0;
984 1188
 			defaultConfigurationName = Debug;

+ 115
- 0
playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground_Detox.xcscheme Voir le fichier

@@ -0,0 +1,115 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "0620"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
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 = "13B07F861A680F5B00A75B9A"
18
+               BuildableName = "playground.app"
19
+               BlueprintName = "playground"
20
+               ReferencedContainer = "container:playground.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+         <BuildActionEntry
24
+            buildForTesting = "YES"
25
+            buildForRunning = "YES"
26
+            buildForProfiling = "NO"
27
+            buildForArchiving = "NO"
28
+            buildForAnalyzing = "YES">
29
+            <BuildableReference
30
+               BuildableIdentifier = "primary"
31
+               BlueprintIdentifier = "00E356ED1AD99517003FC87E"
32
+               BuildableName = "playgroundTests.xctest"
33
+               BlueprintName = "playgroundTests"
34
+               ReferencedContainer = "container:playground.xcodeproj">
35
+            </BuildableReference>
36
+         </BuildActionEntry>
37
+      </BuildActionEntries>
38
+   </BuildAction>
39
+   <TestAction
40
+      buildConfiguration = "Debug"
41
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43
+      shouldUseLaunchSchemeArgsEnv = "YES">
44
+      <Testables>
45
+         <TestableReference
46
+            skipped = "NO">
47
+            <BuildableReference
48
+               BuildableIdentifier = "primary"
49
+               BlueprintIdentifier = "00E356ED1AD99517003FC87E"
50
+               BuildableName = "playgroundTests.xctest"
51
+               BlueprintName = "playgroundTests"
52
+               ReferencedContainer = "container:playground.xcodeproj">
53
+            </BuildableReference>
54
+         </TestableReference>
55
+      </Testables>
56
+      <MacroExpansion>
57
+         <BuildableReference
58
+            BuildableIdentifier = "primary"
59
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
60
+            BuildableName = "playground.app"
61
+            BlueprintName = "playground"
62
+            ReferencedContainer = "container:playground.xcodeproj">
63
+         </BuildableReference>
64
+      </MacroExpansion>
65
+      <AdditionalOptions>
66
+      </AdditionalOptions>
67
+   </TestAction>
68
+   <LaunchAction
69
+      buildConfiguration = "Debug_Detox"
70
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
71
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
72
+      launchStyle = "0"
73
+      useCustomWorkingDirectory = "NO"
74
+      ignoresPersistentStateOnLaunch = "NO"
75
+      debugDocumentVersioning = "YES"
76
+      debugServiceExtension = "internal"
77
+      allowLocationSimulation = "YES">
78
+      <BuildableProductRunnable
79
+         runnableDebuggingMode = "0">
80
+         <BuildableReference
81
+            BuildableIdentifier = "primary"
82
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
83
+            BuildableName = "playground.app"
84
+            BlueprintName = "playground"
85
+            ReferencedContainer = "container:playground.xcodeproj">
86
+         </BuildableReference>
87
+      </BuildableProductRunnable>
88
+      <AdditionalOptions>
89
+      </AdditionalOptions>
90
+   </LaunchAction>
91
+   <ProfileAction
92
+      buildConfiguration = "Release"
93
+      shouldUseLaunchSchemeArgsEnv = "YES"
94
+      savedToolIdentifier = ""
95
+      useCustomWorkingDirectory = "NO"
96
+      debugDocumentVersioning = "YES">
97
+      <BuildableProductRunnable
98
+         runnableDebuggingMode = "0">
99
+         <BuildableReference
100
+            BuildableIdentifier = "primary"
101
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
102
+            BuildableName = "playground.app"
103
+            BlueprintName = "playground"
104
+            ReferencedContainer = "container:playground.xcodeproj">
105
+         </BuildableReference>
106
+      </BuildableProductRunnable>
107
+   </ProfileAction>
108
+   <AnalyzeAction
109
+      buildConfiguration = "Debug">
110
+   </AnalyzeAction>
111
+   <ArchiveAction
112
+      buildConfiguration = "Release"
113
+      revealArchiveInOrganizer = "YES">
114
+   </ArchiveAction>
115
+</Scheme>

+ 10
- 10
playground/scripts/e2e.ios.js Voir le fichier

@@ -12,18 +12,18 @@ function kill(process) {
12 12
   execSilent(`pkill -f "${process}" || true`);
13 13
 }
14 14
 
15
-function buildXcodeReleaseProj() {
16
-//exec(`RCT_NO_LAUNCH_PACKAGER=true cd ios && xcodebuild \
17
-//-scheme example_Detox clean build \
18
-//-project example.xcodeproj \
19
-//-destination "platform=iOS Simulator,name=iPhone 7,OS=10.1" \
20
-//-derivedDataPath ./DerivedData/example`);
15
+function buildProjForDetox() {
16
+  exec(`RCT_NO_LAUNCH_PACKAGER=true \
17
+          cd ios && xcodebuild \
18
+            -scheme playground_Detox clean build \
19
+            -project playground.xcodeproj \
20
+            -sdk iphonesimulator \
21
+            -derivedDataPath ./DerivedData/playground`);
21 22
 }
22 23
 
23 24
 function e2e() {
24
-  kill(`detox-server`);
25
-
26 25
   try {
26
+    kill(`detox-server`);
27 27
     cp.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
28 28
     exec(`BABEL_ENV=test ./node_modules/mocha/bin/mocha e2e --opts ./e2e/mocha.opts`);
29 29
   } finally {
@@ -31,14 +31,14 @@ function e2e() {
31 31
     kill(`Simulator`);
32 32
     kill(`CoreSimulator`);
33 33
     exec(`cat ./detox-server.log`);
34
+    exec(`rm -f ./detox-server.log`);
34 35
     exec(`sleep 5`);
35 36
   }
36 37
 }
37 38
 
38 39
 function run() {
39
-  buildXcodeReleaseProj();
40
+  buildProjForDetox();
40 41
   e2e();
41 42
 }
42 43
 
43 44
 run();
44
-