build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. release {
  5. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  6. storePassword "111111"
  7. keyAlias "rk3128"
  8. keyPassword "111111"
  9. }
  10. debug {
  11. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  12. storePassword "111111"
  13. keyAlias "rk3128"
  14. keyPassword "111111"
  15. }
  16. }
  17. compileSdkVersion 26
  18. buildToolsVersion "26.0.1"
  19. defaultConfig {
  20. applicationId "com.wdkl.callingdoctor"
  21. minSdkVersion 15
  22. targetSdkVersion 26
  23. versionCode 1
  24. versionName "1.25"
  25. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  26. multiDexEnabled true
  27. buildConfigField "String", "BUILD_TIME", getDate()
  28. }
  29. buildTypes {
  30. debug {
  31. signingConfig signingConfigs.debug
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  34. }
  35. release {
  36. signingConfig signingConfigs.debug
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. sourceSets {
  42. main {
  43. jniLibs.srcDirs = ['libs']
  44. }
  45. androidTest {
  46. }
  47. }
  48. }
  49. //获取编译日期
  50. String getDate() {
  51. Date date = new Date();
  52. String dates = "\""+date.format("yyyy年MM月dd日", TimeZone.getTimeZone("UTC"))+"\"";
  53. return dates;
  54. }
  55. allprojects {
  56. repositories {
  57. jcenter()
  58. }
  59. gradle.projectsEvaluated {
  60. tasks.withType(JavaCompile) {
  61. options.compilerArgs << '-Xbootclasspath/p:app/libs/frame.jar'
  62. }
  63. }
  64. }
  65. dependencies {
  66. compile fileTree(include: ['*.jar'], dir: 'libs')
  67. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  68. exclude group: 'com.android.support', module: 'support-annotations'
  69. })
  70. // 适配
  71. //hongyang okhttp
  72. //gson
  73. compile 'com.android.support:appcompat-v7:24.2.0'
  74. compile 'com.android.support:support-v4:24.2.0'
  75. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  76. compile 'com.android.support:recyclerview-v7:24.2.0'
  77. compile 'org.greenrobot:eventbus:3.0.0'
  78. compile 'com.jakewharton:butterknife:7.0.1'
  79. compile 'com.zhy:autolayout:1.4.3'
  80. compile 'com.zhy:okhttputils:2.6.2'
  81. compile 'com.google.code.gson:gson:2.7'
  82. compile 'com.github.anrwatchdog:anrwatchdog:1.3.+'
  83. testCompile 'junit:junit:4.12'
  84. //seekbar
  85. compile 'org.adw.library:discrete-seekbar:1.0.1'
  86. compile 'com.android.support:cardview-v7:23.2.0'
  87. compile 'com.github.anrwatchdog:anrwatchdog:1.3.+'
  88. compile 'com.jude:easyrecyclerview:4.4.2'
  89. // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3'
  90. // releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3'
  91. compile project(path: ':nurseMainLib')
  92. compile project(':AmDemo_R')
  93. provided files('src/main/jniLibs/frame.jar')
  94. }