1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/add_to_app/plugin/android_using_plugin/app/build.gradle
Reid Baker a8d02fbc7a Update android samples to target/compile android 35 and AGP/Gradle updates (#2587)
- **update AGP and gradle versions**
- **[prebuilt_module] update agp and gradle**
- **[prebuilt_module] targetsdk and jvm compatabiliity**

Fixes flutter/flutter/152374
2025-02-14 16:43:36 +00:00

45 lines
1.2 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdk 35
defaultConfig {
applicationId "dev.flutter.example.androidusingplugin"
minSdkVersion 21
targetSdk 35
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
}
}
// Keep java and kotlin versions in sync.
compileOptions {
sourceCompatibility 17
targetCompatibility 17
}
kotlinOptions {
jvmTarget = '17'
}
namespace 'dev.flutter.example.androidusingplugin'
lint {
checkReleaseBuilds false
}
}
dependencies {
implementation project(':flutter')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}