forked from omni/OmniCards
feat: added color pick for cards
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
kotlin("plugin.serialization") version "2.2.20"
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -14,7 +13,6 @@ android {
|
||||
targetSdk = 36
|
||||
versionCode = 41 // 1 at end for WearOS
|
||||
versionName = "1.1"
|
||||
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
|
||||
@@ -8,11 +8,9 @@ import androidx.activity.compose.setContent
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
@@ -22,6 +20,7 @@ import androidx.compose.ui.unit.dp
|
||||
import androidx.wear.compose.foundation.lazy.TransformingLazyColumn
|
||||
import androidx.wear.compose.material3.Button
|
||||
import androidx.wear.compose.material3.Text
|
||||
import com.google.zxing.BarcodeFormat
|
||||
|
||||
class MainActivity : ComponentActivity() {
|
||||
private lateinit var db: DbHelper
|
||||
@@ -32,7 +31,15 @@ class MainActivity : ComponentActivity() {
|
||||
db = DbHelper(this, null)
|
||||
|
||||
setContent {
|
||||
App(db.getCards())
|
||||
// App(db.getCards())
|
||||
App(listOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10).map {
|
||||
CardInfo(
|
||||
id = it,
|
||||
name = "Card #$it",
|
||||
codeType = BarcodeFormat.QR_CODE,
|
||||
codeValue = "000$it"
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user