From 00678c0ac889bdd8fc22d13a4738a4a6e8813080 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 15 Dec 2024 18:57:54 +0800 Subject: [PATCH] :sparkles: Android featured post widget --- android/app/build.gradle | 2 + android/app/src/main/AndroidManifest.xml | 14 +- .../dev/solsynth/solian/data/SolarPost.kt | 32 +++++ .../solsynth/solian/widgets/CheckInWidget.kt | 3 +- .../solian/widgets/FeaturedPostWidget.kt | 136 +++++++++++++++++- ios/SolarWidget/CheckInWidget.swift | 2 +- 6 files changed, 177 insertions(+), 12 deletions(-) create mode 100644 android/app/src/main/kotlin/dev/solsynth/solian/data/SolarPost.kt diff --git a/android/app/build.gradle b/android/app/build.gradle index 0dee8d9..daf8223 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -14,6 +14,8 @@ dependencies { implementation "androidx.glance:glance-appwidget:1.1.1" implementation 'androidx.compose.foundation:foundation-layout-android:1.7.6' implementation 'com.google.code.gson:gson:2.10.1' + implementation 'io.coil-kt.coil3:coil-compose:3.0.4' + implementation 'io.coil-kt.coil3:coil-network-okhttp:3.0.4' } android { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 8373f81..1bb4623 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -52,12 +52,22 @@ - + - + + + + + + + + + + +