Allow OS notifications

This commit is contained in:
2026-02-23 22:19:23 +08:00
parent 98355c3707
commit cc6fda0e79
11 changed files with 398 additions and 4 deletions
+11
View File
@@ -13,6 +13,9 @@ android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
// required by flutter_local_notifications and other libraries using
// Java 8+ APIs at runtime
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
@@ -37,6 +40,14 @@ android {
signingConfig = signingConfigs.getByName("debug")
}
}
// allow desugaring of Java 8+ library APIs
}
// dependencies section for additional compile-only libraries
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}
flutter {
+4
View File
@@ -2,6 +2,10 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- Required on Android 13+ to post notifications. Without this the system
will automatically block notifications and the user cannot enable them
from settings. -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<application
android:label="tasq"
android:name="${applicationName}"