eas-cli 0.42.4 → 0.45.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 +120 -50
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +4 -3
- package/build/build/android/UpdatesModule.d.ts +0 -1
- package/build/build/android/UpdatesModule.js +4 -37
- package/build/build/android/build.js +3 -3
- package/build/build/android/{configure.d.ts → syncProjectConfiguration.d.ts} +2 -3
- package/build/build/android/{configure.js → syncProjectConfiguration.js} +22 -23
- package/build/build/build.d.ts +1 -1
- package/build/build/build.js +6 -8
- package/build/build/configure.d.ts +12 -7
- package/build/build/configure.js +25 -99
- package/build/build/context.d.ts +0 -12
- package/build/build/createContext.d.ts +1 -2
- package/build/build/createContext.js +1 -2
- package/build/build/ios/UpdatesModule.d.ts +0 -1
- package/build/build/ios/UpdatesModule.js +8 -39
- package/build/build/ios/build.js +3 -3
- package/build/build/ios/{configure.d.ts → syncProjectConfiguration.d.ts} +1 -3
- package/build/build/ios/{configure.js → syncProjectConfiguration.js} +3 -18
- package/build/build/local.d.ts +1 -0
- package/build/build/local.js +2 -1
- package/build/build/runBuildAndSubmit.d.ts +0 -1
- package/build/build/runBuildAndSubmit.js +4 -2
- package/build/commands/branch/create.js +8 -3
- package/build/commands/branch/delete.js +8 -2
- package/build/commands/branch/list.js +5 -1
- package/build/commands/branch/rename.js +8 -3
- package/build/commands/branch/view.d.ts +0 -2
- package/build/commands/branch/view.js +32 -71
- package/build/commands/build/configure.js +43 -25
- package/build/commands/build/index.d.ts +1 -0
- package/build/commands/build/index.js +12 -2
- package/build/commands/build/inspect.d.ts +1 -0
- package/build/commands/build/inspect.js +23 -17
- package/build/commands/channel/create.js +21 -16
- package/build/commands/channel/delete.d.ts +15 -0
- package/build/commands/channel/delete.js +124 -0
- package/build/commands/channel/edit.js +10 -5
- package/build/commands/channel/list.js +14 -9
- package/build/commands/channel/rollout.js +8 -3
- package/build/commands/channel/view.js +16 -11
- package/build/commands/device/delete.d.ts +17 -0
- package/build/commands/device/delete.js +181 -0
- package/build/commands/device/list.js +1 -1
- package/build/commands/update/configure.js +1 -1
- package/build/commands/update/delete.js +9 -4
- package/build/commands/update/index.js +7 -3
- package/build/commands/update/list.d.ts +10 -0
- package/build/commands/update/list.js +114 -0
- package/build/commands/update/view.js +22 -17
- package/build/commands/webhook/update.js +1 -1
- package/build/credentials/ios/actions/DeviceUtils.d.ts +1 -0
- package/build/credentials/ios/actions/DeviceUtils.js +16 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.d.ts +1 -0
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +16 -0
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +0 -2
- package/build/credentials/ios/appstore/ensureAppExists.js +3 -1
- package/build/graphql/generated.d.ts +5848 -3500
- package/build/graphql/generated.js +223 -223
- package/build/graphql/queries/UpdateQuery.d.ts +7 -0
- package/build/graphql/queries/UpdateQuery.js +85 -0
- package/build/submit/ArchiveSource.js +0 -1
- package/build/vcs/local.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +43 -42
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AppleDevice, AppleDeviceFragment } from '../../../graphql/generated';
|
|
2
2
|
export declare function chooseDevicesAsync(allDevices: AppleDeviceFragment[], preselectedDeviceIdentifiers?: string[]): Promise<AppleDevice[]>;
|
|
3
|
+
export declare function chooseDevicesToDeleteAsync(allDevices: AppleDeviceFragment[]): Promise<AppleDevice[]>;
|
|
3
4
|
export declare function formatDeviceLabel(device: AppleDeviceFragment): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatDeviceLabel = exports.chooseDevicesAsync = void 0;
|
|
3
|
+
exports.formatDeviceLabel = exports.chooseDevicesToDeleteAsync = exports.chooseDevicesAsync = void 0;
|
|
4
4
|
const AppleDevice_1 = require("../../../graphql/types/credentials/AppleDevice");
|
|
5
5
|
const prompts_1 = require("../.././../prompts");
|
|
6
6
|
async function chooseDevicesAsync(allDevices, preselectedDeviceIdentifiers = []) {
|
|
@@ -23,6 +23,21 @@ async function chooseDevicesAsync(allDevices, preselectedDeviceIdentifiers = [])
|
|
|
23
23
|
return devices;
|
|
24
24
|
}
|
|
25
25
|
exports.chooseDevicesAsync = chooseDevicesAsync;
|
|
26
|
+
async function chooseDevicesToDeleteAsync(allDevices) {
|
|
27
|
+
const { devices } = await (0, prompts_1.promptAsync)({
|
|
28
|
+
type: 'multiselect',
|
|
29
|
+
name: 'devices',
|
|
30
|
+
message: 'Which devices do you want to remove?',
|
|
31
|
+
choices: allDevices.map(device => ({
|
|
32
|
+
value: device,
|
|
33
|
+
title: formatDeviceLabel(device),
|
|
34
|
+
selected: false,
|
|
35
|
+
})),
|
|
36
|
+
instructions: false,
|
|
37
|
+
});
|
|
38
|
+
return devices;
|
|
39
|
+
}
|
|
40
|
+
exports.chooseDevicesToDeleteAsync = chooseDevicesToDeleteAsync;
|
|
26
41
|
function formatDeviceLabel(device) {
|
|
27
42
|
var _a;
|
|
28
43
|
const deviceDetails = formatDeviceDetails(device);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppleDeviceFragment, AppleDeviceInput } from '../../../../../graphql/generated';
|
|
2
2
|
export declare const AppleDeviceMutation: {
|
|
3
3
|
createAppleDeviceAsync(appleDeviceInput: AppleDeviceInput, accountId: string): Promise<AppleDeviceFragment>;
|
|
4
|
+
deleteAppleDeviceAsync(deviceId: string): Promise<string>;
|
|
4
5
|
};
|
|
@@ -29,4 +29,20 @@ exports.AppleDeviceMutation = {
|
|
|
29
29
|
.toPromise());
|
|
30
30
|
return data.appleDevice.createAppleDevice;
|
|
31
31
|
},
|
|
32
|
+
async deleteAppleDeviceAsync(deviceId) {
|
|
33
|
+
const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
34
|
+
.mutation((0, graphql_tag_1.default) `
|
|
35
|
+
mutation DeleteAppleDeviceMutation($deviceId: ID!) {
|
|
36
|
+
appleDevice {
|
|
37
|
+
deleteAppleDevice(id: $deviceId) {
|
|
38
|
+
id
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`, {
|
|
43
|
+
deviceId,
|
|
44
|
+
})
|
|
45
|
+
.toPromise());
|
|
46
|
+
return data.id;
|
|
47
|
+
},
|
|
32
48
|
};
|
|
@@ -126,10 +126,8 @@ function getCapabilitiesToDisable(bundleId, currentCapabilities, request) {
|
|
|
126
126
|
// Disable any extras that aren't present, this functionality is kinda unreliable because managed apps
|
|
127
127
|
// might be enabling capabilities in modifiers.
|
|
128
128
|
for (const existingCapability of currentCapabilities) {
|
|
129
|
-
// Special case APNS because it's always enabled in Expo,
|
|
130
129
|
// GC and IAP are always enabled in apps by default so we should avoid modifying them.
|
|
131
130
|
if (existingCapability.isType(apple_utils_1.CapabilityType.IN_APP_PURCHASE) ||
|
|
132
|
-
existingCapability.isType(apple_utils_1.CapabilityType.PUSH_NOTIFICATIONS) ||
|
|
133
131
|
existingCapability.isType(apple_utils_1.CapabilityType.GAME_CENTER)) {
|
|
134
132
|
continue;
|
|
135
133
|
}
|
|
@@ -41,7 +41,9 @@ async function ensureBundleIdExistsWithNameAsync(authCtx, { name, bundleIdentifi
|
|
|
41
41
|
else {
|
|
42
42
|
spinner.fail(`Failed to register bundle identifier ${chalk_1.default.dim(bundleIdentifier)}`);
|
|
43
43
|
// Assert contract errors for easier resolution when the user has an expired developer account.
|
|
44
|
-
if (err.message.match(/forbidden for security reasons/)
|
|
44
|
+
if (err.message.match(/forbidden for security reasons/) ||
|
|
45
|
+
// Unable to process request - PLA Update available - You currently don't have access to this membership resource. To resolve this issue, agree to the latest Program License Agreement in your developer account.
|
|
46
|
+
err.message.match(/agree/)) {
|
|
45
47
|
await (0, contractMessages_1.assertContractMessagesAsync)(context);
|
|
46
48
|
}
|
|
47
49
|
}
|