diff --git a/apps/giga-wear/client/build.gradle.kts b/apps/giga-wear/client/build.gradle.kts index fb13cca..fc299dd 100644 --- a/apps/giga-wear/client/build.gradle.kts +++ b/apps/giga-wear/client/build.gradle.kts @@ -43,6 +43,7 @@ dependencies { implementation(libs.androidx.watchface.complications.data.source.ktx) implementation(libs.androidx.wear.tooling.preview) implementation(libs.guava) + implementation(libs.androidx.watchface) implementation(libs.play.services.wearable) implementation(libs.ui.compose) debugImplementation(libs.androidx.compose.ui.test.manifest) diff --git a/apps/giga-wear/client/src/main/AndroidManifest.xml b/apps/giga-wear/client/src/main/AndroidManifest.xml index 2d1e0f3..488d441 100644 --- a/apps/giga-wear/client/src/main/AndroidManifest.xml +++ b/apps/giga-wear/client/src/main/AndroidManifest.xml @@ -32,10 +32,18 @@ android:theme="@style/MainActivityTheme.Starting"> - + + + + + diff --git a/apps/giga-wear/client/src/main/kotlin/ru/shadowsparky/gigawear/presentation/main/MainScreen.kt b/apps/giga-wear/client/src/main/kotlin/ru/shadowsparky/gigawear/presentation/main/MainScreen.kt index 55f9039..9727481 100644 --- a/apps/giga-wear/client/src/main/kotlin/ru/shadowsparky/gigawear/presentation/main/MainScreen.kt +++ b/apps/giga-wear/client/src/main/kotlin/ru/shadowsparky/gigawear/presentation/main/MainScreen.kt @@ -9,6 +9,6 @@ import androidx.compose.ui.Modifier @Composable fun MainScreen(component: MainComponent) { Box(modifier = Modifier.safeContentPadding()) { - Text("MainScreen $component") + Text("Тут пока что ничего нет. Совсем ничего. Приложение в активной разработке") } } diff --git a/apps/giga-wear/client/src/main/res/drawable/piggy.xml b/apps/giga-wear/client/src/main/res/drawable/piggy.xml new file mode 100644 index 0000000..2951db3 --- /dev/null +++ b/apps/giga-wear/client/src/main/res/drawable/piggy.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/giga-wear/client/src/main/res/drawable/tile_preview.png b/apps/giga-wear/client/src/main/res/drawable/tile_preview.png deleted file mode 100644 index 6cba3c3..0000000 Binary files a/apps/giga-wear/client/src/main/res/drawable/tile_preview.png and /dev/null differ diff --git a/apps/giga-wear/client/src/main/res/raw/watchface.xml b/apps/giga-wear/client/src/main/res/raw/watchface.xml new file mode 100644 index 0000000..9f7656a --- /dev/null +++ b/apps/giga-wear/client/src/main/res/raw/watchface.xml @@ -0,0 +1,621 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [WEATHER.IS_AVAILABLE] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + — + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/giga-wear/client/src/main/res/xml/watch_face_info.xml b/apps/giga-wear/client/src/main/res/xml/watch_face_info.xml new file mode 100644 index 0000000..4650b99 --- /dev/null +++ b/apps/giga-wear/client/src/main/res/xml/watch_face_info.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d5b448d..e54e48b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -50,6 +50,7 @@ koin-core = "4.2.2" koin-compiler = "1.1.0" kotlin-dsl-version = "5.1.2" coreKtx = "1.19.0" +watchface = "1.2.1" workRuntimeKtx = "2.11.2" krpc = "0.10.3" core = "1.19.0" @@ -82,6 +83,7 @@ androidx-media3-ui = { module = "androidx.media3:media3-ui", version.ref = "medi androidx-media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "media3" } androidx-sqlite-framework = { module = "androidx.sqlite:sqlite-framework", version.ref = "sqlite" } androidx-sqlite = { module = "androidx.sqlite:sqlite", version.ref = "sqlite" } +androidx-watchface = { module = "androidx.wear.watchface:watchface", version.ref = "watchface" } androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "workRuntimeKtx" } coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil-compose" } com-android-application-gradle-plugin = { module = "com.android.application:com.android.application.gradle.plugin", version.ref = "agp" }