eas-cli 27.2.0 → 27.3.0
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/README.md +146 -146
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +6 -3
- package/oclif.manifest.json +2370 -2370
- package/package.json +7 -7
|
@@ -74,7 +74,8 @@ async function syncCapabilityIdentifiersForEntitlementsAsync(bundleId, entitleme
|
|
|
74
74
|
const remoteLinkedIds = linkedBundleCapabilities.find(c => c.isType(classifier.capability))
|
|
75
75
|
?.attributes;
|
|
76
76
|
const alreadyLinkedOpaqueIds = new Set((remoteLinkedIds?.[CapabilityModel.type] ?? []).map(model => model.id));
|
|
77
|
-
// A list of server IDs for linking.
|
|
77
|
+
// A list of server IDs for linking. The update replaces the linked identifiers,
|
|
78
|
+
// so this includes the ones that are already linked.
|
|
78
79
|
const capabilityIdOpaqueIds = [];
|
|
79
80
|
// Iterate through all the local IDs and see if they exist on the server.
|
|
80
81
|
for (const localId of capabilityIds) {
|
|
@@ -84,8 +85,8 @@ async function syncCapabilityIdentifiersForEntitlementsAsync(bundleId, entitleme
|
|
|
84
85
|
if (!alreadyLinkedOpaqueIds.has(remoteIdModel.id)) {
|
|
85
86
|
// Link the existing identifier to this bundle.
|
|
86
87
|
linkedIds.push(remoteIdModel.attributes.identifier);
|
|
87
|
-
capabilityIdOpaqueIds.push(remoteIdModel.id);
|
|
88
88
|
}
|
|
89
|
+
capabilityIdOpaqueIds.push(remoteIdModel.id);
|
|
89
90
|
continue;
|
|
90
91
|
}
|
|
91
92
|
if (log_1.default.isDebug) {
|
|
@@ -110,7 +111,9 @@ async function syncCapabilityIdentifiersForEntitlementsAsync(bundleId, entitleme
|
|
|
110
111
|
linkedIds.push(remoteIdModel.attributes.identifier);
|
|
111
112
|
capabilityIdOpaqueIds.push(remoteIdModel.id);
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
+
// The update replaces the linked identifiers, so it is sent only when one of them is not
|
|
115
|
+
// linked yet. An identifier removed from the entitlements therefore stays linked.
|
|
116
|
+
if (capabilityIdOpaqueIds.some(id => !alreadyLinkedOpaqueIds.has(id))) {
|
|
114
117
|
updateRequest.push({
|
|
115
118
|
capabilityType: classifier.capability,
|
|
116
119
|
option: apple_utils_1.CapabilityTypeOption.ON,
|