| group 'io.flutter.plugins.camera' |
| version '1.0-SNAPSHOT' |
| def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"] |
| |
| buildscript { |
| repositories { |
| google() |
| jcenter() |
| } |
| |
| dependencies { |
| classpath 'com.android.tools.build:gradle:3.3.0' |
| } |
| } |
| |
| rootProject.allprojects { |
| repositories { |
| google() |
| jcenter() |
| } |
| } |
| |
| project.getTasks().withType(JavaCompile){ |
| options.compilerArgs.addAll(args) |
| } |
| |
| apply plugin: 'com.android.library' |
| |
| android { |
| compileSdkVersion 28 |
| |
| defaultConfig { |
| minSdkVersion 21 |
| testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| } |
| lintOptions { |
| disable 'InvalidPackage' |
| } |
| compileOptions { |
| sourceCompatibility = '1.8' |
| targetCompatibility = '1.8' |
| } |
| dependencies { |
| implementation 'androidx.annotation:annotation:1.0.0' |
| implementation 'androidx.core:core:1.0.0' |
| } |
| testOptions { |
| unitTests.returnDefaultValues = true |
| } |
| } |
| |
| dependencies { |
| testImplementation 'junit:junit:4.12' |
| } |