Skip to content

Commit 9a8b66c

Browse files
feat: implement new splash screen static version
1 parent 998b40e commit 9a8b66c

File tree

19 files changed

+79
-10
lines changed

19 files changed

+79
-10
lines changed

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ dependencies {
310310
implementation "com.facebook.react:react-native:+" // From node_modules
311311

312312
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
313+
implementation "androidx.core:core-splashscreen:1.0.0"
313314

314315
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
315316
exclude group:'com.facebook.fbjni'

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
android:allowBackup="false"
3030
android:label="@string/app_name"
3131
android:icon="@mipmap/ic_launcher"
32-
android:theme="@style/AppTheme"
32+
android:theme="@style/Theme.AppSplash"
3333
android:name=".MainApplication"
3434
android:largeHeap="true"
3535
android:usesCleartextTraffic="true">
@@ -38,6 +38,7 @@
3838
android:name=".MainActivity"
3939
android:exported="true"
4040
android:label="@string/app_name"
41+
android:theme="@style/Theme.AppSplash"
4142
android:screenOrientation="portrait"
4243
android:windowSoftInputMode="adjustResize"
4344
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"

android/app/src/main/java/im/status/ethereum/MainActivity.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import com.facebook.react.ReactFragmentActivity;
3232
import com.reactnativenavigation.NavigationActivity;
3333
import com.facebook.react.modules.core.PermissionListener;
34-
import org.devio.rn.splashscreen.SplashScreen;
34+
import androidx.core.splashscreen.SplashScreen;
3535

3636
import java.util.Properties;
3737
import im.status.ethereum.module.StatusThreadPoolExecutor;
@@ -121,21 +121,18 @@ public void onNewIntent(final Intent intent) {
121121

122122
@Override
123123
protected void onCreate(Bundle savedInstanceState) {
124+
SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
124125

125126
switch (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) {
126127
case Configuration.UI_MODE_NIGHT_YES:
127128
setTheme(R.style.DarkTheme);
128-
SplashScreen.show(this, R.style.DarkTheme, R.id.lottie);
129129
break;
130130
case Configuration.UI_MODE_NIGHT_NO:
131131
setTheme(R.style.LightTheme);
132-
SplashScreen.show(this, R.style.LightTheme, R.id.lottie);
133132
break;
134133
default:
135134
setTheme(R.style.LightTheme);
136-
SplashScreen.show(this, R.style.LightTheme, R.id.lottie);
137135
}
138-
SplashScreen.setAnimationFinished(true);
139136
// Make sure we get an Alert for every uncaught exceptions
140137
registerUncaughtExceptionHandler(MainActivity.this);
141138

Loading
Loading
Loading
Loading
Loading

android/app/src/main/res/values/colors.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
<resources>
33
<color name="alert_background">#ffffff</color>
44
<color name="alert_text">#000000</color>
5+
<color name="splash_background">#09101C</color>
6+
<color name="splash_status_bar_color">#ffffff</color>
57
</resources>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<resources xmlns:tools="http://schemas.android.com/tools">
2+
<style name="Theme.AppSplash" parent="Theme.SplashScreen">
3+
<item name="windowSplashScreenBackground">@color/splash_background</item>
4+
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_logo</item>
5+
<item name="windowSplashScreenAnimationDuration">1000</item>
6+
7+
<!-- Status bar and Nav bar configs -->
8+
<item name="android:statusBarColor" tools:targetApi="l">@color/splash_status_bar_color</item>
9+
<item name="android:windowLightStatusBar">false</item>
10+
11+
<item name="postSplashScreenTheme">@style/DarkTheme</item>
12+
</style>
13+
</resources>
Loading
Loading
Loading

ios/StatusIm/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
<array>
120120
<string>armv7</string>
121121
</array>
122+
<key>UIStatusBarStyle</key>
123+
<string>UIStatusBarStyleLightContent</string>
122124
<key>UISupportedInterfaceOrientations</key>
123125
<array>
124126
<string>UIInterfaceOrientationPortrait</string>

ios/StatusImPR/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
<string>armv7</string>
124124
<string>gamekit</string>
125125
</array>
126+
<key>UIStatusBarStyle</key>
127+
<string>UIStatusBarStyleLightContent</string>
126128
<key>UISupportedInterfaceOrientations</key>
127129
<array>
128130
<string>UIInterfaceOrientationPortrait</string>

ios/launch-image-universal.storyboard

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Lsa-QA-3zn">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Lsa-QA-3zn">
33
<device id="retina4_7" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
77
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
88
<capability name="System colors in document resources" minToolsVersion="11.0"/>
99
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@@ -20,7 +20,7 @@
2020
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="launch_image" translatesAutoresizingMaskIntoConstraints="NO" id="cqW-9w-FC0">
2121
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
2222
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
23-
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
23+
<color key="backgroundColor" red="0.035294117647058823" green="0.062745098039215685" blue="0.10980392156862745" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2424
</imageView>
2525
</subviews>
2626
<viewLayoutGuide key="safeArea" id="2aN-f8-qiu"/>
@@ -33,7 +33,7 @@
3333
</scene>
3434
</scenes>
3535
<resources>
36-
<image name="launch_image" width="90" height="101"/>
36+
<image name="launch_image" width="84" height="88"/>
3737
<systemColor name="systemBackgroundColor">
3838
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
3939
</systemColor>

nix/deps/gradle/deps.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,21 @@
479479
}
480480
},
481481

482+
{
483+
"path": "androidx/core/core-splashscreen/1.0.0",
484+
"repo": "https://dl.google.com/dl/android/maven2",
485+
"files": {
486+
"core-splashscreen-1.0.0.pom": {
487+
"sha1": "763acf4fa60a08a3c059a4c50d3d54ac34a0cfa2",
488+
"sha256": "0arxyx9zlzwlr0h88xmgzlgbjfp3s79pd7mbk3ipfqwkfgbzzmq3"
489+
},
490+
"core-splashscreen-1.0.0.aar": {
491+
"sha1": "6b1eccca966811faafb13f6c2f88351504dc9eae",
492+
"sha256": "0wiarwyh5rk7ca54b0i47rs7ix49r2krrvhiqamw8gyaq4yv51iy"
493+
}
494+
}
495+
},
496+
482497
{
483498
"path": "androidx/core/core/1.0.0",
484499
"repo": "https://dl.google.com/dl/android/maven2",
@@ -10572,6 +10587,21 @@
1057210587
}
1057310588
},
1057410589

10590+
{
10591+
"path": "org/jetbrains/kotlin/kotlin-stdlib-common/1.6.21",
10592+
"repo": "https://repo.maven.apache.org/maven2",
10593+
"files": {
10594+
"kotlin-stdlib-common-1.6.21.pom": {
10595+
"sha1": "747a8ea8a8a4328946cf0252c5ceb2aa0ceb054f",
10596+
"sha256": "18kbabqzyiv5rzcvxzn28wsk6cxnh7aliiayian2sg7xfgp5dhav"
10597+
},
10598+
"kotlin-stdlib-common-1.6.21.jar": {
10599+
"sha1": "5e5b55c26dbc80372a920aef60eb774b714559b8",
10600+
"sha256": "0qr34h6pkf6bw6vagc06y78ln6gikj3qq3hrgfai8flzrmcyqfqq"
10601+
}
10602+
}
10603+
},
10604+
1057510605
{
1057610606
"path": "org/jetbrains/kotlin/kotlin-stdlib-common/1.7.10",
1057710607
"repo": "https://repo.maven.apache.org/maven2",
@@ -11022,6 +11052,21 @@
1102211052
}
1102311053
},
1102411054

11055+
{
11056+
"path": "org/jetbrains/kotlin/kotlin-stdlib/1.6.21",
11057+
"repo": "https://repo.maven.apache.org/maven2",
11058+
"files": {
11059+
"kotlin-stdlib-1.6.21.pom": {
11060+
"sha1": "f44be76009ce4253eaa59b914f4dccc384442016",
11061+
"sha256": "0d0zmvx7znha69ir50z72n7nzgw4yr6rfzb6mb6kdn0vl1dp4hnf"
11062+
},
11063+
"kotlin-stdlib-1.6.21.jar": {
11064+
"sha1": "11ef67f1900634fd951bad28c53ec957fabbe5b8",
11065+
"sha256": "14m428q4m7y8srb7z5m0qfq8ic3f62layqwgn9rpacxvf9k5573k"
11066+
}
11067+
}
11068+
},
11069+
1102511070
{
1102611071
"path": "org/jetbrains/kotlin/kotlin-stdlib/1.7.10",
1102711072
"repo": "https://repo.maven.apache.org/maven2",

nix/deps/gradle/deps.list

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ androidx.constraintlayout:constraintlayout:2.0.4
2525
androidx.coordinatorlayout:coordinatorlayout:1.0.0
2626
androidx.coordinatorlayout:coordinatorlayout:1.1.0
2727
androidx.core:core-ktx:1.6.0
28+
androidx.core:core-splashscreen:1.0.0
2829
androidx.core:core:1.0.1
2930
androidx.core:core:1.1.0
3031
androidx.core:core:1.6.0
@@ -517,6 +518,7 @@ org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50
517518
org.jetbrains.kotlin:kotlin-stdlib-common:1.4.31
518519
org.jetbrains.kotlin:kotlin-stdlib-common:1.5.10
519520
org.jetbrains.kotlin:kotlin-stdlib-common:1.5.30
521+
org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21
520522
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.71
521523
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.20
522524
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50
@@ -536,6 +538,7 @@ org.jetbrains.kotlin:kotlin-stdlib:1.3.50
536538
org.jetbrains.kotlin:kotlin-stdlib:1.4.31
537539
org.jetbrains.kotlin:kotlin-stdlib:1.5.10
538540
org.jetbrains.kotlin:kotlin-stdlib:1.5.30
541+
org.jetbrains.kotlin:kotlin-stdlib:1.6.21
539542
org.jetbrains.kotlin:kotlin-util-io:1.3.50
540543
org.jetbrains.kotlin:kotlin-util-io:1.4.31
541544
org.jetbrains.kotlin:kotlin-util-klib:1.4.31

nix/deps/gradle/deps.urls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ https://dl.google.com/dl/android/maven2/androidx/constraintlayout/constraintlayo
3030
https://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.0.0/coordinatorlayout-1.0.0.pom
3131
https://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
3232
https://dl.google.com/dl/android/maven2/androidx/core/core-ktx/1.6.0/core-ktx-1.6.0.pom
33+
https://dl.google.com/dl/android/maven2/androidx/core/core-splashscreen/1.0.0/core-splashscreen-1.0.0.pom
3334
https://dl.google.com/dl/android/maven2/androidx/core/core/1.0.0/core-1.0.0.pom
3435
https://dl.google.com/dl/android/maven2/androidx/core/core/1.0.1/core-1.0.1.pom
3536
https://dl.google.com/dl/android/maven2/androidx/core/core/1.1.0/core-1.1.0.pom
@@ -733,6 +734,7 @@ https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1
733734
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.5.10/kotlin-stdlib-common-1.5.10.pom
734735
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.5.30/kotlin-stdlib-common-1.5.30.pom
735736
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.6.20/kotlin-stdlib-common-1.6.20.pom
737+
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.6.21/kotlin-stdlib-common-1.6.21.pom
736738
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.7.10/kotlin-stdlib-common-1.7.10.pom
737739
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.8.0/kotlin-stdlib-common-1.8.0.pom
738740
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.2.71/kotlin-stdlib-jdk7-1.2.71.pom
@@ -763,6 +765,7 @@ https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4.31/k
763765
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.5.10/kotlin-stdlib-1.5.10.pom
764766
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.5.30/kotlin-stdlib-1.5.30.pom
765767
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.6.20/kotlin-stdlib-1.6.20.pom
768+
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.6.21/kotlin-stdlib-1.6.21.pom
766769
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.7.10/kotlin-stdlib-1.7.10.pom
767770
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.8.0/kotlin-stdlib-1.8.0.pom
768771
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-util-io/1.3.50/kotlin-util-io-1.3.50.pom

0 commit comments

Comments
 (0)