Skip to content

Commit cf34fab

Browse files
committed
feat: update to the new splash screen plugin config
1 parent cd357c0 commit cf34fab

File tree

17 files changed

+108
-66
lines changed

17 files changed

+108
-66
lines changed
38.5 KB
Loading
21.1 KB
Loading
61 KB
Loading
115 KB
Loading
176 KB
Loading
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources>
22
<string name="app_name">ObytesApp</string>
3-
<string name="expo_splash_screen_resize_mode" translatable="false">cover</string>
4-
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
53
<string name="expo_system_ui_user_interface_style" translatable="false">automatic</string>
4+
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
5+
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
66
</resources>

app.config.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
3232
icon: './assets/icon.png',
3333
userInterfaceStyle: 'automatic',
3434
newArchEnabled: true,
35-
splash: {
36-
image: './assets/splash.png',
37-
resizeMode: 'cover',
38-
backgroundColor: '#2E3C4B',
39-
},
4035
updates: {
4136
fallbackToCacheTimeout: 0,
4237
},
@@ -60,6 +55,14 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
6055
bundler: 'metro',
6156
},
6257
plugins: [
58+
[
59+
'expo-splash-screen',
60+
{
61+
backgroundColor: '#2E3C4B',
62+
image: './assets/splash-icon.png',
63+
imageWidth: 200,
64+
},
65+
],
6366
[
6467
'expo-font',
6568
{

assets/splash-icon.png

29.3 KB
Loading

assets/splash.png

-76.7 KB
Binary file not shown.

ios/ObytesApp.xcodeproj/project.pbxproj

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,34 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
0F5D97480F964DD5AAACF967 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = C52FE42DFED24D9B86CAEDA4 /* noop-file.swift */; };
10+
04E5161265384A50AF357CB0 /* Inter.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 54FE520809FB4D0F83841E18 /* Inter.ttf */; };
1111
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
1212
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1313
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1414
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
15-
4BDBC31C9D51A364535CE17B /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 18A0272A41ECBFA7B057D45C /* PrivacyInfo.xcprivacy */; };
16-
6465CF3CC1694884BA6F5C3B /* Inter.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7D4AC162EB69454584856B8B /* Inter.ttf */; };
15+
6CB218A36F8A484F8B93805D /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CC234168B10406AB47EA0AD /* noop-file.swift */; };
1716
96905EF65AED1B983A6B3ABC /* libPods-ObytesApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ObytesApp.a */; };
17+
A6ACA4763ABB5DDE527D162F /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4B1595520878FA597E728F7E /* PrivacyInfo.xcprivacy */; };
1818
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
1919
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
2020
/* End PBXBuildFile section */
2121

2222
/* Begin PBXFileReference section */
23+
0CA3239751654B7791158749 /* ObytesApp-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "ObytesApp-Bridging-Header.h"; path = "ObytesApp/ObytesApp-Bridging-Header.h"; sourceTree = "<group>"; };
2324
13B07F961A680F5B00A75B9A /* ObytesApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ObytesApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
2425
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ObytesApp/AppDelegate.h; sourceTree = "<group>"; };
2526
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = ObytesApp/AppDelegate.mm; sourceTree = "<group>"; };
2627
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ObytesApp/Images.xcassets; sourceTree = "<group>"; };
2728
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ObytesApp/Info.plist; sourceTree = "<group>"; };
2829
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ObytesApp/main.m; sourceTree = "<group>"; };
29-
18A0272A41ECBFA7B057D45C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = ObytesApp/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
30+
4B1595520878FA597E728F7E /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = ObytesApp/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
31+
54FE520809FB4D0F83841E18 /* Inter.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Inter.ttf; path = ../assets/fonts/Inter.ttf; sourceTree = "<group>"; };
3032
58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ObytesApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ObytesApp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3133
6C2E3173556A471DD304B334 /* Pods-ObytesApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ObytesApp.debug.xcconfig"; path = "Target Support Files/Pods-ObytesApp/Pods-ObytesApp.debug.xcconfig"; sourceTree = "<group>"; };
34+
6CC234168B10406AB47EA0AD /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "ObytesApp/noop-file.swift"; sourceTree = "<group>"; };
3235
7A4D352CD337FB3A3BF06240 /* Pods-ObytesApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ObytesApp.release.xcconfig"; path = "Target Support Files/Pods-ObytesApp/Pods-ObytesApp.release.xcconfig"; sourceTree = "<group>"; };
33-
7D4AC162EB69454584856B8B /* Inter.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = Inter.ttf; path = ../assets/fonts/Inter.ttf; sourceTree = "<group>"; };
34-
9958DA2D206B472D971E0DAE /* ObytesApp-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "ObytesApp-Bridging-Header.h"; path = "ObytesApp/ObytesApp-Bridging-Header.h"; sourceTree = "<group>"; };
3536
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = ObytesApp/SplashScreen.storyboard; sourceTree = "<group>"; };
3637
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
37-
C52FE42DFED24D9B86CAEDA4 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "ObytesApp/noop-file.swift"; sourceTree = "<group>"; };
3838
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
3939
FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-ObytesApp/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
4040
/* End PBXFileReference section */
@@ -61,13 +61,22 @@
6161
13B07FB61A68108700A75B9A /* Info.plist */,
6262
13B07FB71A68108700A75B9A /* main.m */,
6363
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
64-
C52FE42DFED24D9B86CAEDA4 /* noop-file.swift */,
65-
9958DA2D206B472D971E0DAE /* ObytesApp-Bridging-Header.h */,
66-
18A0272A41ECBFA7B057D45C /* PrivacyInfo.xcprivacy */,
64+
6CC234168B10406AB47EA0AD /* noop-file.swift */,
65+
0CA3239751654B7791158749 /* ObytesApp-Bridging-Header.h */,
66+
4B1595520878FA597E728F7E /* PrivacyInfo.xcprivacy */,
6767
);
6868
name = ObytesApp;
6969
sourceTree = "<group>";
7070
};
71+
1842EF6A84644F94BC870903 /* Resources */ = {
72+
isa = PBXGroup;
73+
children = (
74+
54FE520809FB4D0F83841E18 /* Inter.ttf */,
75+
);
76+
name = Resources;
77+
path = "";
78+
sourceTree = "<group>";
79+
};
7180
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
7281
isa = PBXGroup;
7382
children = (
@@ -93,7 +102,7 @@
93102
2D16E6871FA4F8E400B85C8A /* Frameworks */,
94103
D65327D7A22EEC0BE12398D9 /* Pods */,
95104
D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */,
96-
D721D7621CCE43ABAE44109D /* Resources */,
105+
1842EF6A84644F94BC870903 /* Resources */,
97106
);
98107
indentWidth = 2;
99108
sourceTree = "<group>";
@@ -134,15 +143,6 @@
134143
path = Pods;
135144
sourceTree = "<group>";
136145
};
137-
D721D7621CCE43ABAE44109D /* Resources */ = {
138-
isa = PBXGroup;
139-
children = (
140-
7D4AC162EB69454584856B8B /* Inter.ttf */,
141-
);
142-
name = Resources;
143-
path = "";
144-
sourceTree = "<group>";
145-
};
146146
D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = {
147147
isa = PBXGroup;
148148
children = (
@@ -159,13 +159,13 @@
159159
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ObytesApp" */;
160160
buildPhases = (
161161
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
162-
820309D87C495B7B7DE9D10D /* [Expo] Configure project */,
162+
546E7039A1C7A0FF9C21DBD4 /* [Expo] Configure project */,
163163
13B07F871A680F5B00A75B9A /* Sources */,
164164
13B07F8C1A680F5B00A75B9A /* Frameworks */,
165165
13B07F8E1A680F5B00A75B9A /* Resources */,
166166
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
167167
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
168-
1AE3B23F684E78324C3406D0 /* [CP] Embed Pods Frameworks */,
168+
007D01D417A7C088602BFE03 /* [CP] Embed Pods Frameworks */,
169169
);
170170
buildRules = (
171171
);
@@ -215,14 +215,32 @@
215215
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
216216
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
217217
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
218-
6465CF3CC1694884BA6F5C3B /* Inter.ttf in Resources */,
219-
4BDBC31C9D51A364535CE17B /* PrivacyInfo.xcprivacy in Resources */,
218+
04E5161265384A50AF357CB0 /* Inter.ttf in Resources */,
219+
A6ACA4763ABB5DDE527D162F /* PrivacyInfo.xcprivacy in Resources */,
220220
);
221221
runOnlyForDeploymentPostprocessing = 0;
222222
};
223223
/* End PBXResourcesBuildPhase section */
224224

225225
/* Begin PBXShellScriptBuildPhase section */
226+
007D01D417A7C088602BFE03 /* [CP] Embed Pods Frameworks */ = {
227+
isa = PBXShellScriptBuildPhase;
228+
buildActionMask = 2147483647;
229+
files = (
230+
);
231+
inputPaths = (
232+
"${PODS_ROOT}/Target Support Files/Pods-ObytesApp/Pods-ObytesApp-frameworks.sh",
233+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
234+
);
235+
name = "[CP] Embed Pods Frameworks";
236+
outputPaths = (
237+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
238+
);
239+
runOnlyForDeploymentPostprocessing = 0;
240+
shellPath = /bin/sh;
241+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ObytesApp/Pods-ObytesApp-frameworks.sh\"\n";
242+
showEnvVarsInLog = 0;
243+
};
226244
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
227245
isa = PBXShellScriptBuildPhase;
228246
alwaysOutOfDate = 1;
@@ -260,23 +278,24 @@
260278
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
261279
showEnvVarsInLog = 0;
262280
};
263-
1AE3B23F684E78324C3406D0 /* [CP] Embed Pods Frameworks */ = {
281+
546E7039A1C7A0FF9C21DBD4 /* [Expo] Configure project */ = {
264282
isa = PBXShellScriptBuildPhase;
283+
alwaysOutOfDate = 1;
265284
buildActionMask = 2147483647;
266285
files = (
267286
);
287+
inputFileListPaths = (
288+
);
268289
inputPaths = (
269-
"${PODS_ROOT}/Target Support Files/Pods-ObytesApp/Pods-ObytesApp-frameworks.sh",
270-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
271290
);
272-
name = "[CP] Embed Pods Frameworks";
291+
name = "[Expo] Configure project";
292+
outputFileListPaths = (
293+
);
273294
outputPaths = (
274-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
275295
);
276296
runOnlyForDeploymentPostprocessing = 0;
277297
shellPath = /bin/sh;
278-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ObytesApp/Pods-ObytesApp-frameworks.sh\"\n";
279-
showEnvVarsInLog = 0;
298+
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-ObytesApp/expo-configure-project.sh\"\n";
280299
};
281300
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
282301
isa = PBXShellScriptBuildPhase;
@@ -320,25 +339,6 @@
320339
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ObytesApp/Pods-ObytesApp-resources.sh\"\n";
321340
showEnvVarsInLog = 0;
322341
};
323-
820309D87C495B7B7DE9D10D /* [Expo] Configure project */ = {
324-
isa = PBXShellScriptBuildPhase;
325-
alwaysOutOfDate = 1;
326-
buildActionMask = 2147483647;
327-
files = (
328-
);
329-
inputFileListPaths = (
330-
);
331-
inputPaths = (
332-
);
333-
name = "[Expo] Configure project";
334-
outputFileListPaths = (
335-
);
336-
outputPaths = (
337-
);
338-
runOnlyForDeploymentPostprocessing = 0;
339-
shellPath = /bin/sh;
340-
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-ObytesApp/expo-configure-project.sh\"\n";
341-
};
342342
/* End PBXShellScriptBuildPhase section */
343343

344344
/* Begin PBXSourcesBuildPhase section */
@@ -349,7 +349,7 @@
349349
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
350350
13B07FC11A68108700A75B9A /* main.m in Sources */,
351351
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
352-
0F5D97480F964DD5AAACF967 /* noop-file.swift in Sources */,
352+
6CB218A36F8A484F8B93805D /* noop-file.swift in Sources */,
353353
);
354354
runOnlyForDeploymentPostprocessing = 0;
355355
};

0 commit comments

Comments
 (0)