@bacons/apple-targets 0.1.11 → 0.1.12
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.
- package/build/withWidget.js +12 -9
- package/package.json +1 -1
package/build/withWidget.js
CHANGED
|
@@ -74,7 +74,7 @@ const withWidget = (config, props) => {
|
|
|
74
74
|
if (entitlementsJson) {
|
|
75
75
|
// Apply default entitlements that must be present for a target to work.
|
|
76
76
|
const applyDefaultEntitlements = (entitlements) => {
|
|
77
|
-
var _a, _b
|
|
77
|
+
var _a, _b;
|
|
78
78
|
if (props.type === "clip") {
|
|
79
79
|
entitlements["com.apple.developer.parent-application-identifiers"] = [
|
|
80
80
|
`$(AppIdentifierPrefix)${config.ios.bundleIdentifier}`,
|
|
@@ -98,15 +98,18 @@ const withWidget = (config, props) => {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
prebuildLogQueue.add(() => {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
return console.warn((0, chalk_1.default) `{yellow [${widget}]} Apple target may require the App Groups entitlement but none were found in the Expo config.\nExample:\n${JSON.stringify({
|
|
104
|
+
ios: {
|
|
105
|
+
entitlements: {
|
|
106
|
+
[APP_GROUP_KEY]: [
|
|
107
|
+
`group.${(_b = (_a = config.ios) === null || _a === void 0 ? void 0 : _a.bundleIdentifier) !== null && _b !== void 0 ? _b : `com.example.${config.slug}`}`,
|
|
108
|
+
],
|
|
109
|
+
},
|
|
107
110
|
},
|
|
108
|
-
},
|
|
109
|
-
}
|
|
111
|
+
}, null, 2)}`);
|
|
112
|
+
});
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
return entitlements;
|