@config-plugins/react-native-webrtc
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -6,13 +6,16 @@ "use strict"; | ||
const withBitcodeDisabled = (config) => { | ||
return config_plugins_1.withXcodeProject(config, (config) => { | ||
// @ts-ignore | ||
if (config.ios.bitcode === true || config.ios.bitcode === "Debug") { | ||
config_plugins_1.WarningAggregator.addWarningIOS("ios.bitcode", 'react-native-webrtc plugin is overwriting project bitcode settings. WebRTC requires bitcode to be disabled for "Release" builds, targeting physical iOS devices.'); | ||
} | ||
// WebRTC requires Bitcode be disabled for | ||
// production iOS builds that target devices, e.g. not simulators. | ||
config.modResults.addBuildProperty("ENABLE_BITCODE", "NO", "Release"); | ||
return config; | ||
}); | ||
var _a, _b; | ||
if (!config.ios) { | ||
config.ios = {}; | ||
} | ||
if (((_a = config.ios) === null || _a === void 0 ? void 0 : _a.bitcode) === false || | ||
(((_b = config.ios) === null || _b === void 0 ? void 0 : _b.bitcode) && config.ios.bitcode !== "Debug")) { | ||
config_plugins_1.WarningAggregator.addWarningIOS("ios.bitcode", 'react-native-webrtc plugin is overwriting project bitcode settings. WebRTC requires bitcode to be disabled for "Release" builds, targeting physical iOS devices.'); | ||
} | ||
// WebRTC requires Bitcode be disabled for | ||
// production iOS builds that target devices, e.g. not simulators. | ||
// SDK +44 property | ||
config.ios.bitcode = "Debug"; | ||
return config; | ||
}; | ||
exports.withBitcodeDisabled = withBitcodeDisabled; |
{ | ||
"name": "@config-plugins/react-native-webrtc", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Config plugin to setup react-native-webrtc on prebuild", | ||
@@ -5,0 +5,0 @@ "main": "build/withWebRTC.js", |
@@ -11,2 +11,3 @@ # config-plugins/react-native-webrtc | ||
| ------ | --------------------- | ------------------------------------- | | ||
| 44.0.0 | 1.92.2 | 2.0.0 | | ||
| 43.0.0 | 1.92.2 | 1.0.0 | | ||
@@ -18,3 +19,3 @@ | ||
> Tested against Expo SDK 43 | ||
> Tested against Expo SDK 44 | ||
@@ -21,0 +22,0 @@ > This package cannot be used in the "Expo Go" app because [it requires custom native code](https://docs.expo.io/workflow/customizing/). |
9038
113
70