build.gradle 937 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. group 'com.example.native_vision'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext.kotlin_version = '1.6.10'
  5. repositories {
  6. google()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:7.1.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. compileSdkVersion 31
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. sourceSets {
  32. main.java.srcDirs += 'src/main/kotlin'
  33. }
  34. defaultConfig {
  35. minSdkVersion 16
  36. }
  37. }
  38. dependencies {
  39. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  40. }