Camille Simon 0619de0107 Upgrade Engine Android SDK to 35 (flutter/engine#53574)
**REVIEW BUT DO NOT MERGE:** Will merge after https://github.com/flutter/buildroot/pull/870 lands.

1: Updates engine to use Android 35. Part of https://github.com/flutter/flutter/issues/150215.
Engine step of https://github.com/flutter/flutter/blob/master/docs/platforms/android/Upgrading-Engine's-Android-API-version.md.

2: Updates test runner AGP version to 8.5, engine Gradle version to 8.9 to accommodate update.

3: Fixes lint and suppresses deprecation warnings caused by the update. None of the deprecations are unknown by the team (they are handled in the code), but the tests emitted warnings.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-07-24 16:54:38 +00:00

65 lines
1.6 KiB
Groovy

// This file only exists to provide IDE support to Android Studio.
//
// See ./README.md for details.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.4.2"
}
}
repositories {
google()
mavenCentral()
}
apply plugin: "com.android.library"
android {
compileSdk 35
defaultConfig {
minSdkVersion 21
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs './'
java.include './io.flutter/**'
test {
java.srcDir './test'
java.include './test/io.flutter/**'
}
}
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
dependencies {
implementation fileTree(include: ["*.jar"], dir: "../../../../flutter/third_party/android_embedding_dependencies/lib/")
// These dependencies should be kept in line with those in the ./test_runner/build.gradle
implementation "androidx.test:core:1.4.0"
implementation "com.google.android.play:core:1.8.0"
implementation "com.ibm.icu:icu4j:69.1"
implementation "org.robolectric:robolectric:4.12.1"
implementation "junit:junit:4.13.2"
implementation "androidx.test.ext:junit:1.1.4-alpha07"
def mockitoVersion = "4.7.0"
implementation "org.mockito:mockito-core:$mockitoVersion"
implementation "org.mockito:mockito-inline:$mockitoVersion"
implementation "org.mockito:mockito-android:$mockitoVersion"
}
}