build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply from: '../dependencies.gradle'
  4. ext.shard = 'color'
  5. apply from: '../bintrayconfig.gradle'
  6. android {
  7. compileSdkVersion versions.compileSdk
  8. buildToolsVersion versions.buildTools
  9. compileOptions {
  10. if (modulePackageId != null && modulePackageId != '') {
  11. logger.warn('Package for current module: ' + modulePackageId)
  12. kotlinOptions.freeCompilerArgs += ['-module-name', modulePackageId]
  13. } else {
  14. logger.warn('Skipping setting compiler module name, no package to use.')
  15. }
  16. }
  17. defaultConfig {
  18. minSdkVersion versions.minSdk
  19. targetSdkVersion versions.compileSdk
  20. versionCode versions.publishVersionCode
  21. versionName versions.publishVersion
  22. }
  23. sourceSets {
  24. main.res.srcDirs = [
  25. 'src/main/res',
  26. 'src/main/res-public'
  27. ]
  28. }
  29. }
  30. dependencies {
  31. implementation 'androidx.recyclerview:recyclerview:' + versions.androidxRecyclerView
  32. implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:' + versions.kotlin
  33. implementation 'com.afollestad:viewpagerdots:' + versions.dotsIndicator
  34. implementation project(':core')
  35. }
  36. apply from: '../spotless.gradle'