Compare commits

...
4 Commits
Author SHA1 Message Date
omni 3188a86609 fix: remove unused import 2026-06-13 21:26:10 +03:00
omni 99b5dbd2d3 update: updated version 2026-06-13 20:00:32 +03:00
omni c87b915ed3 fix: fixed sync needed message vertical alignment 2026-06-13 19:33:07 +03:00
omni 5df2399e84 fix: fixed versions 2026-06-13 19:22:29 +03:00
3 changed files with 25 additions and 32 deletions
+1 -5
View File
@@ -6,11 +6,7 @@ plugins {
android {
namespace = "ru.omni_devel.cards"
compileSdk {
version = release(36) {
minorApiLevel = 1
}
}
compileSdk = 36
defaultConfig {
applicationId = "ru.omni_devel.cards"
+2 -7
View File
@@ -6,17 +6,13 @@ plugins {
android {
namespace = "ru.omni_devel.cards"
compileSdk {
version = release(36) {
minorApiLevel = 1
}
}
compileSdk = 36
defaultConfig {
applicationId = "ru.omni_devel.cards"
minSdk = 30
targetSdk = 36
versionCode = 21 // 1 at end for WearOS
versionCode = 41 // 1 at end for WearOS
versionName = "1.1"
}
@@ -62,6 +58,5 @@ dependencies {
implementation(libs.zxing.core)
implementation(libs.zxing.android)
implementation(libs.material)
implementation("com.google.android.gms:play-services-wearable:18.1.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
}
@@ -1,5 +1,6 @@
package ru.omni_devel.cards.presentation
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
@@ -36,29 +37,30 @@ class MainActivity : ComponentActivity() {
}
}
@SuppressLint("UnusedBoxWithConstraintsScope")
@Composable
fun App(cards: List<CardInfo>) {
BoxWithConstraints(modifier = Modifier.fillMaxSize()) {
val context = LocalContext.current
TransformingLazyColumn(
modifier = Modifier.fillMaxSize(),
contentPadding = PaddingValues(
top = maxHeight * 0.4f,
bottom = maxHeight * 0.4f
),
verticalArrangement = Arrangement.spacedBy(8.dp)
) {
BoxWithConstraints(modifier = Modifier.fillMaxSize()) {
val topBottomPadding = maxHeight * 0.4f
if (cards.isEmpty()) {
item {
Box(
modifier = Modifier.fillMaxSize(),
contentAlignment = Alignment.Center
) {
Text("Sync with mobile APP to get started")
}
}
} else {
TransformingLazyColumn(
modifier = Modifier.fillMaxSize(),
contentPadding = PaddingValues(
top = topBottomPadding,
bottom = topBottomPadding
),
verticalArrangement = Arrangement.spacedBy(8.dp)
) {
for (card in cards) {
item {
Button(