mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
46 lines
1.5 KiB
Groovy
46 lines
1.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.facebook.testing.screenshot'
|
|
|
|
screenshots {
|
|
failureDir = "${rootProject.buildDir}/reports/diff_failures"
|
|
recordDir = "${rootProject.projectDir}/reports/screenshots"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
defaultConfig {
|
|
applicationId "dev.flutter.scenarios"
|
|
minSdkVersion 18
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "dev.flutter.TestRunner"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
sourceSets {
|
|
main.assets.srcDirs += "${project.buildDir}/assets"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'com.facebook.testing.screenshot:layout-hierarchy-common:0.12.0'
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
implementation 'androidx.lifecycle:lifecycle-common-java8:2.2.0-alpha01'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test:runner:1.2.0'
|
|
androidTestImplementation 'androidx.test:rules:1.2.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
}
|