build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.novoda.bintray-release'
  3. android {
  4. compileSdkVersion 27
  5. buildToolsVersion "27.0.3"
  6. defaultConfig {
  7. minSdkVersion 15
  8. targetSdkVersion 27
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. lintOptions {
  20. abortOnError false
  21. }
  22. }
  23. dependencies {
  24. implementation fileTree(dir: 'libs', include: ['*.jar'])
  25. androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
  26. exclude group: 'com.android.support', module: 'support-annotations'
  27. })
  28. // implementation 'com.android.support:appcompat-v7:26.+'
  29. testImplementation 'junit:junit:4.12'
  30. }
  31. // YaoWen(43194) modify at 2017/12/23 10:48
  32. // copy from utils
  33. buildscript {
  34. repositories {
  35. jcenter()
  36. }
  37. dependencies {
  38. //在 as更新到2.3.3, 并且 com.android.tools.build:gradle 也更新到 2.3.3之后,
  39. //在Win 7机器上, bintray-release 0.4.0 编译一直错误。类似gradle没有 相关方法的错误。
  40. //当更改到 0.5.0之后,才ok
  41. //目前尚不清楚 在mac下会怎么样。 等待更进一步的测试
  42. // classpath 'com.novoda:bintray-release:0.4.0'
  43. /**
  44. * yaowen (Wen.Yao2@geely.com) time: 18/7/14 14:52
  45. *
  46. * 这个地方还是可能存在风险的。 版本从 0.5.0 -> 0.8.0
  47. */
  48. classpath 'com.novoda:bintray-release:0.8.0'
  49. }
  50. }
  51. publish {
  52. userOrg = 'yaowen369'
  53. groupId = 'com.yaoxiaowen'
  54. artifactId = 'download'
  55. publishVersion = '1.4.1'
  56. desc = 'An Android download tool that supports multi-threading and breakpoint renewal'
  57. website = 'https://github.com/yaowen369/DownloadHelper'
  58. }