No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apps-android-sha-delete.js 909B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const clc = require("colorette");
  5. const command_1 = require("../command");
  6. const projectUtils_1 = require("../projectUtils");
  7. const apps_1 = require("../management/apps");
  8. const requireAuth_1 = require("../requireAuth");
  9. const utils_1 = require("../utils");
  10. exports.command = new command_1.Command("apps:android:sha:delete <appId> <shaId>")
  11. .description("delete a SHA certificate hash for a given app id.")
  12. .before(requireAuth_1.requireAuth)
  13. .action(async (appId = "", shaId = "", options) => {
  14. const projectId = (0, projectUtils_1.needProjectId)(options);
  15. await (0, utils_1.promiseWithSpinner)(async () => await (0, apps_1.deleteAppAndroidSha)(projectId, appId, shaId), `Deleting Android SHA certificate hash with SHA id ${clc.bold(shaId)} and Android app Id ${clc.bold(appId)}`);
  16. });