From d67e33a41d15e9bd17cde2ab0089eb9a21bdae91 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 15 Dec 2024 17:11:19 +0800 Subject: [PATCH] :heavy_plus_sign: Add basic android widget deps --- android/app/build.gradle | 13 +++++-- android/app/src/main/AndroidManifest.xml | 12 +++++++ .../solsynth/solian}/MainActivity.kt | 0 .../dev/solsynth/solian/widgets/AppWidget.kt | 36 +++++++++++++++++++ android/app/src/main/res/xml/home_widget.xml | 7 ++++ 5 files changed, 65 insertions(+), 3 deletions(-) rename android/app/src/main/kotlin/{com/example/surface => dev/solsynth/solian}/MainActivity.kt (100%) create mode 100644 android/app/src/main/kotlin/dev/solsynth/solian/widgets/AppWidget.kt create mode 100644 android/app/src/main/res/xml/home_widget.xml diff --git a/android/app/build.gradle b/android/app/build.gradle index d245b45..e3b3bf3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -9,7 +9,17 @@ plugins { id "dev.flutter.flutter-gradle-plugin" } +dependencies { + implementation "androidx.glance:glance:1.1.1" + implementation "androidx.glance:glance-appwidget:1.1.1" + implementation 'androidx.compose.foundation:foundation-layout-android:1.7.6' +} + android { + buildFeatures { + compose true + } + namespace = "dev.solsynth.solian" compileSdk = flutter.compileSdkVersion ndkVersion = "27.0.12077973" @@ -24,10 +34,7 @@ android { } defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "dev.solsynth.solian" - // You can update the following values to match your application needs. - // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4f61729..c1a347f 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -78,7 +78,19 @@ + + + + + + + + +