70 lines
2.0 KiB
Groovy
70 lines
2.0 KiB
Groovy
plugins {
|
|
id "com.android.application"
|
|
id "org.jetbrains.kotlin.android"
|
|
id "dev.flutter.flutter-gradle-plugin"
|
|
}
|
|
|
|
def localProperties = new Properties()
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
if (localPropertiesFile.exists()) {
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
localProperties.load(reader)
|
|
}
|
|
}
|
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
if (flutterVersionCode == null) {
|
|
flutterVersionCode = '1'
|
|
}
|
|
|
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
if (flutterVersionName == null) {
|
|
flutterVersionName = '1.0'
|
|
}
|
|
|
|
android {
|
|
namespace = "io.flutter.plugins.videoplayerexample"
|
|
compileSdk = flutter.compileSdkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "io.flutter.plugins.videoplayerexample"
|
|
minSdkVersion flutter.minSdkVersion
|
|
targetSdkVersion flutter.targetSdkVersion
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionName flutterVersionName
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// TODO: Add your own signing config for the release build.
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
signingConfig = signingConfigs.debug
|
|
}
|
|
}
|
|
lint {
|
|
disable 'InvalidPackage'
|
|
}
|
|
}
|
|
|
|
flutter {
|
|
source = '../..'
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("androidx.test.ext:junit:1.2.1")
|
|
testImplementation("com.google.truth:truth:1.1.3")
|
|
testImplementation("junit:junit:4.13")
|
|
testImplementation("org.robolectric:robolectric:4.16")
|
|
testImplementation("org.mockito:mockito-core:5.17.0")
|
|
androidTestImplementation("androidx.test:runner:1.1.1")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.1")
|
|
implementation(project(':espresso'))
|
|
api("androidx.test:core:1.2.0")
|
|
}
|