You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5KB

  1. group 'net.touchcapture.qr.flutterqr'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext.kotlin_version = '1.7.10'
  5. repositories {
  6. google()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:7.2.2'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. }
  13. }
  14. rootProject.allprojects {
  15. repositories {
  16. google()
  17. mavenCentral()
  18. }
  19. }
  20. apply plugin: 'com.android.library'
  21. apply plugin: 'kotlin-android'
  22. android {
  23. namespace 'net.touchcapture.qr.flutterqr'
  24. compileSdkVersion 32
  25. sourceSets {
  26. main.java.srcDirs += 'src/main/kotlin'
  27. }
  28. defaultConfig {
  29. // minSdkVersion is determined by Native View.
  30. minSdkVersion 20
  31. targetSdkVersion 32
  32. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  33. multiDexEnabled true
  34. }
  35. compileOptions {
  36. // Flag to enable support for the new language APIs
  37. // coreLibraryDesugaringEnabled true
  38. // Sets Java compatibility to Java 8
  39. sourceCompatibility JavaVersion.VERSION_17
  40. targetCompatibility JavaVersion.VERSION_17
  41. }
  42. }
  43. dependencies {
  44. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  45. implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
  46. implementation 'androidx.appcompat:appcompat:1.4.2'
  47. implementation 'com.google.zxing:core:3.5.0'
  48. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.0'
  49. }