mirror of
https://github.com/expo/config-plugins.git
synced 2026-11-13 20:28:07 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2d2b27494 | ||
|
|
ff8b167764 | ||
|
|
eee366bebc | ||
|
|
72fa3e14ef | ||
|
|
6324eb041b | ||
|
|
480ec19161 | ||
|
|
39a9e63fe9 | ||
|
|
7ffc38a808 | ||
|
|
97dcf1aca6 | ||
|
|
4dcc613a70 | ||
|
|
b07ab9e848 | ||
|
|
7411365343 | ||
|
|
e6e8745f05 |
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
/* @EvanBacon
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<!--
|
||||||
|
🚨 We use semantic release (a bot publishes everything automatically)
|
||||||
|
🚨 so please use conventional commit style for the PR title:
|
||||||
|
🚨 https://www.conventionalcommits.org/en/v1.0.0/
|
||||||
|
🚨 Example: feat(detox): add new step
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Why
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# How
|
||||||
|
|
||||||
|
<!--
|
||||||
|
How did you build this feature or fix this bug and why?
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Test Plan
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction.
|
||||||
|
-->
|
||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/detox [1.2.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **detox:** use improved xml generation ([#47](https://github.com/expo/config-plugins/issues/47)) ([6324eb0](https://github.com/expo/config-plugins/commit/6324eb041b3b4eb2318c0a1ea0297e3b7bf28f7c))
|
||||||
|
|
||||||
### @config-plugins/detox [1.2.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
### @config-plugins/detox [1.2.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+9
-6
@@ -42,12 +42,15 @@ function getTemplateConfigContent(subdomains) {
|
|||||||
}
|
}
|
||||||
function getTemplateFile(subdomains) {
|
function getTemplateFile(subdomains) {
|
||||||
const content = getTemplateConfigContent(subdomains);
|
const content = getTemplateConfigContent(subdomains);
|
||||||
return `
|
/**
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
* May not have new lines or spaces in the beginning.
|
||||||
<network-security-config>
|
* Otherwise build fails with:
|
||||||
${content}
|
* "AAPT: error: XML or text declaration not at start of entity"
|
||||||
</network-security-config>
|
*/
|
||||||
`;
|
return `<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<network-security-config>
|
||||||
|
${content}
|
||||||
|
</network-security-config>`;
|
||||||
}
|
}
|
||||||
exports.getTemplateFile = getTemplateFile;
|
exports.getTemplateFile = getTemplateFile;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/detox",
|
"name": "@config-plugins/detox",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"description": "Config plugin to auto configure detox on prebuild",
|
"description": "Config plugin to auto configure detox on prebuild",
|
||||||
"main": "build/withDetox.js",
|
"main": "build/withDetox.js",
|
||||||
"types": "build/withDetox.d.ts",
|
"types": "build/withDetox.d.ts",
|
||||||
|
|||||||
@@ -1,25 +1,21 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
exports[`getTemplateFile returns domain-config when subdomains is an array 1`] = `
|
exports[`getTemplateFile returns domain-config when subdomains is an array 1`] = `
|
||||||
"
|
"<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
|
||||||
<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
|
<network-security-config>
|
||||||
<network-security-config>
|
|
||||||
|
|
||||||
<domain-config cleartextTrafficPermitted=\\"true\\">
|
<domain-config cleartextTrafficPermitted=\\"true\\">
|
||||||
<domain includeSubdomains=\\"true\\">localhost</domain>
|
<domain includeSubdomains=\\"true\\">localhost</domain>
|
||||||
</domain-config>
|
</domain-config>
|
||||||
|
|
||||||
</network-security-config>
|
</network-security-config>"
|
||||||
"
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`getTemplateFile returns only base-config when subdomains is '*' 1`] = `
|
exports[`getTemplateFile returns only base-config when subdomains is '*' 1`] = `
|
||||||
"
|
"<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
|
||||||
<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
|
<network-security-config>
|
||||||
<network-security-config>
|
<base-config cleartextTrafficPermitted=\\"true\\" />
|
||||||
<base-config cleartextTrafficPermitted=\\"true\\" />
|
</network-security-config>"
|
||||||
</network-security-config>
|
|
||||||
"
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`withNetworkSecurityConfigManifest doesn't modify config if subdomains is an empty array 1`] = `
|
exports[`withNetworkSecurityConfigManifest doesn't modify config if subdomains is an empty array 1`] = `
|
||||||
|
|||||||
@@ -29,12 +29,15 @@ function getTemplateConfigContent(subdomains: SubdomainsType) {
|
|||||||
|
|
||||||
export function getTemplateFile(subdomains: SubdomainsType): string {
|
export function getTemplateFile(subdomains: SubdomainsType): string {
|
||||||
const content = getTemplateConfigContent(subdomains);
|
const content = getTemplateConfigContent(subdomains);
|
||||||
return `
|
/**
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
* May not have new lines or spaces in the beginning.
|
||||||
<network-security-config>
|
* Otherwise build fails with:
|
||||||
${content}
|
* "AAPT: error: XML or text declaration not at start of entity"
|
||||||
</network-security-config>
|
*/
|
||||||
`;
|
return `<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<network-security-config>
|
||||||
|
${content}
|
||||||
|
</network-security-config>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-ble-plx [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-ble-plx 1.0.0 (2022-03-15)
|
## @config-plugins/react-native-ble-plx 1.0.0 (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-ble-plx",
|
"name": "@config-plugins/react-native-ble-plx",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Config plugin to auto configure react-native-ble-plx on prebuild",
|
"description": "Config plugin to auto configure react-native-ble-plx on prebuild",
|
||||||
"main": "build/withBLE.js",
|
"main": "build/withBLE.js",
|
||||||
"types": "build/withBLE.d.ts",
|
"types": "build/withBLE.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-blob-util [1.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
### @config-plugins/react-native-blob-util [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-15)
|
### @config-plugins/react-native-blob-util [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-blob-util",
|
"name": "@config-plugins/react-native-blob-util",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Config plugin to auto configure react-native-blob-util on prebuild",
|
"description": "Config plugin to auto configure react-native-blob-util on prebuild",
|
||||||
"main": "build/withReactNativeBlobUtil.js",
|
"main": "build/withReactNativeBlobUtil.js",
|
||||||
"types": "build/withReactNativeBlobUtil.d.ts",
|
"types": "build/withReactNativeBlobUtil.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-branch [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-branch 1.0.0 (2022-03-15)
|
## @config-plugins/react-native-branch 1.0.0 (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-branch",
|
"name": "@config-plugins/react-native-branch",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Config plugin to auto configure react-native-branch on prebuild",
|
"description": "Config plugin to auto configure react-native-branch on prebuild",
|
||||||
"author": "650 Industries, Inc.",
|
"author": "650 Industries, Inc.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-dynamic-app-icon [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-dynamic-app-icon 1.0.0 (2022-03-15)
|
## @config-plugins/react-native-dynamic-app-icon 1.0.0 (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-dynamic-app-icon",
|
"name": "@config-plugins/react-native-dynamic-app-icon",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Config plugin to auto configure react-native-dynamic-app-icon",
|
"description": "Config plugin to auto configure react-native-dynamic-app-icon",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-google-cast [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-google-cast 1.0.0 (2022-03-15)
|
## @config-plugins/react-native-google-cast 1.0.0 (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-google-cast",
|
"name": "@config-plugins/react-native-google-cast",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Config plugin to auto configure Google Cast on prebuild",
|
"description": "Config plugin to auto configure Google Cast on prebuild",
|
||||||
"main": "build/withGoogleCast.js",
|
"main": "build/withGoogleCast.js",
|
||||||
"types": "build/withGoogleCast.d.ts",
|
"types": "build/withGoogleCast.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-pdf [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-pdf 1.0.0 (2022-03-15)
|
## @config-plugins/react-native-pdf 1.0.0 (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-pdf",
|
"name": "@config-plugins/react-native-pdf",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Config plugin to auto configure react-native-pdf on prebuild",
|
"description": "Config plugin to auto configure react-native-pdf on prebuild",
|
||||||
"main": "build/withPdf.js",
|
"main": "build/withPdf.js",
|
||||||
"types": "build/withPdf.d.ts",
|
"types": "build/withPdf.d.ts",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-quick-actions [1.0.1](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-quick-actions 1.0.0 (2022-03-15)
|
## @config-plugins/react-native-quick-actions 1.0.0 (2022-03-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-quick-actions",
|
"name": "@config-plugins/react-native-quick-actions",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Config plugin for react-native-quick-actions package",
|
"description": "Config plugin for react-native-quick-actions package",
|
||||||
"main": "build/withReactNativeQuickActions.js",
|
"main": "build/withReactNativeQuickActions.js",
|
||||||
"types": "build/withReactNativeQuickActions.d.ts",
|
"types": "build/withReactNativeQuickActions.d.ts",
|
||||||
@@ -37,4 +37,4 @@
|
|||||||
"expo-module-scripts": "^2.0.0"
|
"expo-module-scripts": "^2.0.0"
|
||||||
},
|
},
|
||||||
"upstreamPackage": "react-native-quick-actions"
|
"upstreamPackage": "react-native-quick-actions"
|
||||||
}
|
}
|
||||||
@@ -1 +1,15 @@
|
|||||||
|
## @config-plugins/react-native-webrtc [2.1.0](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **react-native-webrtc:** add config mod for Android minSdkVersion 24 ([ff8b167](https://github.com/expo/config-plugins/commit/ff8b1677640a560ca98abd8a83f349b3a1ee9017))
|
||||||
|
|
||||||
|
### @config-plugins/react-native-webrtc [2.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
|
||||||
|
|
||||||
## @config-plugins/react-native-webrtc 2.0.1
|
## @config-plugins/react-native-webrtc 2.0.1
|
||||||
@@ -59,7 +59,10 @@ export default {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
This plugin will also disable desugaring in the Android `gradle.properties`: `android.enableDexingArtifactTransform.desugaring=false`, and disable iOS Bitcode for "Release" builds (required).
|
## Important Notes
|
||||||
|
|
||||||
|
- For iOS, this plugin disables Bitcodes for all builds (required).
|
||||||
|
- For Android, this plugin disables desugaring in `gradle.properties`: `android.enableDexingArtifactTransform.desugaring=false` and the [minimum deployment target is changed to `24`](https://github.com/react-native-webrtc/react-native-webrtc/issues/720#issuecomment-552374206) (from `21`) which may break other packages in your app!
|
||||||
|
|
||||||
## Manual Setup
|
## Manual Setup
|
||||||
|
|
||||||
|
|||||||
+4
@@ -21,6 +21,10 @@ const withWebRTC = (config, props = {}) => {
|
|||||||
"android.permission.SYSTEM_ALERT_WINDOW",
|
"android.permission.SYSTEM_ALERT_WINDOW",
|
||||||
"android.permission.WAKE_LOCK",
|
"android.permission.WAKE_LOCK",
|
||||||
]);
|
]);
|
||||||
|
config = config_plugins_1.AndroidConfig.Version.withBuildScriptExtMinimumVersion(config, {
|
||||||
|
name: "minSdkVersion",
|
||||||
|
minVersion: 24,
|
||||||
|
});
|
||||||
config = withDesugaring_1.withDesugaring(config, true);
|
config = withDesugaring_1.withDesugaring(config, true);
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-webrtc",
|
"name": "@config-plugins/react-native-webrtc",
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"description": "Config plugin to setup react-native-webrtc on prebuild",
|
"description": "Config plugin to setup react-native-webrtc on prebuild",
|
||||||
"main": "build/withWebRTC.js",
|
"main": "build/withWebRTC.js",
|
||||||
"types": "build/withWebRTC.d.ts",
|
"types": "build/withWebRTC.d.ts",
|
||||||
|
|||||||
@@ -31,7 +31,12 @@ const withWebRTC: ConfigPlugin<IOSPermissionsProps | void> = (
|
|||||||
"android.permission.SYSTEM_ALERT_WINDOW",
|
"android.permission.SYSTEM_ALERT_WINDOW",
|
||||||
"android.permission.WAKE_LOCK",
|
"android.permission.WAKE_LOCK",
|
||||||
]);
|
]);
|
||||||
|
config = AndroidConfig.Version.withBuildScriptExtMinimumVersion(config,
|
||||||
|
{
|
||||||
|
name: "minSdkVersion",
|
||||||
|
minVersion: 24,
|
||||||
|
}
|
||||||
|
)
|
||||||
config = withDesugaring(config, true);
|
config = withDesugaring(config, true);
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Reference in new issue
Block a user