Pārlūkot izejas kodu

android: disable delta updates

It's enabled by default, but marked as experimental (uh?!). It creates trouble
as sometimes the packager goes bananas. Disable them until further notice, our
bundle is not that large anyway.
master
Saúl Ibarra Corretgé 6 gadus atpakaļ
vecāks
revīzija
cff78d7a83

+ 10
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java Parādīt failu

@@ -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
 }

Notiek ielāde…
Atcelt
Saglabāt