@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.
@@ -9,6 +9,7 @@ import Foundation
9
9
  import ReplayKit
10
10
  import Photos
11
11
  import UIKit
12
+ import React
12
13
 
13
14
  @objc(ReactNativeApiRTC_RPK)
14
15
  class ReactNativeApiRTC_RPK: RCTEventEmitter {
@@ -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
- #import "React/RCTEventEmitter.h"
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 android.util.Log')) {
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apirtc/expo-apirtc-options-plugin",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Plugin Expo pour ajouter les features apiRTC dans une application React Native",
5
5
  "main": "index.js",
6
6
  "keywords": [