@algocare/react-native-code-push 10.3.2 → 11.0.1

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.
@@ -1,31 +0,0 @@
1
- const { program } = require('commander')
2
- const { findAndReadConfigFile } = require('../../utils/fsUtils')
3
- const { COMPILED_CONFIG_FILE_NAME } = require('../../constant')
4
-
5
- program
6
- .command('get-development-key')
7
- .description('the development key for a specific app and platform.')
8
- .option('-a, --app <string>', 'target app (user/device)')
9
- .option('-p, --platform <string>', 'target platform (ios/android)')
10
- .option('-b, --binary-version <string>', 'target binary version (x.y.z)')
11
- .option('-r, --pr-number <number>', 'pull request number')
12
- .option(
13
- '-c, --config <path>',
14
- 'configuration file name (JS/TS)',
15
- COMPILED_CONFIG_FILE_NAME
16
- )
17
- .action(async (options) => {
18
- const { getReleaseHistory } = await findAndReadConfigFile(
19
- process.cwd(),
20
- options.config
21
- )
22
-
23
- const releaseHistory = await getReleaseHistory(
24
- options.app,
25
- options.binaryVersion || options.prNumber,
26
- options.platform
27
- )
28
-
29
- const latestReleaseVersion = Object.keys(releaseHistory).at(-1)
30
- process.stdout.write(releaseHistory[latestReleaseVersion].packageHash)
31
- })