build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apply plugin: 'com.android.library'
  2. //apply plugin: 'com.github.dcendents.android-maven'
  3. //apply plugin: 'com.novoda.bintray-release'//添加插件
  4. android {
  5. compileSdkVersion 26
  6. defaultConfig {
  7. minSdkVersion 14
  8. targetSdkVersion 26
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  13. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  14. }
  15. }
  16. lintOptions {
  17. abortOnError false
  18. }
  19. }
  20. //allprojects {
  21. // tasks.withType(Javadoc) {//兼容中文字符
  22. // options{
  23. // encoding "UTF-8"
  24. // charSet 'UTF-8'
  25. // links "http://docs.oracle.com/javase/7/docs/api"
  26. // }
  27. // }
  28. //}
  29. //publish {
  30. // userOrg = 'contrarywind'//bintray.com 用户名/组织名 user/org name
  31. // groupId = 'com.contrarywind'//JCenter上显示的路径 path
  32. // artifactId = 'wheelview'//项目名称 project name
  33. // publishVersion = '4.1.0'//版本号 version code
  34. // desc = 'this is a wheelview for android'//项目描述 description
  35. // website = 'https://github.com/Bigkoo/Android-PickerView' //项目网址链接 link
  36. //}
  37. dependencies {
  38. // compile fileTree(include: ['*.jar'], dir: 'libs')
  39. implementation 'com.android.support:support-annotations:28.0.0'
  40. }