agora-appbuilder-core 4.1.29 → 4.1.30-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/Readme.md +2 -0
  2. package/package.json +1 -1
  3. package/template/Gulpfile.js +34 -0
  4. package/template/_package-lock.json +2491 -3084
  5. package/template/android/app/build.gradle +33 -23
  6. package/template/android/app/src/main/AndroidManifest.xml +5 -3
  7. package/template/android/app/src/main/java/com/helloworld/MainApplication.java +14 -2
  8. package/template/android/build.gradle +42 -7
  9. package/template/android/gradle/wrapper/gradle-wrapper.properties +3 -3
  10. package/template/android/gradle.properties +0 -3
  11. package/template/android/settings.gradle +4 -2
  12. package/template/babel.config.js +1 -1
  13. package/template/defaultConfig.js +2 -2
  14. package/template/ios/HelloWorld.xcodeproj/project.pbxproj +8 -6
  15. package/template/ios/Podfile +3 -45
  16. package/template/ios/Podfile.lock +1806 -524
  17. package/template/metro.config.js +6 -1
  18. package/template/package.json +28 -20
  19. package/template/patches/@supersami+rn-foreground-service+1.1.1.patch +12 -0
  20. package/template/scripts/verify-android-native-libs.py +106 -0
  21. package/template/src/AppWrapper.tsx +2 -7
  22. package/template/src/atoms/Carousel.native.tsx +22 -5
  23. package/template/src/atoms/CustomSwitch.tsx +0 -1
  24. package/template/src/atoms/Dropdown.tsx +0 -1
  25. package/template/src/atoms/MeetingLink.tsx +5 -12
  26. package/template/src/atoms/Popup.tsx +26 -2
  27. package/template/src/components/AppSafeAreaView.android.tsx +15 -0
  28. package/template/src/components/AppSafeAreaView.tsx +1 -0
  29. package/template/src/components/Precall.native.tsx +40 -10
  30. package/template/src/components/Share.tsx +27 -6
  31. package/template/src/components/meeting-info-invite/MeetingInfo.tsx +21 -3
  32. package/template/src/components/meeting-info-invite/MeetingInfoGridTile.tsx +11 -2
  33. package/template/src/components/useVideoCall.tsx +35 -1
  34. package/template/src/language/default-labels/joinScreenLabels.ts +2 -2
  35. package/template/src/pages/Create.tsx +26 -3
  36. package/template/src/pages/video-call/ActionSheet.native.tsx +11 -11
  37. package/template/src/pages/video-call/VideoCallScreen.native.tsx +34 -5
  38. package/template/src/pages/video-call/__tests__/VideoCallScreen.native.test.tsx +95 -0
  39. package/template/src/subComponents/Clipboard.native.tsx +1 -1
  40. package/template/src/subComponents/caption/CaptionIcon.tsx +11 -14
  41. package/template/src/subComponents/caption/TranscriptIcon.tsx +10 -14
  42. package/template/src/utils/useIsTablet.ts +10 -0
  43. package/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java +0 -75
  44. package/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.java +0 -20
@@ -1,75 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
- * directory of this source tree.
6
- */
7
- package com.helloworld;
8
-
9
- import android.content.Context;
10
- import com.facebook.flipper.android.AndroidFlipperClient;
11
- import com.facebook.flipper.android.utils.FlipperUtils;
12
- import com.facebook.flipper.core.FlipperClient;
13
- import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14
- import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15
- import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16
- import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17
- import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18
- import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19
- import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20
- import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
21
- import com.facebook.react.ReactInstanceEventListener;
22
- import com.facebook.react.ReactInstanceManager;
23
- import com.facebook.react.bridge.ReactContext;
24
- import com.facebook.react.modules.network.NetworkingModule;
25
- import okhttp3.OkHttpClient;
26
-
27
- /**
28
- * Class responsible of loading Flipper inside your React Native application. This is the debug
29
- * flavor of it. Here you can add your own plugins and customize the Flipper setup.
30
- */
31
- public class ReactNativeFlipper {
32
- public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
33
- if (FlipperUtils.shouldEnableFlipper(context)) {
34
- final FlipperClient client = AndroidFlipperClient.getInstance(context);
35
-
36
- client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
37
- client.addPlugin(new DatabasesFlipperPlugin(context));
38
- client.addPlugin(new SharedPreferencesFlipperPlugin(context));
39
- client.addPlugin(CrashReporterPlugin.getInstance());
40
-
41
- NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
42
- NetworkingModule.setCustomClientBuilder(
43
- new NetworkingModule.CustomClientBuilder() {
44
- @Override
45
- public void apply(OkHttpClient.Builder builder) {
46
- builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
47
- }
48
- });
49
- client.addPlugin(networkFlipperPlugin);
50
- client.start();
51
-
52
- // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
53
- // Hence we run if after all native modules have been initialized
54
- ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
55
- if (reactContext == null) {
56
- reactInstanceManager.addReactInstanceEventListener(
57
- new ReactInstanceEventListener() {
58
- @Override
59
- public void onReactContextInitialized(ReactContext reactContext) {
60
- reactInstanceManager.removeReactInstanceEventListener(this);
61
- reactContext.runOnNativeModulesQueueThread(
62
- new Runnable() {
63
- @Override
64
- public void run() {
65
- client.addPlugin(new FrescoFlipperPlugin());
66
- }
67
- });
68
- }
69
- });
70
- } else {
71
- client.addPlugin(new FrescoFlipperPlugin());
72
- }
73
- }
74
- }
75
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
- * directory of this source tree.
6
- */
7
- package com.helloworld;
8
-
9
- import android.content.Context;
10
- import com.facebook.react.ReactInstanceManager;
11
-
12
- /**
13
- * Class responsible of loading Flipper inside your React Native application. This is the release
14
- * flavor of it so it's empty as we don't want to load Flipper.
15
- */
16
- public class ReactNativeFlipper {
17
- public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
18
- // Do nothing as we don't want to initialize Flipper on Release.
19
- }
20
- }