Allow OS notifications
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user