You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Under default settings, the Android build will fail if the total number of symbols exceeds a certain threshold. If you should encounter this issue when adding this library (e.g., if your build fails with com.android.dex.DexIndexOverflowException), you can turn on jumbo mode by editing your app/build.gradle:
56
-
57
-
android {
58
-
...
59
-
dexOptions {
60
-
jumboMode true
61
-
}
62
-
}
63
-
64
-
- If you are using proguard (very likely), you will also need to ensure that the symbols needed by this library are not stripped. To do that, add these two lines to proguard-rules.pro:
65
-
66
-
-keep class org.webrtc.** { *; }
67
-
-keep class com.twilio.** { *; }
68
-
-keep class tvi.webrtc.** { *; }
69
-
*/
70
-
71
1
const{
72
2
withInfoPlist,
73
3
withAndroidManifest,
74
-
withAppBuildGradle,
75
-
withSettingsGradle,
76
4
withDangerousMod,
77
5
}=require('@expo/config-plugins');
78
6
const{
@@ -84,75 +12,11 @@ const path = require("path");
84
12
constCAMERA_USAGE='Allow $(PRODUCT_NAME) to use the camera';
85
13
constMIC_USAGE='Allow $(PRODUCT_NAME) to use the microphone';
86
14
87
-
// Helper function to replace text in AppDelegate etc. by target anchors in the text, making it more robust
88
-
// when new native modules are installed as the text is always inserted as specified before / after the anchors
newSrc: ` pod 'react-native-twilio-video-webrtc', path: '../node_modules/react-native-twilio-video-webrtc'`,
138
-
anchor: /use_react_native!\(/i,
139
-
offset: 0,
140
-
comment: "#",
141
-
});
142
-
143
-
if (!addTwilioVideo.didMerge) {
144
-
console.log(
145
-
"ERROR: Cannot add react-native-twilio-video-webrtc to the project's ios/Podfile because it's malformed. Please report this with a copy of your project Podfile."
newSrc: "\ninclude ':react-native-twilio-video-webrtc'\nproject(':react-native-twilio-video-webrtc').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-twilio-video-webrtc/android')\n",
177
-
anchor: "include ':app'",
178
-
offset: 0,
179
-
comment: "//",
180
-
});
181
-
182
-
if (!addTwilioVideo.didMerge) {
183
-
console.log(
184
-
`ERROR: Cannot add react-native-twilio-video-webrtc to the project's ${config.modResults.path} because it's malformed. Please report this with a copy of your project ${config.modResults.path}.`
0 commit comments