build.gradle 843 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. group 'com.ouj.amap_location'
  2. version '1.0-SNAPSHOT'
  3. buildscript {
  4. ext.kotlin_version = '1.3.50'
  5. repositories {
  6. google()
  7. jcenter()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:3.5.0'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. }
  13. }
  14. rootProject.allprojects {
  15. repositories {
  16. google()
  17. jcenter()
  18. }
  19. }
  20. apply plugin: 'com.android.library'
  21. apply plugin: 'kotlin-android'
  22. android {
  23. compileSdkVersion 29
  24. sourceSets {
  25. main.java.srcDirs += 'src/main/kotlin'
  26. }
  27. defaultConfig {
  28. minSdkVersion 16
  29. }
  30. lintOptions {
  31. disable 'InvalidPackage'
  32. }
  33. }
  34. dependencies {
  35. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  36. implementation "com.amap.api:location:5.6.1"
  37. }