build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apply plugin: 'com.android.library'
  2. //apply plugin: 'com.novoda.bintray-release'
  3. def siteUrl = 'https://github.com/ckrgithub/PageRecyclerView'
  4. //publish {
  5. // repoName = 'Page'
  6. // userOrg = 'ckrjfrog'
  7. // groupId = 'ckrjfrog.Page'
  8. // artifactId = 'PageView'
  9. // publishVersion = rootProject.pageViewConfig.publishVersion
  10. // desc = '自定义recyclerView实现分页功能'
  11. // website = siteUrl
  12. //}
  13. tasks.withType(Javadoc) {
  14. options.addStringOption('Xdoclint:none', '-quiet')
  15. options.addStringOption('encoding', 'UTF-8')
  16. options.addStringOption('charSet', 'UTF-8')
  17. }
  18. android {
  19. compileSdkVersion 30
  20. buildToolsVersion "30.0.3"
  21. defaultConfig {
  22. minSdkVersion 22
  23. targetSdkVersion 30
  24. versionCode 113
  25. versionName "1.2.13"
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  31. buildConfigField("boolean","isDebug","false")
  32. }
  33. debug{
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. buildConfigField("boolean","isDebug","true")
  37. }
  38. }
  39. lintOptions {
  40. abortOnError false
  41. }
  42. }
  43. dependencies {
  44. implementation fileTree(dir: 'libs', include: ['*.jar'])
  45. implementation 'androidx.appcompat:appcompat:1.5.1'
  46. implementation("androidx.recyclerview:recyclerview:1.2.1")
  47. }