@callstack/brownfield-cli 3.4.0 → 3.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @callstack/brownfield-cli
2
2
 
3
+ ## 3.5.1
4
+
5
+ ## 3.5.0
6
+
7
+ ### Minor Changes
8
+
9
+ - [#257](https://github.com/callstack/react-native-brownfield/pull/257) [`d0e6203`](https://github.com/callstack/react-native-brownfield/commit/d0e62039c8a080c648abbbeace047e72fadce28b) Thanks [@hurali97](https://github.com/hurali97)! - add brownie android
10
+
3
11
  ## 3.4.0
4
12
 
5
13
  ### Patch Changes
@@ -85,8 +85,8 @@ export async function runCodegen({ platform }) {
85
85
  platforms = [platform];
86
86
  }
87
87
  else {
88
- // Only generate Swift by default (Kotlin not yet released)
89
- platforms = ['swift'];
88
+ // Generate both Swift and Kotlin by default
89
+ platforms = ['swift', 'kotlin'];
90
90
  }
91
91
  await generateForStore(store, config, platforms, isMultipleStores);
92
92
  }
@@ -105,7 +105,7 @@ export async function runCodegen({ platform }) {
105
105
  }
106
106
  export const codegenCommand = new Command('codegen')
107
107
  .description('Generate native store types from TypeScript schema')
108
- .addOption(new Option('-p, --platform <platform>', 'Generate for specific platform (swift)').choices(['swift']))
108
+ .addOption(new Option('-p, --platform <platform>', 'Generate for specific platform (swift|kotlin)').choices(['swift', 'kotlin']))
109
109
  .action(actionRunner(async (options) => {
110
110
  await runCodegen(options);
111
111
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/brownfield-cli",
3
- "version": "3.4.0",
3
+ "version": "3.5.1",
4
4
  "license": "MIT",
5
5
  "author": "Artur Morys-Magiera <artus9033@gmail.com>",
6
6
  "bin": {
@@ -118,8 +118,8 @@ export async function runCodegen({ platform }: RunCodegenOptions) {
118
118
  if (platform) {
119
119
  platforms = [platform];
120
120
  } else {
121
- // Only generate Swift by default (Kotlin not yet released)
122
- platforms = ['swift'];
121
+ // Generate both Swift and Kotlin by default
122
+ platforms = ['swift', 'kotlin'];
123
123
  }
124
124
 
125
125
  await generateForStore(store, config, platforms, isMultipleStores);
@@ -142,8 +142,8 @@ export const codegenCommand = new Command('codegen')
142
142
  .addOption(
143
143
  new Option(
144
144
  '-p, --platform <platform>',
145
- 'Generate for specific platform (swift)'
146
- ).choices(['swift'])
145
+ 'Generate for specific platform (swift|kotlin)'
146
+ ).choices(['swift', 'kotlin'])
147
147
  )
148
148
  .action(
149
149
  actionRunner(async (options: RunCodegenOptions) => {