Compare commits

..
Author SHA1 Message Date
semantic-release-bot e2d2b27494 chore: 2.1.0
## @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))
2022-03-22 16:48:53 +00:00
Thorben Primke ff8b167764 feat(react-native-webrtc): add config mod for Android minSdkVersion 24
Summary:
react-native-webrtc requires that the Android minSdkVersion is
set to 24.
Related issue on this here and also mentioned on Daily's RN SDK
that has react-native-webrtc as a dependency.

Adds withBuildScriptExtMinimumVersion same as the ffmpeg-kit-react-native
config plugin. Maybe withBuildScriptExtMinimumVersion could be
exported in `config-plugins` package so that it could be used directly.
2022-03-22 11:44:39 -05:00
Evan Bacon eee366bebc chore(repo): add PR template (#56)
* chore(repo): add PR template

* chore: add CODEOWNERS
2022-03-18 10:28:30 -05:00
semantic-release-bot 72fa3e14ef chore: 1.2.2
### @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))
2022-03-16 21:31:07 +00:00
Maurice DoepkeandMaurice Döpke 6324eb041b fix(detox): use improved xml generation (#47)
* fix xml generation

generate xml without space or new line in the beginning

* remove indentation

* update snapshots to no indentation

* add built file

Co-authored-by: Maurice Döpke <mauricedoepkeoutlook.de>
2022-03-16 16:27:57 -05:00
semantic-release-bot 480ec19161 chore: 2.0.2
### [2.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-16)

### Bug Fixes

* **ci:** change release config order [skip ci] ([#52](https://github.com/expo/config-plugins/issues/52)) ([429dcdc](https://github.com/expo/config-plugins/commit/429dcdc1d0cb8c28a95459501cf29aa5f446e8d7))
* **ci:** ignore private packages ([537afa4](https://github.com/expo/config-plugins/commit/537afa4c7d308c921b923d299dc56765a0522932))

### Continuous Integration

* add statuses permissions to pr title workflow [skip ci] ([#54](https://github.com/expo/config-plugins/issues/54)) ([1374ab2](https://github.com/expo/config-plugins/commit/1374ab2bf49d8229420bfcff7972a60cb0b0621c))
* fix versions [skip ci] ([#53](https://github.com/expo/config-plugins/issues/53)) ([5de4ae3](https://github.com/expo/config-plugins/commit/5de4ae3e6182c32b7aa24d70ccd23a11663bb089))
* revert permissions ([73109da](https://github.com/expo/config-plugins/commit/73109da98dbfe6d766cc798134b4f00e76b79bda))

### Documentation changes

* **ios-stickers:** add doc block ([#55](https://github.com/expo/config-plugins/issues/55)) ([c904bc6](https://github.com/expo/config-plugins/commit/c904bc6a5f410645696a0356b5c188b94f80c231))
2022-03-16 00:20:56 +00:00
12 changed files with 87 additions and 27 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
/* @EvanBacon
+24
View File
@@ -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.
-->
+7
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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>`;
} }
/** /**
+14
View File
@@ -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
+4 -1
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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;