Compare commits

...
Author SHA1 Message Date
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
7 changed files with 41 additions and 25 deletions

No files matched your search

+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>`;
} }
/** /**
@@ -1 +1,8 @@
### @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
+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.0.2",
"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",