Skip to content

Commit 003d67c

Browse files
authored
Merge branch 'develop' into mute-for-specific-amount-of-time
2 parents 353379c + 2f84cfd commit 003d67c

File tree

251 files changed

+7185
-3298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+7185
-3298
lines changed

.zprintrc

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"list-comp" :binding
3131
"defview" :arg1-body
3232
"letsubs" :binding
33+
"with-let" "let"
3334
"testing" :arg1-body
3435
"deftest-sub" :arg1-body
3536
"wait-for" :arg1-body

android/app/build.gradle

+1
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

+2-1
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

+11-16
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import android.content.res.Configuration;
2222
import android.provider.Settings;
2323
import android.os.Bundle;
24+
import android.os.Handler;
2425
import com.facebook.react.ReactActivityDelegate;
2526
import com.facebook.react.ReactRootView;
2627
import com.facebook.react.modules.core.DeviceEventManagerModule;
@@ -31,7 +32,7 @@
3132
import com.facebook.react.ReactFragmentActivity;
3233
import com.reactnativenavigation.NavigationActivity;
3334
import com.facebook.react.modules.core.PermissionListener;
34-
import org.devio.rn.splashscreen.SplashScreen;
35+
import androidx.core.splashscreen.SplashScreen;
3536

3637
import java.util.Properties;
3738
import im.status.ethereum.module.StatusThreadPoolExecutor;
@@ -42,6 +43,8 @@ public class MainActivity extends NavigationActivity
4243

4344

4445
@Nullable private PermissionListener mPermissionListener;
46+
private boolean keepSplash = true;
47+
private final int SPLASH_DELAY = 3200;
4548

4649
private static void registerUncaughtExceptionHandler(final Context context) {
4750
final Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
@@ -121,21 +124,8 @@ public void onNewIntent(final Intent intent) {
121124

122125
@Override
123126
protected void onCreate(Bundle savedInstanceState) {
124-
125-
switch (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) {
126-
case Configuration.UI_MODE_NIGHT_YES:
127-
setTheme(R.style.DarkTheme);
128-
SplashScreen.show(this, R.style.DarkTheme, R.id.lottie);
129-
break;
130-
case Configuration.UI_MODE_NIGHT_NO:
131-
setTheme(R.style.LightTheme);
132-
SplashScreen.show(this, R.style.LightTheme, R.id.lottie);
133-
break;
134-
default:
135-
setTheme(R.style.LightTheme);
136-
SplashScreen.show(this, R.style.LightTheme, R.id.lottie);
137-
}
138-
SplashScreen.setAnimationFinished(true);
127+
SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
128+
setTheme(R.style.DarkTheme);
139129
// Make sure we get an Alert for every uncaught exceptions
140130
registerUncaughtExceptionHandler(MainActivity.this);
141131

@@ -197,6 +187,11 @@ public void run() {
197187
}
198188
};
199189

190+
splashScreen.setKeepOnScreenCondition(() -> keepSplash);
191+
192+
Handler handler = new Handler();
193+
handler.postDelayed(() -> keepSplash = false, SPLASH_DELAY);
194+
200195
StatusThreadPoolExecutor.getInstance().execute(r);
201196
}
202197

Loading
Loading
Loading
Loading
Loading

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

+2
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>
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_background</item>
9+
<item name="android:windowLightStatusBar">false</item>
10+
11+
<item name="postSplashScreenTheme">@style/DarkTheme</item>
12+
</style>
13+
</resources>

fastlane/Gemfile.lock

+32-32
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.5)
4+
CFPropertyList (3.0.6)
55
rexml
66
addressable (2.8.1)
77
public_suffix (>= 2.0.2, < 6.0)
88
artifactory (3.0.15)
99
atomos (0.1.3)
1010
aws-eventstream (1.2.0)
11-
aws-partitions (1.644.0)
12-
aws-sdk-core (3.159.0)
11+
aws-partitions (1.728.0)
12+
aws-sdk-core (3.170.0)
1313
aws-eventstream (~> 1, >= 1.0.2)
14-
aws-partitions (~> 1, >= 1.525.0)
15-
aws-sigv4 (~> 1.1)
14+
aws-partitions (~> 1, >= 1.651.0)
15+
aws-sigv4 (~> 1.5)
1616
jmespath (~> 1, >= 1.6.1)
17-
aws-sdk-kms (1.58.0)
18-
aws-sdk-core (~> 3, >= 3.127.0)
17+
aws-sdk-kms (1.63.0)
18+
aws-sdk-core (~> 3, >= 3.165.0)
1919
aws-sigv4 (~> 1.1)
20-
aws-sdk-s3 (1.114.0)
21-
aws-sdk-core (~> 3, >= 3.127.0)
20+
aws-sdk-s3 (1.119.1)
21+
aws-sdk-core (~> 3, >= 3.165.0)
2222
aws-sdk-kms (~> 1)
2323
aws-sigv4 (~> 1.4)
2424
aws-sigv4 (1.5.2)
@@ -36,8 +36,8 @@ GEM
3636
unf (>= 0.0.5, < 1.0.0)
3737
dotenv (2.8.1)
3838
emoji_regex (3.2.3)
39-
excon (0.93.0)
40-
faraday (1.10.2)
39+
excon (0.99.0)
40+
faraday (1.10.3)
4141
faraday-em_http (~> 1.0)
4242
faraday-em_synchrony (~> 1.0)
4343
faraday-excon (~> 1.1)
@@ -66,7 +66,7 @@ GEM
6666
faraday_middleware (1.2.0)
6767
faraday (~> 1.0)
6868
fastimage (2.2.6)
69-
fastlane (2.210.1)
69+
fastlane (2.212.1)
7070
CFPropertyList (>= 2.3, < 4.0.0)
7171
addressable (>= 2.8, < 3.0.0)
7272
artifactory (~> 3.0)
@@ -109,9 +109,9 @@ GEM
109109
fastlane-plugin-diawi (2.1.0)
110110
rest-client (>= 2.0.0)
111111
gh_inspector (1.1.3)
112-
google-apis-androidpublisher_v3 (0.29.0)
113-
google-apis-core (>= 0.9.0, < 2.a)
114-
google-apis-core (0.9.0)
112+
google-apis-androidpublisher_v3 (0.36.0)
113+
google-apis-core (>= 0.11.0, < 2.a)
114+
google-apis-core (0.11.0)
115115
addressable (~> 2.5, >= 2.5.1)
116116
googleauth (>= 0.16.2, < 2.a)
117117
httpclient (>= 2.8.1, < 3.a)
@@ -120,27 +120,27 @@ GEM
120120
retriable (>= 2.0, < 4.a)
121121
rexml
122122
webrick
123-
google-apis-iamcredentials_v1 (0.15.0)
124-
google-apis-core (>= 0.9.0, < 2.a)
125-
google-apis-playcustomapp_v1 (0.11.0)
126-
google-apis-core (>= 0.9.0, < 2.a)
123+
google-apis-iamcredentials_v1 (0.17.0)
124+
google-apis-core (>= 0.11.0, < 2.a)
125+
google-apis-playcustomapp_v1 (0.13.0)
126+
google-apis-core (>= 0.11.0, < 2.a)
127127
google-apis-storage_v1 (0.19.0)
128128
google-apis-core (>= 0.9.0, < 2.a)
129129
google-cloud-core (1.6.0)
130130
google-cloud-env (~> 1.0)
131131
google-cloud-errors (~> 1.0)
132132
google-cloud-env (1.6.0)
133133
faraday (>= 0.17.3, < 3.0)
134-
google-cloud-errors (1.3.0)
135-
google-cloud-storage (1.43.0)
134+
google-cloud-errors (1.3.1)
135+
google-cloud-storage (1.44.0)
136136
addressable (~> 2.8)
137137
digest-crc (~> 0.4)
138138
google-apis-iamcredentials_v1 (~> 0.1)
139139
google-apis-storage_v1 (~> 0.19.0)
140140
google-cloud-core (~> 1.6)
141141
googleauth (>= 0.16.2, < 2.a)
142142
mini_mime (~> 1.0)
143-
googleauth (1.2.0)
143+
googleauth (1.3.0)
144144
faraday (>= 0.17.3, < 3.a)
145145
jwt (>= 1.4, < 3.0)
146146
memoist (~> 0.16)
@@ -152,14 +152,14 @@ GEM
152152
http-cookie (1.0.5)
153153
domain_name (~> 0.5)
154154
httpclient (2.8.3)
155-
jmespath (1.6.1)
156-
json (2.6.2)
157-
jwt (2.5.0)
155+
jmespath (1.6.2)
156+
json (2.6.3)
157+
jwt (2.7.0)
158158
memoist (0.16.2)
159159
mime-types (3.4.1)
160160
mime-types-data (~> 3.2015)
161-
mime-types-data (3.2022.0105)
162-
mini_magick (4.11.0)
161+
mime-types-data (3.2023.0218.1)
162+
mini_magick (4.12.0)
163163
mini_mime (1.1.2)
164164
multi_json (1.15.0)
165165
multipart-post (2.0.0)
@@ -168,8 +168,8 @@ GEM
168168
netrc (0.11.0)
169169
optparse (0.1.1)
170170
os (1.1.4)
171-
plist (3.6.0)
172-
public_suffix (5.0.0)
171+
plist (3.7.0)
172+
public_suffix (5.0.1)
173173
rake (13.0.6)
174174
representable (3.2.0)
175175
declarative (< 0.1.0)
@@ -191,7 +191,7 @@ GEM
191191
faraday (>= 0.17.5, < 3.a)
192192
jwt (>= 1.5, < 3.0)
193193
multi_json (~> 1.10)
194-
simctl (1.6.8)
194+
simctl (1.6.10)
195195
CFPropertyList
196196
naturally
197197
terminal-notifier (2.0.0)
@@ -207,7 +207,7 @@ GEM
207207
unf_ext
208208
unf_ext (0.0.8.2)
209209
unicode-display_width (1.8.0)
210-
webrick (1.7.0)
210+
webrick (1.8.1)
211211
word_wrap (1.0.0)
212212
xcodeproj (1.22.0)
213213
CFPropertyList (>= 2.3.3, < 4.0)
@@ -230,4 +230,4 @@ DEPENDENCIES
230230
fastlane-plugin-diawi
231231

232232
BUNDLED WITH
233-
2.3.20
233+
2.4.6

0 commit comments

Comments
 (0)