Skip to content

Commit 011adb3

Browse files
authored
android: restore compileSdk version to default (#230)
Flutter's default version is now higher than 31, so we don't need to manually set this anymore: https://github.com/flutter/flutter/blob/5c0c9e9e9ad2eec7dc28b216fa55b8c5bf6d7ad9/packages/flutter_tools/gradle/src/main/kotlin/FlutterExtension.kt#L23 Fixes compilation errors with AGP v8.13: 1. Dependency 'androidx.fragment:fragment:1.7.1' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :webcrypto is currently compiled against android-31. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 36. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on).
1 parent 4e735b1 commit 011adb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply plugin: 'kotlin-android'
2727
android {
2828
namespace 'dev.google.webcrypto'
2929

30-
compileSdkVersion 31
30+
compileSdk = flutter.compileSdkVersion
3131

3232
// We depend on cmake for the native parts.
3333
externalNativeBuild {

0 commit comments

Comments
 (0)