@apirtc/expo-apirtc-options-plugin 0.0.5 → 0.0.6
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.
|
@@ -170,7 +170,7 @@ const withAndroidPlugin = (config, props) => {
|
|
|
170
170
|
return config;
|
|
171
171
|
}
|
|
172
172
|
// Add WebRTCModuleOptions import
|
|
173
|
-
if (!mainApplication.contents.includes('import
|
|
173
|
+
if (!mainApplication.contents.includes('import com.oney.WebRTCModule.WebRTCModuleOptions')) {
|
|
174
174
|
mainApplication.contents = mainApplication.contents.replace(/(package\s+[\w.]+(?:\r?\n))/, `$1\nimport com.oney.WebRTCModule.WebRTCModuleOptions\n`);
|
|
175
175
|
}
|
|
176
176
|
// Add WebRTCModuleOptions code at start of onCreate()
|