ソースを参照

android: make Amplitude and Dropbox modules package private

master
Saúl Ibarra Corretgé 6年前
コミット
c30a4a0aa6

android/sdk/src/main/java/org/jitsi/meet/sdk/analytics/AmplitudeModule.java → android/sdk/src/main/java/org/jitsi/meet/sdk/AmplitudeModule.java ファイルの表示

14
  * limitations under the License.
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
 import com.facebook.react.bridge.ReactApplicationContext;
19
 import com.facebook.react.bridge.ReactApplicationContext;
20
 import com.facebook.react.bridge.ReactContextBaseJavaModule;
20
 import com.facebook.react.bridge.ReactContextBaseJavaModule;
31
  * Implements the react-native module for the Amplitude integration.
31
  * Implements the react-native module for the Amplitude integration.
32
  */
32
  */
33
 @ReactModule(name = AmplitudeModule.NAME)
33
 @ReactModule(name = AmplitudeModule.NAME)
34
-public class AmplitudeModule
34
+class AmplitudeModule
35
         extends ReactContextBaseJavaModule {
35
         extends ReactContextBaseJavaModule {
36
 
36
 
37
     public static final String NAME = "Amplitude";
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 ファイルの表示

1
-package org.jitsi.meet.sdk.dropbox;
1
+package org.jitsi.meet.sdk;
2
 
2
 
3
 import android.content.Context;
3
 import android.content.Context;
4
 import android.content.pm.ApplicationInfo;
4
 import android.content.pm.ApplicationInfo;
28
 /**
28
 /**
29
  * Implements the react-native module for the dropbox integration.
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
         extends ReactContextBaseJavaModule
33
         extends ReactContextBaseJavaModule
34
         implements LifecycleEventListener {
34
         implements LifecycleEventListener {
35
 
35
 
43
 
43
 
44
     private Promise promise;
44
     private Promise promise;
45
 
45
 
46
-    public Dropbox(ReactApplicationContext reactContext) {
46
+    public DropboxModule(ReactApplicationContext reactContext) {
47
         super(reactContext);
47
         super(reactContext);
48
 
48
 
49
         String pkg = reactContext.getApplicationContext().getPackageName();
49
         String pkg = reactContext.getApplicationContext().getPackageName();

+ 2
- 2
android/sdk/src/main/java/org/jitsi/meet/sdk/ReactInstanceManagerHolder.java ファイルの表示

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

読み込み中…
キャンセル
保存