From e5bbc25c890f80179f88b904dd22a02d53e8b713 Mon Sep 17 00:00:00 2001 From: Mboehmlaender <41646409+Mboehmlaender@users.noreply.github.com> Date: Sat, 25 Jul 2026 20:51:55 +0200 Subject: [PATCH] first build --- android/Get | 0 android/Manifest | 0 android/Run | 0 android/Task | 0 .../1.json | 109 ++++++++++++++++++ android/app/src/debug/AndroidManifest.xml | 10 +- .../training/ui/tracker/TrackerScreen.kt | 1 - .../training/domain/FixtureContractTest.kt | 9 +- 8 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 android/Get create mode 100644 android/Manifest create mode 100644 android/Run create mode 100644 android/Task create mode 100644 android/app/schemas/de.drazz.boehmitools.training.data.local.TrainingDatabase/1.json diff --git a/android/Get b/android/Get new file mode 100644 index 0000000..e69de29 diff --git a/android/Manifest b/android/Manifest new file mode 100644 index 0000000..e69de29 diff --git a/android/Run b/android/Run new file mode 100644 index 0000000..e69de29 diff --git a/android/Task b/android/Task new file mode 100644 index 0000000..e69de29 diff --git a/android/app/schemas/de.drazz.boehmitools.training.data.local.TrainingDatabase/1.json b/android/app/schemas/de.drazz.boehmitools.training.data.local.TrainingDatabase/1.json new file mode 100644 index 0000000..50d78ec --- /dev/null +++ b/android/app/schemas/de.drazz.boehmitools.training.data.local.TrainingDatabase/1.json @@ -0,0 +1,109 @@ +{ + "formatVersion": 1, + "database": { + "version": 1, + "identityHash": "1f4ec396d94258c311db7b15c2879062", + "entities": [ + { + "tableName": "cache_entries", + "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `json` TEXT NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`key`))", + "fields": [ + { + "fieldPath": "key", + "columnName": "key", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "json", + "columnName": "json", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "updatedAt", + "columnName": "updatedAt", + "affinity": "INTEGER", + "notNull": true + } + ], + "primaryKey": { + "autoGenerate": false, + "columnNames": [ + "key" + ] + } + }, + { + "tableName": "pending_mutations", + "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `kind` TEXT NOT NULL, `planId` TEXT NOT NULL, `sessionKey` TEXT NOT NULL, `expectedRevision` INTEGER NOT NULL, `payloadJson` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `state` TEXT NOT NULL, `lastError` TEXT NOT NULL)", + "fields": [ + { + "fieldPath": "id", + "columnName": "id", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "kind", + "columnName": "kind", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "planId", + "columnName": "planId", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "sessionKey", + "columnName": "sessionKey", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "expectedRevision", + "columnName": "expectedRevision", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "payloadJson", + "columnName": "payloadJson", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "createdAt", + "columnName": "createdAt", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "state", + "columnName": "state", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "lastError", + "columnName": "lastError", + "affinity": "TEXT", + "notNull": true + } + ], + "primaryKey": { + "autoGenerate": true, + "columnNames": [ + "id" + ] + } + } + ], + "setupQueries": [ + "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", + "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1f4ec396d94258c311db7b15c2879062')" + ] + } +} \ No newline at end of file diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index f7d35a9..f17da88 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,6 +1,10 @@ - + + - + android:usesCleartextTraffic="true" + tools:replace="android:networkSecurityConfig,android:usesCleartextTraffic" /> + + \ No newline at end of file diff --git a/android/app/src/main/java/de/drazz/boehmitools/training/ui/tracker/TrackerScreen.kt b/android/app/src/main/java/de/drazz/boehmitools/training/ui/tracker/TrackerScreen.kt index f16150e..00de35e 100644 --- a/android/app/src/main/java/de/drazz/boehmitools/training/ui/tracker/TrackerScreen.kt +++ b/android/app/src/main/java/de/drazz/boehmitools/training/ui/tracker/TrackerScreen.kt @@ -12,7 +12,6 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width -import androidx.compose.foundation.layout.weight import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.selection.selectable import androidx.compose.foundation.verticalScroll diff --git a/android/app/src/test/java/de/drazz/boehmitools/training/domain/FixtureContractTest.kt b/android/app/src/test/java/de/drazz/boehmitools/training/domain/FixtureContractTest.kt index c5d6315..874ef46 100644 --- a/android/app/src/test/java/de/drazz/boehmitools/training/domain/FixtureContractTest.kt +++ b/android/app/src/test/java/de/drazz/boehmitools/training/domain/FixtureContractTest.kt @@ -156,7 +156,14 @@ class FixtureContractTest { put("laterality", "bilateral") put("sides_mode", "same") put("sets", 3) - put("values", kotlinx.serialization.json.buildJsonArray { add(8); add(7); add(6) }) + put( + "values", + kotlinx.serialization.json.buildJsonArray { + add(kotlinx.serialization.json.JsonPrimitive(8)) + add(kotlinx.serialization.json.JsonPrimitive(7)) + add(kotlinx.serialization.json.JsonPrimitive(6)) + }, + ) put("left_values", kotlinx.serialization.json.JsonArray(emptyList())) put("right_values", kotlinx.serialization.json.JsonArray(emptyList())) put("weight_kg", 8.0)