73 lines
1.9 KiB
Groovy
73 lines
1.9 KiB
Groovy
group = 'io.flutter.plugins.webviewflutter'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '2.2.10'
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:8.12.1'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
rootProject.allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
namespace = "io.flutter.plugins.webviewflutter"
|
|
compileSdk = flutter.compileSdkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
lint {
|
|
checkAllWarnings = true
|
|
warningsAsErrors = true
|
|
disable 'AndroidGradlePluginVersion', 'InvalidPackage', 'GradleDependency', 'NewerVersionAvailable'
|
|
baseline = file("lint-baseline.xml")
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.annotation:annotation:1.9.1")
|
|
implementation("androidx.webkit:webkit:1.14.0")
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("org.mockito:mockito-core:5.19.0")
|
|
testImplementation("org.mockito:mockito-inline:5.2.0")
|
|
testImplementation("androidx.test:core:1.7.0")
|
|
}
|
|
|
|
testOptions {
|
|
unitTests.includeAndroidResources = true
|
|
unitTests.returnDefaultValues = true
|
|
unitTests.all {
|
|
testLogging {
|
|
events "passed", "skipped", "failed", "standardOut", "standardError"
|
|
outputs.upToDateWhen {false}
|
|
showStandardStreams = true
|
|
}
|
|
}
|
|
}
|
|
}
|