group 'net.touchcapture.qr.flutterqr' version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } rootProject.allprojects { repositories { google() mavenCentral() } } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { // minSdkVersion is determined by Native View. minSdkVersion 20 targetSdkVersion 31 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true } compileOptions { // Flag to enable support for the new language APIs coreLibraryDesugaringEnabled true // Sets Java compatibility to Java 8 sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false } implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.zxing:core:3.4.1' coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' }