Parcourir la source

android: make Amplitude and Dropbox modules package private

j8
Saúl Ibarra Corretgé il y a 6 ans
Parent
révision
c30a4a0aa6

android/sdk/src/main/java/org/jitsi/meet/sdk/analytics/AmplitudeModule.java → android/sdk/src/main/java/org/jitsi/meet/sdk/AmplitudeModule.java Voir le fichier

@@ -14,7 +14,7 @@
14 14
  * limitations under the License.
15 15
  */
16 16
 
17
-package org.jitsi.meet.sdk.analytics;
17
+package org.jitsi.meet.sdk;
18 18
 
19 19
 import com.facebook.react.bridge.ReactApplicationContext;
20 20
 import com.facebook.react.bridge.ReactContextBaseJavaModule;
@@ -31,7 +31,7 @@ import org.json.JSONObject;
31 31
  * Implements the react-native module for the Amplitude integration.
32 32
  */
33 33
 @ReactModule(name = AmplitudeModule.NAME)
34
-public class AmplitudeModule
34
+class AmplitudeModule
35 35
         extends ReactContextBaseJavaModule {
36 36
 
37 37
     public static final String NAME = "Amplitude";

android/sdk/src/main/java/org/jitsi/meet/sdk/dropbox/Dropbox.java → android/sdk/src/main/java/org/jitsi/meet/sdk/DropboxModule.java Voir le fichier

@@ -1,4 +1,4 @@
1
-package org.jitsi.meet.sdk.dropbox;
1
+package org.jitsi.meet.sdk;
2 2
 
3 3
 import android.content.Context;
4 4
 import android.content.pm.ApplicationInfo;
@@ -28,8 +28,8 @@ import java.util.Map;
28 28
 /**
29 29
  * Implements the react-native module for the dropbox integration.
30 30
  */
31
-@ReactModule(name = Dropbox.NAME)
32
-public class Dropbox
31
+@ReactModule(name = DropboxModule.NAME)
32
+class DropboxModule
33 33
         extends ReactContextBaseJavaModule
34 34
         implements LifecycleEventListener {
35 35
 
@@ -43,7 +43,7 @@ public class Dropbox
43 43
 
44 44
     private Promise promise;
45 45
 
46
-    public Dropbox(ReactApplicationContext reactContext) {
46
+    public DropboxModule(ReactApplicationContext reactContext) {
47 47
         super(reactContext);
48 48
 
49 49
         String pkg = reactContext.getApplicationContext().getPackageName();

+ 2
- 2
android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java Voir le fichier

@@ -48,16 +48,16 @@ class ReactInstanceManagerHolder {
48 48
             ReactApplicationContext reactContext) {
49 49
         List<NativeModule> nativeModules
50 50
             = new ArrayList<>(Arrays.<NativeModule>asList(
51
+                new AmplitudeModule(reactContext),
51 52
                 new AndroidSettingsModule(reactContext),
52 53
                 new AppInfoModule(reactContext),
53 54
                 new AudioModeModule(reactContext),
55
+                new DropboxModule(reactContext),
54 56
                 new ExternalAPIModule(reactContext),
55 57
                 new LocaleDetector(reactContext),
56 58
                 new PictureInPictureModule(reactContext),
57 59
                 new ProximityModule(reactContext),
58 60
                 new WiFiStatsModule(reactContext),
59
-                new org.jitsi.meet.sdk.analytics.AmplitudeModule(reactContext),
60
-                new org.jitsi.meet.sdk.dropbox.Dropbox(reactContext),
61 61
                 new org.jitsi.meet.sdk.net.NAT64AddrInfoModule(reactContext)));
62 62
 
63 63
         if (AudioModeModule.useConnectionService()) {

Chargement…
Annuler
Enregistrer