diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 780bb88..5cdf01d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.maary.yetanothercalendarwidget" minSdk = 31 targetSdk = 34 - versionCode = 2 - versionName = "1.0Alpha.2" + versionCode = 3 + versionName = "1.0Alpha.3" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4bcf4f1..28ae5eb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,6 +20,9 @@ android:name=".MainActivity" android:exported="true" android:theme="@style/Theme.YetAnotherCalendarWidget"> + + + @@ -97,11 +102,6 @@ fun CalendarsListScreen() { calendars.value[index], onItemClick = { coroutineScope.launch { -// runBlocking { -// preferenceRepository.setCalendars(calendars.value[index].id.toString()) -// } -// Log.v("CAS", calendars.value[index].id.toString()) -// (context as? Activity)?.finish() calendars.value[index].id?.let { viewModel.selectCalendar(it) } } } @@ -132,8 +132,8 @@ fun CalendarItem( } -@Preview(showSystemUi = true) -@Composable -fun CalendarsListScreenPreview() { - CalendarsListScreen() -} \ No newline at end of file +//@Preview(showSystemUi = true) +//@Composable +//fun CalendarsListScreenPreview() { +// CalendarsListScreen() +//} \ No newline at end of file diff --git a/app/src/main/res/xml/calendar_widget_info.xml b/app/src/main/res/xml/calendar_widget_info.xml index 276a113..0ae1e36 100644 --- a/app/src/main/res/xml/calendar_widget_info.xml +++ b/app/src/main/res/xml/calendar_widget_info.xml @@ -9,7 +9,7 @@ android:updatePeriodMillis="10800000" android:resizeMode="horizontal|vertical" android:widgetCategory="home_screen" - android:widgetFeatures="reconfigurable|configuration_optional" + android:widgetFeatures="reconfigurable" android:configure="com.maary.yetanothercalendarwidget.MainActivity"> diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5d106e7..a314e3b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] agp = "8.4.0" datastorePreferences = "1.1.1" -glanceAppwidget = "1.1.0-beta02" +glanceAppwidget = "1.1.0-rc01" hiltAndroid = "2.51.1" hiltAndroidCompiler = "2.51.1" kotlin = "1.9.23" @@ -9,10 +9,10 @@ coreKtx = "1.13.1" junit = "4.13.2" junitVersion = "1.1.5" espressoCore = "3.5.1" -lifecycleRuntimeKtx = "2.7.0" +lifecycleRuntimeKtx = "2.8.0" activityCompose = "1.9.0" composeBom = "2024.05.00" -lifecycleViewmodelCompose = "2.7.0" +lifecycleViewmodelCompose = "2.8.0" [libraries] androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }