|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
/*
|
|
2
|
|
- * Copyright @ 2017-present Atlassian Pty Ltd
|
|
|
2
|
+ * Copyright @ 2019-present 8x8, Inc.
|
|
|
3
|
+ * Copyright @ 2017-2018 Atlassian Pty Ltd
|
|
3
|
4
|
*
|
|
4
|
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
6
|
* you may not use this file except in compliance with the License.
|
|
|
@@ -24,6 +25,7 @@ import com.facebook.react.bridge.NativeModule;
|
|
24
|
25
|
import com.facebook.react.bridge.ReactContext;
|
|
25
|
26
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
26
|
27
|
import com.facebook.react.common.LifecycleState;
|
|
|
28
|
+import com.facebook.react.devsupport.DevInternalSettings;
|
|
27
|
29
|
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
|
28
|
30
|
|
|
29
|
31
|
import java.util.ArrayList;
|
|
|
@@ -155,5 +157,12 @@ class ReactInstanceManagerHolder {
|
|
155
|
157
|
.setUseDeveloperSupport(BuildConfig.DEBUG)
|
|
156
|
158
|
.setInitialLifecycleState(LifecycleState.RESUMED)
|
|
157
|
159
|
.build();
|
|
|
160
|
+
|
|
|
161
|
+ // Disable delta updates on Android, they have caused trouble.
|
|
|
162
|
+ DevInternalSettings devSettings
|
|
|
163
|
+ = (DevInternalSettings)reactInstanceManager.getDevSupportManager().getDevSettings();
|
|
|
164
|
+ if (devSettings != null) {
|
|
|
165
|
+ devSettings.setBundleDeltasEnabled(false);
|
|
|
166
|
+ }
|
|
158
|
167
|
}
|
|
159
|
168
|
}
|