Skip to content

Commit

Permalink
fix(suite-native): fix app icon and splash screen for sdk 52
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkriz authored and Nodonisko committed Dec 2, 2024
1 parent ce41c4d commit 5d26e82
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 110 deletions.
2 changes: 1 addition & 1 deletion packages/connect-examples/mobile-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@trezor/connect-mobile": "workspace:*",
"expo": "^52.0.4",
"expo": "^52.0.11",
"expo-linking": "^7.0.2",
"expo-status-bar": "^2.0.0",
"react": "18.2.0",
Expand Down
15 changes: 9 additions & 6 deletions suite-native/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ const getPlugins = (): ExpoPlugins => {
],
},
],
[
'expo-splash-screen',
{
backgroundColor: '#25292E',
image: './assets/splash_icon.png',
imageWidth: '200',
},
],
[
'expo-camera',
{
Expand Down Expand Up @@ -161,7 +169,7 @@ export default ({ config }: ConfigContext): ExpoConfig => {
slug: appSlugs[buildType],
owner: appOwners[buildType],
version: suiteNativeVersion,
runtimeVersion: '12',
runtimeVersion: '15',
...(buildType === 'production'
? {}
: {
Expand All @@ -173,11 +181,6 @@ export default ({ config }: ConfigContext): ExpoConfig => {
},
}),
orientation: 'portrait',
splash: {
image: './assets/splash_icon.png',
backgroundColor: '#25292E',
resizeMode: 'contain',
},
userInterfaceStyle: 'automatic',
android: {
package: bundleIdentifier,
Expand Down
Binary file modified suite-native/app/assets/splash_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions suite-native/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@trezor/theme": "workspace:*",
"@trezor/trezor-user-env-link": "workspace:*",
"buffer": "^6.0.3",
"expo": "^52.0.4",
"expo": "^52.0.11",
"expo-build-properties": "^0.13.1",
"expo-camera": "^16.0.4",
"expo-clipboard": "^7.0.0",
Expand All @@ -97,7 +97,7 @@
"expo-localization": "^16.0.0",
"expo-navigation-bar": "^4.0.2",
"expo-secure-store": "^14.0.0",
"expo-splash-screen": "^0.29.7",
"expo-splash-screen": "^0.29.13",
"expo-status-bar": "^2.0.0",
"expo-system-ui": "^4.0.2",
"expo-updates": "0.26.6",
Expand Down
2 changes: 1 addition & 1 deletion suite-native/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"bs58": "^6.0.0",
"expo-crypto": "^14.0.1",
"expo-secure-store": "^14.0.0",
"expo-splash-screen": "^0.29.7",
"expo-splash-screen": "^0.29.13",
"jotai": "1.9.1",
"react": "18.2.0",
"react-native": "0.76.1",
Expand Down
Loading

0 comments on commit 5d26e82

Please sign in to comment.