Browse Source

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 years ago
parent
commit
cff78d7a83

+ 10
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java View File

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
  * Licensed under the Apache License, Version 2.0 (the "License");
5
  * Licensed under the Apache License, Version 2.0 (the "License");
5
  * you may not use this file except in compliance with the License.
6
  * you may not use this file except in compliance with the License.
24
 import com.facebook.react.bridge.ReactContext;
25
 import com.facebook.react.bridge.ReactContext;
25
 import com.facebook.react.bridge.ReactApplicationContext;
26
 import com.facebook.react.bridge.ReactApplicationContext;
26
 import com.facebook.react.common.LifecycleState;
27
 import com.facebook.react.common.LifecycleState;
28
+import com.facebook.react.devsupport.DevInternalSettings;
27
 import com.facebook.react.modules.core.DeviceEventManagerModule;
29
 import com.facebook.react.modules.core.DeviceEventManagerModule;
28
 
30
 
29
 import java.util.ArrayList;
31
 import java.util.ArrayList;
155
                 .setUseDeveloperSupport(BuildConfig.DEBUG)
157
                 .setUseDeveloperSupport(BuildConfig.DEBUG)
156
                 .setInitialLifecycleState(LifecycleState.RESUMED)
158
                 .setInitialLifecycleState(LifecycleState.RESUMED)
157
                 .build();
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
 }

Loading…
Cancel
Save