@codeleap/cli 2.3.26 → 2.3.27-2

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.
Files changed (65) hide show
  1. package/dist/commands/codepushBootstrap.d.ts +28 -0
  2. package/dist/commands/codepushBootstrap.js +149 -0
  3. package/dist/commands/codepushDeploy.d.ts +28 -0
  4. package/dist/commands/codepushDeploy.js +101 -0
  5. package/dist/commands/configure.d.ts +26 -0
  6. package/dist/commands/configure.js +0 -0
  7. package/dist/commands/convertorWebp.d.ts +29 -0
  8. package/dist/commands/convertorWebp.js +217 -0
  9. package/dist/commands/createApp.d.ts +40 -0
  10. package/dist/commands/createApp.js +0 -0
  11. package/dist/commands/createStyleSheets.d.ts +0 -0
  12. package/dist/commands/createStyleSheets.js +90 -0
  13. package/dist/commands/downloadKeystores.d.ts +24 -0
  14. package/dist/commands/downloadKeystores.js +68 -0
  15. package/dist/commands/keystoresAndroid.d.ts +25 -0
  16. package/dist/commands/keystoresAndroid.js +0 -0
  17. package/dist/commands/rename.d.ts +64 -0
  18. package/dist/commands/rename.js +0 -0
  19. package/dist/commands/syncIcons.d.ts +37 -0
  20. package/dist/commands/syncIcons.js +101 -0
  21. package/dist/constants.d.ts +10 -0
  22. package/dist/constants.js +0 -0
  23. package/dist/index.d.ts +2 -0
  24. package/dist/index.js +0 -0
  25. package/dist/lib/Command.d.ts +2 -0
  26. package/dist/lib/Command.js +0 -0
  27. package/dist/lib/alterCliSettings.d.ts +2 -0
  28. package/dist/lib/alterCliSettings.js +19 -0
  29. package/dist/lib/android/index.d.ts +2 -0
  30. package/dist/lib/android/index.js +0 -0
  31. package/dist/lib/android/keystore.d.ts +14 -0
  32. package/dist/lib/android/keystore.js +0 -0
  33. package/dist/lib/android/rename.d.ts +7 -0
  34. package/dist/lib/android/rename.js +0 -0
  35. package/dist/lib/android/utils.d.ts +3 -0
  36. package/dist/lib/android/utils.js +0 -0
  37. package/dist/lib/appcenter.d.ts +21 -0
  38. package/dist/lib/appcenter.js +209 -0
  39. package/dist/lib/createApp/common.d.ts +1 -0
  40. package/dist/lib/createApp/common.js +0 -0
  41. package/dist/lib/createApp/mobile.d.ts +7 -0
  42. package/dist/lib/createApp/mobile.js +0 -0
  43. package/dist/lib/firebase.d.ts +2 -0
  44. package/dist/lib/firebase.js +0 -0
  45. package/dist/lib/getCliSettings.d.ts +4 -0
  46. package/dist/lib/getCliSettings.js +34 -0
  47. package/dist/lib/git.d.ts +2 -0
  48. package/dist/lib/git.js +73 -0
  49. package/dist/lib/index.d.ts +20 -0
  50. package/dist/lib/index.js +0 -0
  51. package/dist/lib/ios/index.d.ts +2 -0
  52. package/dist/lib/ios/index.js +0 -0
  53. package/dist/lib/ios/rename.d.ts +7 -0
  54. package/dist/lib/ios/rename.js +0 -0
  55. package/dist/lib/ios/utils.d.ts +2 -0
  56. package/dist/lib/ios/utils.js +0 -0
  57. package/dist/lib/spinner.d.ts +6 -0
  58. package/dist/lib/spinner.js +0 -0
  59. package/dist/lib/utils.d.ts +18 -0
  60. package/dist/lib/utils.js +0 -0
  61. package/dist/lib/walk.d.ts +37 -0
  62. package/dist/lib/walk.js +0 -0
  63. package/dist/types.d.ts +28 -0
  64. package/dist/types.js +0 -0
  65. package/package.json +1 -1
@@ -0,0 +1,90 @@
1
+ // // import { DEFAULT_STYLES } from '@codeleap/common'
2
+ // import fs from 'fs'
3
+ // import nodePath from 'path'
4
+ // const exists = (path) => {
5
+ // try {
6
+ // const fileStat = fs.statSync(path)
7
+ // return fileStat
8
+ // } catch (e) {
9
+ // return false
10
+ // }
11
+ // }
12
+ // const components = Object.keys(DEFAULT_STYLES).filter(
13
+ // (k) => Object.keys(DEFAULT_STYLES[k]).length > 0,
14
+ // )
15
+ // const DEFAULT_PATH = `${process.cwd()}/src/app/stylesheets/`
16
+ // const stylesPath = nodePath.resolve(process.argv?.[3] || DEFAULT_PATH)
17
+ // const component = process.argv?.[2] || '--all'
18
+ // const componentList = component === '--all' ? components : component.split(',')
19
+ // if (!stylesPath) {
20
+ // console.warn('You must supply a path for the styles eg: ' + DEFAULT_PATH)
21
+ // process.exit(1)
22
+ // }
23
+ // const fileData = exists(stylesPath)
24
+ // if (!fileData || !fileData.isDirectory()) {
25
+ // console.warn(
26
+ // `Styles path ${stylesPath} either doesn't exist or is not a directory`,
27
+ // )
28
+ // process.exit(1)
29
+ // }
30
+ // const existingFiles = fs
31
+ // .readdirSync(stylesPath, {
32
+ // withFileTypes: true,
33
+ // })
34
+ // .filter((f) => !f.isDirectory())
35
+ // .map((p) => p.name)
36
+ // const { validFiles, invalidFiles } = componentList.reduce(
37
+ // (acc, cp) => {
38
+ // if (
39
+ // !existingFiles.includes(`${cp}.ts`) &&
40
+ // !existingFiles.includes(`${cp}.tsx`)
41
+ // ) {
42
+ // return {
43
+ // ...acc,
44
+ // validFiles: [...acc.validFiles, cp],
45
+ // }
46
+ // } else {
47
+ // return {
48
+ // ...acc,
49
+ // invalidFiles: [...acc.invalidFiles, cp],
50
+ // }
51
+ // }
52
+ // },
53
+ // {
54
+ // validFiles: [],
55
+ // invalidFiles: [],
56
+ // },
57
+ // )
58
+ // if (invalidFiles.length > 0) {
59
+ // console.log(
60
+ // `Ignoring StyleSheets ${invalidFiles.join(
61
+ // ', ',
62
+ // )} to not overwrite existing files`,
63
+ // )
64
+ // }
65
+ // if (validFiles.length < 1) {
66
+ // console.log('No StyleSheets to create. Exiting')
67
+ // process.exit(0)
68
+ // }
69
+ // console.log(`Creating StyleSheets:\n\n${validFiles.join(' \n')}`)
70
+ // const template = `
71
+ // import { __CP__Composition } from '@codeleap/common'
72
+ // import { variantProvider } from '../theme'
73
+ // const create__CP__Style = variantProvider.createVariantFactory<__CP__Composition>()
74
+ // const defaultStyles = variantProvider.getDefaultVariants('__CP__')
75
+ // export const App__CP__Styles = {
76
+ // ...defaultStyles,
77
+ // default: create__CP__Style((theme) => ({
78
+ // ...defaultStyles.default,
79
+ // })),
80
+ // }
81
+ // `
82
+ // validFiles.forEach((f) => {
83
+ // const fullPath = nodePath.join(stylesPath, `${f}.ts`)
84
+ // const content = template.replace(/__CP__/g, f)
85
+ // return fs.writeFileSync(fullPath, content, {
86
+ // encoding: 'utf-8',
87
+ // })
88
+ // })
89
+ // console.log(`\nCreated ${validFiles.length} stylesheets at ${stylesPath}.\n`)
90
+ // console.log(`Happy Styling!`)
@@ -0,0 +1,24 @@
1
+ export declare const downloadKeystores: import("cleye").Command<{
2
+ name: "download-keystores";
3
+ parameters: "[branch]"[];
4
+ }, {
5
+ command: "download-keystores";
6
+ } & import("type-flag").TypeFlag<{
7
+ help: BooleanConstructor;
8
+ }> & {
9
+ _: {
10
+ branch: string;
11
+ };
12
+ showHelp: (options?: {
13
+ version?: string;
14
+ description?: string;
15
+ usage?: string | false | string[];
16
+ examples?: string | string[];
17
+ render?: (nodes: {
18
+ id?: string;
19
+ type: keyof import("cleye").Renderers;
20
+ data: any;
21
+ }[], renderers: import("cleye").Renderers) => string;
22
+ }) => void;
23
+ showVersion: () => void;
24
+ }>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.downloadKeystores = void 0;
40
+ // import { waitFor } from '@codeleap/common'
41
+ var constants_1 = require("../constants");
42
+ var lib_1 = require("../lib");
43
+ var Command_1 = require("../lib/Command");
44
+ exports.downloadKeystores = (0, Command_1.codeleapCommand)({
45
+ name: 'download-keystores',
46
+ parameters: [
47
+ '[branch]'
48
+ ],
49
+ }, function (_a) {
50
+ var _ = _a._;
51
+ return __awaiter(void 0, void 0, void 0, function () {
52
+ var dir;
53
+ return __generator(this, function (_b) {
54
+ switch (_b.label) {
55
+ case 0:
56
+ dir = lib_1.path.join(constants_1.cwd, 'android', 'app', 'keystores');
57
+ lib_1.fs.rmSync(dir, {
58
+ recursive: true,
59
+ force: true
60
+ });
61
+ return [4 /*yield*/, lib_1.git.raw('clone', "https://".concat(constants_1.USER_CONFIG.GITHUB_TOKEN, "@github.com/codeleap-uk/keystores-android.git"), '-b', _.branch, dir)];
62
+ case 1:
63
+ _b.sent();
64
+ return [2 /*return*/];
65
+ }
66
+ });
67
+ });
68
+ });
@@ -0,0 +1,25 @@
1
+ export declare const generateReleaseKey: import("cleye").Command<{
2
+ name: "keystores-android";
3
+ parameters: undefined[];
4
+ alias: "i";
5
+ }, {
6
+ command: "keystores-android";
7
+ } & import("type-flag").TypeFlag<{
8
+ help: BooleanConstructor;
9
+ }> & {
10
+ _: {
11
+ [x: string]: string | string[];
12
+ };
13
+ showHelp: (options?: {
14
+ version?: string;
15
+ description?: string;
16
+ usage?: string | false | string[];
17
+ examples?: string | string[];
18
+ render?: (nodes: {
19
+ id?: string;
20
+ type: keyof import("cleye").Renderers;
21
+ data: any;
22
+ }[], renderers: import("cleye").Renderers) => string;
23
+ }) => void;
24
+ showVersion: () => void;
25
+ }>;
File without changes
@@ -0,0 +1,64 @@
1
+ import '../lib/firebase';
2
+ export declare const renameMobileCommand: import("cleye").Command<{
3
+ name: "rename-mobile";
4
+ parameters: "[new_name]"[];
5
+ help: {
6
+ description: string;
7
+ examples: string[];
8
+ };
9
+ flags: {
10
+ ios: {
11
+ type: BooleanConstructor;
12
+ description: string;
13
+ };
14
+ android: {
15
+ type: BooleanConstructor;
16
+ description: string;
17
+ };
18
+ dry: {
19
+ type: BooleanConstructor;
20
+ description: string;
21
+ };
22
+ displayOnly: {
23
+ type: BooleanConstructor;
24
+ description: string;
25
+ };
26
+ };
27
+ }, {
28
+ command: "rename-mobile";
29
+ } & import("type-flag").TypeFlag<{
30
+ ios: {
31
+ type: BooleanConstructor;
32
+ description: string;
33
+ };
34
+ android: {
35
+ type: BooleanConstructor;
36
+ description: string;
37
+ };
38
+ dry: {
39
+ type: BooleanConstructor;
40
+ description: string;
41
+ };
42
+ displayOnly: {
43
+ type: BooleanConstructor;
44
+ description: string;
45
+ };
46
+ } & {
47
+ help: BooleanConstructor;
48
+ }> & {
49
+ _: {
50
+ newName: string;
51
+ };
52
+ showHelp: (options?: {
53
+ version?: string;
54
+ description?: string;
55
+ usage?: string | false | string[];
56
+ examples?: string | string[];
57
+ render?: (nodes: {
58
+ id?: string;
59
+ type: keyof import("cleye").Renderers;
60
+ data: any;
61
+ }[], renderers: import("cleye").Renderers) => string;
62
+ }) => void;
63
+ showVersion: () => void;
64
+ }>;
File without changes
@@ -0,0 +1,37 @@
1
+ import '../lib/firebase';
2
+ export declare const syncIconsCommand: import("cleye").Command<{
3
+ name: "syncIcons";
4
+ help: {
5
+ description: string;
6
+ examples: string[];
7
+ };
8
+ flags: {
9
+ logdiff: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ };
14
+ }, {
15
+ command: "syncIcons";
16
+ } & import("type-flag").TypeFlag<{
17
+ logdiff: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ } & {
22
+ help: BooleanConstructor;
23
+ }> & {
24
+ _: {};
25
+ showHelp: (options?: {
26
+ version?: string;
27
+ description?: string;
28
+ usage?: string | false | string[];
29
+ examples?: string | string[];
30
+ render?: (nodes: {
31
+ id?: string;
32
+ type: keyof import("cleye").Renderers;
33
+ data: any;
34
+ }[], renderers: import("cleye").Renderers) => string;
35
+ }) => void;
36
+ showVersion: () => void;
37
+ }>;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __read = (this && this.__read) || function (o, n) {
39
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
40
+ if (!m) return o;
41
+ var i = m.call(o), r, ar = [], e;
42
+ try {
43
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
44
+ }
45
+ catch (error) { e = { error: error }; }
46
+ finally {
47
+ try {
48
+ if (r && !r.done && (m = i["return"])) m.call(i);
49
+ }
50
+ finally { if (e) throw e.error; }
51
+ }
52
+ return ar;
53
+ };
54
+ Object.defineProperty(exports, "__esModule", { value: true });
55
+ exports.syncIconsCommand = void 0;
56
+ var Command_1 = require("../lib/Command");
57
+ var lib_1 = require("../lib");
58
+ require("../lib/firebase");
59
+ var commandName = 'syncIcons';
60
+ var supportedExtensions = ['png', 'jpg', 'jpeg', 'svg'];
61
+ exports.syncIconsCommand = (0, Command_1.codeleapCommand)({
62
+ name: commandName,
63
+ help: {
64
+ description: 'Synchronize icons from the app/assets/icons folder into a ts file with their exports',
65
+ examples: [
66
+ "codeleap ".concat(commandName),
67
+ ],
68
+ },
69
+ flags: {
70
+ logdiff: {
71
+ type: Boolean,
72
+ default: true,
73
+ },
74
+ },
75
+ }, function (argv) { return __awaiter(void 0, void 0, void 0, function () {
76
+ var flags, _, iconFiles, iconEntries, iconEntriesString, iconEntriesFile;
77
+ return __generator(this, function (_a) {
78
+ flags = argv.flags, _ = argv._;
79
+ iconFiles = lib_1.fs.readdirSync('./src/app/assets/icons', {
80
+ withFileTypes: true,
81
+ }).filter(function (i) {
82
+ var extension = i.name.split('.').pop();
83
+ return i.isFile() && supportedExtensions.includes(extension);
84
+ });
85
+ iconEntries = iconFiles.map(function (iconFile) {
86
+ var extension = iconFile.name.split('.').pop().toLowerCase();
87
+ var filename = iconFile.name.replace(".".concat(extension), '');
88
+ return [filename, iconFile.name];
89
+ });
90
+ iconEntriesString = iconEntries.map(function (_a) {
91
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
92
+ return " '".concat(key, "': require('./").concat(value, "'),");
93
+ }).join('\n');
94
+ iconEntriesFile = "export const imageIcons = {\n".concat(iconEntriesString, "\n}");
95
+ lib_1.fs.writeFileSync('./src/app/assets/icons/exports.ts', iconEntriesFile);
96
+ if (flags.logdiff) {
97
+ console.log(iconEntriesFile);
98
+ }
99
+ return [2 /*return*/];
100
+ });
101
+ }); });
@@ -0,0 +1,10 @@
1
+ export declare const isDev: boolean;
2
+ export declare const cwd: string;
3
+ export declare const cliConfigPath: string;
4
+ export declare const orgName = "codeleap-uk";
5
+ export declare const USER_CONFIG: {
6
+ GITHUB_TOKEN: string;
7
+ SHELL: string | boolean;
8
+ };
9
+ export declare const MOBILE_TEMPLATE_URL: string;
10
+ export declare const CODELEAP_CLI_SETTINGS_PATH = "./codeleapcli.config.json";
package/dist/constants.js CHANGED
File without changes
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export type * from './types';
package/dist/index.js CHANGED
File without changes
@@ -0,0 +1,2 @@
1
+ import { command } from 'cleye';
2
+ export declare const codeleapCommand: typeof command;
File without changes
@@ -0,0 +1,2 @@
1
+ import { CodeleapCLISettings } from '../types';
2
+ export declare function alterCliSettings(updater: (settings: CodeleapCLISettings) => CodeleapCLISettings): void;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.alterCliSettings = void 0;
4
+ var constants_1 = require("../constants");
5
+ var utils_1 = require("./utils");
6
+ var getCliSettings_1 = require("./getCliSettings");
7
+ function alterCliSettings(updater) {
8
+ var settingsPath = constants_1.CODELEAP_CLI_SETTINGS_PATH;
9
+ if (!utils_1.fs.existsSync(settingsPath)) {
10
+ console.error('Settings not found, check path:', settingsPath);
11
+ process.exit(1);
12
+ return;
13
+ }
14
+ var settingsJSON = JSON.parse(utils_1.fs.readFileSync(settingsPath).toString());
15
+ settingsJSON = updater(settingsJSON);
16
+ utils_1.fs.writeFileSync(settingsPath, JSON.stringify(settingsJSON, null, 2));
17
+ (0, getCliSettings_1.invalidateSettingsCache)(settingsJSON);
18
+ }
19
+ exports.alterCliSettings = alterCliSettings;
@@ -0,0 +1,2 @@
1
+ export * from './rename';
2
+ export * from './utils';
File without changes
@@ -0,0 +1,14 @@
1
+ type KeystoreCredentials = {
2
+ 'storePassword': string;
3
+ 'keyAlias': string;
4
+ 'keyPassword': string;
5
+ };
6
+ export declare class AndroidConfigFile {
7
+ path?: string;
8
+ data: {};
9
+ constructor(path?: string);
10
+ setKey(key: string, value: KeystoreCredentials): void;
11
+ save(): void;
12
+ }
13
+ export declare const generateReleaseKeystore: (androidFolder?: string) => Promise<void>;
14
+ export {};
File without changes
@@ -0,0 +1,7 @@
1
+ import firebase from 'firebase-admin';
2
+ type RenameAndroidOptions = {
3
+ changeBundle?: boolean;
4
+ firebase?: firebase.app.App;
5
+ };
6
+ export declare function renameAndroid(androidFolder: string, newName: string, options?: RenameAndroidOptions): Promise<void>;
7
+ export {};
File without changes
@@ -0,0 +1,3 @@
1
+ export declare const getAndroidBundleId: (androidManifestContent: string) => string;
2
+ export declare const getAndroidAppName: (stringsXmlContent: string) => string;
3
+ export declare const readGradleProperties: (androidFolder: string) => {};
File without changes
@@ -0,0 +1,21 @@
1
+ type ApplicationPlatform = 'ios' | 'android';
2
+ declare function addDeployment(name: string, application: string): Promise<void>;
3
+ declare function getApplication(platform: ApplicationPlatform): Promise<string>;
4
+ export declare function updateDeployment(name: string, application: string): Promise<void>;
5
+ export declare function deploymentExists(name: string, platform: ApplicationPlatform): Promise<boolean>;
6
+ export declare const createApplication: (platform: ApplicationPlatform, token: string) => Promise<{
7
+ app: any;
8
+ appToken: any;
9
+ }>;
10
+ export declare const Codepush: {
11
+ getApplication: typeof getApplication;
12
+ addDeployment: typeof addDeployment;
13
+ updateDeployment: typeof updateDeployment;
14
+ createApplication: (platform: ApplicationPlatform, token: string) => Promise<{
15
+ app: any;
16
+ appToken: any;
17
+ }>;
18
+ deploymentExists: typeof deploymentExists;
19
+ createDeployment: (name: string, platform: ApplicationPlatform) => Promise<any>;
20
+ };
21
+ export {};