@react-native-native/cli 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-native-native/cli",
3
3
  "description": "CLI tools for React Native Native — setup, diagnostics, and build commands.",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "nativ": "./bin/nativ.js"
@@ -130,10 +130,12 @@ async function setupKotlinCompiler() {
130
130
  // ─── Step 2: Compose compiler plugin ───────────────────────────────────
131
131
 
132
132
  function setupComposePlugin() {
133
+ // Match the Kotlin version from config — plugin MUST match compiler version
133
134
  const plugin = findInGradleCache(
134
135
  'org.jetbrains.kotlin',
135
136
  'kotlin-compose-compiler-plugin',
136
- '*.jar'
137
+ null,
138
+ KOTLIN_VERSION
137
139
  );
138
140
  if (plugin) {
139
141
  console.log(`✓ Compose compiler plugin (from Gradle cache)`);
@@ -153,6 +155,10 @@ function setupComposeJars() {
153
155
  ['androidx.compose.runtime', `runtime-android`],
154
156
  ['androidx.compose.runtime', `runtime-saveable-android`],
155
157
  ['androidx.compose.ui', `ui-android`],
158
+ ['androidx.compose.ui', `ui-graphics-android`],
159
+ ['androidx.compose.ui', `ui-text-android`],
160
+ ['androidx.compose.ui', `ui-unit-android`],
161
+ ['androidx.compose.ui', `ui-geometry-android`],
156
162
  ['androidx.compose.foundation', `foundation-android`],
157
163
  ['androidx.compose.foundation', `foundation-layout-android`],
158
164
  ['androidx.compose.material3', `material3-android`],
@@ -260,6 +266,7 @@ function setupWrappersJar() {
260
266
  package com.nativfabric.compose
261
267
 
262
268
  import androidx.compose.runtime.Composable
269
+ import androidx.compose.foundation.layout.Arrangement
263
270
  import androidx.compose.foundation.layout.BoxScope
264
271
  import androidx.compose.foundation.layout.ColumnScope
265
272
  import androidx.compose.foundation.layout.RowScope
@@ -277,14 +284,18 @@ fun Box(
277
284
  @Composable
278
285
  fun Column(
279
286
  modifier: Modifier = Modifier,
287
+ verticalArrangement: Arrangement.Vertical = Arrangement.Top,
288
+ horizontalAlignment: Alignment.Horizontal = Alignment.Start,
280
289
  content: @Composable ColumnScope.() -> Unit
281
- ) = androidx.compose.foundation.layout.Column(modifier = modifier, content = content)
290
+ ) = androidx.compose.foundation.layout.Column(modifier, verticalArrangement, horizontalAlignment, content)
282
291
 
283
292
  @Composable
284
293
  fun Row(
285
294
  modifier: Modifier = Modifier,
295
+ horizontalArrangement: Arrangement.Horizontal = Arrangement.Start,
296
+ verticalAlignment: Alignment.Vertical = Alignment.Top,
286
297
  content: @Composable RowScope.() -> Unit
287
- ) = androidx.compose.foundation.layout.Row(modifier = modifier, content = content)
298
+ ) = androidx.compose.foundation.layout.Row(modifier, horizontalArrangement, verticalAlignment, content)
288
299
 
289
300
  @Composable
290
301
  fun Spacer(modifier: Modifier = Modifier) = androidx.compose.foundation.layout.Spacer(modifier)