Skip to content

Commit d460499

Browse files
committed
chore: Update Android NDK and enable desugaring
Updates the Android NDK version to 27.0.12077973 and enables core library desugaring for Java 11 compatibility. Also includes minor formatting changes in `app_router.gr.dart`.
1 parent 80dc31c commit d460499

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

sample_app/android/app/build.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ plugins {
88
android {
99
namespace = "io.getstream.feeds.flutter.sample"
1010
compileSdk = flutter.compileSdkVersion
11-
ndkVersion = flutter.ndkVersion
11+
ndkVersion = "27.0.12077973"
1212

1313
compileOptions {
1414
sourceCompatibility = JavaVersion.VERSION_11
1515
targetCompatibility = JavaVersion.VERSION_11
16+
isCoreLibraryDesugaringEnabled = true
1617
}
1718

1819
kotlinOptions {
1920
jvmTarget = JavaVersion.VERSION_11.toString()
2021
}
2122

2223
defaultConfig {
23-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2424
applicationId = "io.getstream.feeds.flutter.sample"
25-
// You can update the following values to match your application needs.
26-
// For more information, see: https://flutter.dev/to/review-gradle-config.
2725
minSdk = flutter.minSdkVersion
2826
targetSdk = flutter.targetSdkVersion
2927
versionCode = flutter.versionCode
@@ -42,3 +40,7 @@ android {
4240
flutter {
4341
source = "../.."
4442
}
43+
44+
dependencies {
45+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
46+
}

sample_app/lib/navigation/app_router.gr.dart

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)