build.gradle 757 B

1234567891011121314151617181920212223242526272829303132
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 28
  6. defaultConfig {
  7. minSdkVersion 16
  8. targetSdkVersion 28
  9. versionCode 1
  10. versionName "1.0"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version") {
  21. exclude module: 'annotations'
  22. }
  23. }
  24. // jcenter 上传(这个要在底部)
  25. // 上传需要执行此任务 IDE -> gradle-> Tasks/publishing/bintrayUpload
  26. apply from: file("publish.gradle")