build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'//这里添加
  3. apply plugin: 'kotlin-android-extensions'//这里添加
  4. apply plugin: 'kotlin-kapt'
  5. android {
  6. compileSdkVersion 26
  7. defaultConfig {
  8. minSdkVersion 21
  9. targetSdkVersion 26
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"//主要是这两个依赖
  23. api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"//主要是这两个依赖
  24. implementation fileTree(dir: 'libs', include: ['*.jar'])
  25. implementation 'com.android.support:appcompat-v7:26.1.0'
  26. testImplementation 'junit:junit:4.12'
  27. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  28. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  29. implementation project(':common')
  30. // implementation "com.github.gongbox:fss_common:$fss_version"
  31. }