| group 'io.flutter.plugins.imagepicker' |
| version '1.0-SNAPSHOT' |
| |
| buildscript { |
| repositories { |
| google() |
| mavenCentral() |
| } |
| |
| dependencies { |
| classpath 'com.android.tools.build:gradle:7.2.1' |
| } |
| } |
| |
| rootProject.allprojects { |
| repositories { |
| google() |
| mavenCentral() |
| } |
| } |
| |
| apply plugin: 'com.android.library' |
| |
| android { |
| // Conditional for compatibility with AGP <4.2. |
| if (project.android.hasProperty("namespace")) { |
| namespace 'io.flutter.plugins.imagepicker' |
| } |
| compileSdkVersion 33 |
| |
| defaultConfig { |
| minSdkVersion 16 |
| testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| } |
| lintOptions { |
| checkAllWarnings true |
| warningsAsErrors true |
| disable 'AndroidGradlePluginVersion', 'InvalidPackage', 'GradleDependency' |
| } |
| dependencies { |
| implementation 'androidx.core:core:1.10.1' |
| implementation 'androidx.annotation:annotation:1.3.0' |
| implementation 'androidx.exifinterface:exifinterface:1.3.6' |
| implementation 'androidx.activity:activity:1.7.2' |
| // org.jetbrains.kotlin:kotlin-bom artifact purpose is to align kotlin stdlib and related code versions. |
| // See: https://youtrack.jetbrains.com/issue/KT-55297/kotlin-stdlib-should-declare-constraints-on-kotlin-stdlib-jdk8-and-kotlin-stdlib-jdk7 |
| implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.22")) |
| |
| testImplementation 'junit:junit:4.13.2' |
| testImplementation 'org.mockito:mockito-core:5.1.1' |
| testImplementation 'androidx.test:core:1.4.0' |
| testImplementation "org.robolectric:robolectric:4.10.3" |
| } |
| |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_8 |
| targetCompatibility JavaVersion.VERSION_1_8 |
| } |
| |
| testOptions { |
| unitTests.includeAndroidResources = true |
| unitTests.returnDefaultValues = true |
| unitTests.all { |
| testLogging { |
| events "passed", "skipped", "failed", "standardOut", "standardError" |
| outputs.upToDateWhen {false} |
| showStandardStreams = true |
| } |
| } |
| } |
| } |