build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  29. buildConfigField("boolean","isDebug","false")
  30. }
  31. debug{
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  34. buildConfigField("boolean","isDebug","true")
  35. }
  36. }
  37. namespace 'com.ckr.pageview'
  38. lint {
  39. abortOnError false
  40. }
  41. }
  42. dependencies {
  43. implementation fileTree(dir: 'libs', include: ['*.jar'])
  44. implementation 'androidx.appcompat:appcompat:1.5.1'
  45. implementation("androidx.recyclerview:recyclerview:1.2.1")
  46. }