Browse Source

Added new launch screen for iOS

Arnaud Vergnet 1 year ago
parent
commit
57c3e7d9d7

+ 6
- 18
ios/Campus.xcodeproj/project.pbxproj View File

@@ -10,10 +10,10 @@
10 10
 		074F4BDC2432833400BDB9FE /* app.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 07C2E6E4243282B30028AF0A /* app.bundle */; };
11 11
 		074F4BDD2432833400BDB9FE /* app.manifest in Resources */ = {isa = PBXBuildFile; fileRef = 07C2E6E3243282B30028AF0A /* app.manifest */; };
12 12
 		13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
13
-		13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
14 13
 		13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
15 14
 		13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
16 15
 		3DE4DAD41476765101945408 /* libPods-Campus.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D43FF9D506E70904424FA7E9 /* libPods-Campus.a */; };
16
+		931B380C24BF47D400D78120 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 931B380B24BF47D400D78120 /* Launch Screen.storyboard */; };
17 17
 /* End PBXBuildFile section */
18 18
 
19 19
 /* Begin PBXFileReference section */
@@ -23,13 +23,13 @@
23 23
 		13B07F961A680F5B00A75B9A /* application.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = application.app; sourceTree = BUILT_PRODUCTS_DIR; };
24 24
 		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Campus/AppDelegate.h; sourceTree = "<group>"; };
25 25
 		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Campus/AppDelegate.m; sourceTree = "<group>"; };
26
-		13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
27 26
 		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Campus/Images.xcassets; sourceTree = "<group>"; };
28 27
 		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Campus/Info.plist; sourceTree = "<group>"; };
29 28
 		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Campus/main.m; sourceTree = "<group>"; };
30 29
 		2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
31 30
 		3B47C5AFCB8BDE514B7D1AC6 /* Pods-Campus.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Campus.debug.xcconfig"; path = "Target Support Files/Pods-Campus/Pods-Campus.debug.xcconfig"; sourceTree = "<group>"; };
32 31
 		8AC623DBF3A3E2CB072F81F2 /* Pods-Campus.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Campus.release.xcconfig"; path = "Target Support Files/Pods-Campus/Pods-Campus.release.xcconfig"; sourceTree = "<group>"; };
32
+		931B380B24BF47D400D78120 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
33 33
 		D43FF9D506E70904424FA7E9 /* libPods-Campus.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Campus.a"; sourceTree = BUILT_PRODUCTS_DIR; };
34 34
 		ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
35 35
 		ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
@@ -55,10 +55,10 @@
55 55
 				13B07FB01A68108700A75B9A /* AppDelegate.m */,
56 56
 				13B07FB51A68108700A75B9A /* Images.xcassets */,
57 57
 				13B07FB61A68108700A75B9A /* Info.plist */,
58
-				13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
59 58
 				13B07FB71A68108700A75B9A /* main.m */,
60 59
 				07C2E6E4243282B30028AF0A /* app.bundle */,
61 60
 				07C2E6E3243282B30028AF0A /* app.manifest */,
61
+				931B380B24BF47D400D78120 /* Launch Screen.storyboard */,
62 62
 			);
63 63
 			name = Campus;
64 64
 			sourceTree = "<group>";
@@ -178,7 +178,7 @@
178 178
 				074F4BDC2432833400BDB9FE /* app.bundle in Resources */,
179 179
 				074F4BDD2432833400BDB9FE /* app.manifest in Resources */,
180 180
 				13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
181
-				13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
181
+				931B380C24BF47D400D78120 /* Launch Screen.storyboard in Resources */,
182 182
 			);
183 183
 			runOnlyForDeploymentPostprocessing = 0;
184 184
 		};
@@ -304,18 +304,6 @@
304 304
 		};
305 305
 /* End PBXSourcesBuildPhase section */
306 306
 
307
-/* Begin PBXVariantGroup section */
308
-		13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
309
-			isa = PBXVariantGroup;
310
-			children = (
311
-				13B07FB21A68108700A75B9A /* Base */,
312
-			);
313
-			name = LaunchScreen.xib;
314
-			path = Campus;
315
-			sourceTree = "<group>";
316
-		};
317
-/* End PBXVariantGroup section */
318
-
319 307
 /* Begin XCBuildConfiguration section */
320 308
 		13B07F941A680F5B00A75B9A /* Debug */ = {
321 309
 			isa = XCBuildConfiguration;
@@ -330,7 +318,7 @@
330 318
 				DEVELOPMENT_TEAM = 6JA7CLNUV6;
331 319
 				INFOPLIST_FILE = Campus/Info.plist;
332 320
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
333
-				MARKETING_VERSION = 3.1.4;
321
+				MARKETING_VERSION = 4.0.0;
334 322
 				OTHER_LDFLAGS = (
335 323
 					"$(inherited)",
336 324
 					"-ObjC",
@@ -355,7 +343,7 @@
355 343
 				DEVELOPMENT_TEAM = 6JA7CLNUV6;
356 344
 				INFOPLIST_FILE = Campus/Info.plist;
357 345
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
358
-				MARKETING_VERSION = 3.1.4;
346
+				MARKETING_VERSION = 4.0.0;
359 347
 				OTHER_LDFLAGS = (
360 348
 					"$(inherited)",
361 349
 					"-ObjC",

+ 0
- 35
ios/Campus/Base.lproj/LaunchScreen.xib View File

@@ -1,35 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
3
-    <device id="retina3_5" orientation="portrait" appearance="light"/>
4
-    <dependencies>
5
-        <deployment identifier="iOS"/>
6
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
7
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8
-    </dependencies>
9
-    <objects>
10
-        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
11
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
12
-        <view contentMode="scaleToFill" id="iN0-l3-epB">
13
-            <rect key="frame" x="0.0" y="0.0" width="320" height="460"/>
14
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
15
-            <subviews>
16
-                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen" translatesAutoresizingMaskIntoConstraints="NO" id="MEu-9j-Yk9">
17
-                    <rect key="frame" x="0.0" y="0.0" width="320" height="440"/>
18
-                </imageView>
19
-            </subviews>
20
-            <color key="backgroundColor" red="0.74509803921568629" green="0.082352941176470587" blue="0.13333333333333333" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
21
-            <constraints>
22
-                <constraint firstItem="MEu-9j-Yk9" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="topMargin" id="JBv-Ns-A6x"/>
23
-                <constraint firstItem="MEu-9j-Yk9" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="JNO-FD-uRI"/>
24
-                <constraint firstItem="MEu-9j-Yk9" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="KdP-HF-t4U"/>
25
-                <constraint firstItem="MEu-9j-Yk9" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="LNb-Oe-Px1"/>
26
-            </constraints>
27
-            <nil key="simulatedStatusBarMetrics"/>
28
-            <modalPageSheetSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
29
-            <point key="canvasLocation" x="546.37681159420299" y="453.26086956521743"/>
30
-        </view>
31
-    </objects>
32
-    <resources>
33
-        <image name="LaunchScreen" width="682.66668701171875" height="200"/>
34
-    </resources>
35
-</document>

+ 1
- 1
ios/Campus/Images.xcassets/LaunchScreen.imageset/Contents.json View File

@@ -9,7 +9,7 @@
9 9
       "scale" : "2x"
10 10
     },
11 11
     {
12
-      "filename" : "splash.png",
12
+      "filename" : "launch_screen.png",
13 13
       "idiom" : "universal",
14 14
       "scale" : "3x"
15 15
     }

BIN
ios/Campus/Images.xcassets/LaunchScreen.imageset/launch_screen.png View File


BIN
ios/Campus/Images.xcassets/LaunchScreen.imageset/splash.png View File


+ 1
- 1
ios/Campus/Info.plist View File

@@ -59,7 +59,7 @@
59 59
 		<string>MaterialCommunityIcons.ttf</string>
60 60
 	</array>
61 61
 	<key>UILaunchStoryboardName</key>
62
-	<string>LaunchScreen</string>
62
+	<string>Launch Screen</string>
63 63
 	<key>UIRequiredDeviceCapabilities</key>
64 64
 	<array>
65 65
 		<string>armv7</string>

+ 43
- 0
ios/Launch Screen.storyboard View File

@@ -0,0 +1,43 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+    <device id="retina6_1" orientation="portrait" appearance="light"/>
4
+    <dependencies>
5
+        <deployment identifier="iOS"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
7
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+    </dependencies>
10
+    <scenes>
11
+        <!--View Controller-->
12
+        <scene sceneID="EHf-IW-A2E">
13
+            <objects>
14
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+                        <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
17
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+                        <subviews>
19
+                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="LaunchScreen" translatesAutoresizingMaskIntoConstraints="NO" id="pl8-ut-yN1">
20
+                                <rect key="frame" x="0.0" y="44" width="414" height="818"/>
21
+                            </imageView>
22
+                        </subviews>
23
+                        <color key="backgroundColor" red="0.74509803919999995" green="0.08235294118" blue="0.1333333333" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
24
+                        <constraints>
25
+                            <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="pl8-ut-yN1" secondAttribute="bottom" id="BeQ-Vq-15R"/>
26
+                            <constraint firstItem="Bcu-3y-fUS" firstAttribute="trailing" secondItem="pl8-ut-yN1" secondAttribute="trailing" id="F1S-I7-kPb"/>
27
+                            <constraint firstItem="pl8-ut-yN1" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="ach-ld-mbT"/>
28
+                            <constraint firstItem="pl8-ut-yN1" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="bsE-gq-0f4"/>
29
+                            <constraint firstItem="pl8-ut-yN1" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="lyr-KB-P3m"/>
30
+                            <constraint firstItem="pl8-ut-yN1" firstAttribute="top" secondItem="Bcu-3y-fUS" secondAttribute="top" id="zkD-PB-Piv"/>
31
+                        </constraints>
32
+                        <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
33
+                    </view>
34
+                </viewController>
35
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
36
+            </objects>
37
+            <point key="canvasLocation" x="53" y="375"/>
38
+        </scene>
39
+    </scenes>
40
+    <resources>
41
+        <image name="LaunchScreen" width="360" height="640"/>
42
+    </resources>
43
+</document>

Loading…
Cancel
Save