@apirtc/expo-apirtc-options-plugin 0.0.5 → 0.0.7
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.
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
// Use this file to import your target's public headers that you would like to expose to Swift.
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// React Native <= 0.75: source-based pods, headers available via HEADER_SEARCH_PATHS
|
|
6
|
+
// React Native >= 0.76: prebuilt XCFramework, headers only accessible via module import
|
|
7
|
+
#if __has_include("React/RCTEventEmitter.h")
|
|
8
|
+
#import "React/RCTEventEmitter.h"
|
|
9
|
+
#else
|
|
10
|
+
@import React;
|
|
11
|
+
#endif
|
|
@@ -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()
|