build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. apply plugin: 'com.android.application'
  2. android {
  3. // wuyq add for sign begin
  4. signingConfigs {
  5. release {
  6. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  7. storePassword "111111"
  8. keyAlias "rk3128"
  9. keyPassword "111111"
  10. }
  11. debug {
  12. storeFile file("keystore_wuyuqing_3128/rk3128.jks")
  13. storePassword "111111"
  14. keyAlias "rk3128"
  15. keyPassword "111111"
  16. }
  17. }
  18. // wuyq add for sign end
  19. compileSdkVersion 26
  20. buildToolsVersion "26.0.1"
  21. defaultConfig {
  22. applicationId "com.wdkl.callingbed2"
  23. minSdkVersion 15
  24. targetSdkVersion 26
  25. versionCode 1
  26. versionName "1.38"
  27. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  28. buildConfigField "String", "BUILD_TIME", getDate()
  29. }
  30. buildTypes {
  31. // wuyq add for sign begin
  32. debug {
  33. signingConfig signingConfigs.debug
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. }
  37. // wuyq add for sign end
  38. release {
  39. //wuyq add for sign begin
  40. signingConfig signingConfigs.release
  41. //wuyq add for sign end
  42. minifyEnabled false
  43. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  44. }
  45. }
  46. }
  47. //获取编译日期
  48. String getDate() {
  49. Date date = new Date();
  50. String dates = "\""+date.format("yyyy_MM_dd", TimeZone.getTimeZone("UTC"))+"\"";
  51. return dates;
  52. }
  53. dependencies {
  54. compile fileTree(include: ['*.jar'], dir: 'libs')
  55. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  56. exclude group: 'com.android.support', module: 'support-annotations'
  57. })
  58. compile 'com.android.support:appcompat-v7:24.2.0'
  59. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  60. testCompile 'junit:junit:4.12'
  61. compile 'com.android.support:recyclerview-v7:24.2.0'
  62. compile 'org.greenrobot:eventbus:3.0.0'
  63. compile 'com.jakewharton:butterknife:7.0.1'
  64. compile 'com.android.support:design:23.4.0'
  65. // 适配
  66. compile 'com.zhy:autolayout:1.4.3'
  67. //hongyang okhttp
  68. compile 'com.zhy:okhttputils:2.6.2'
  69. //串口依赖库
  70. compile project(path: ':bedlib')
  71. //gson
  72. compile 'com.google.code.gson:gson:2.7'
  73. //图片框架
  74. compile 'com.squareup.picasso:picasso:2.5.2'
  75. //文字跳动
  76. compile 'net.frakbot:jumpingbeans:1.3.0'
  77. compile files('libs/core-3.2.1.jar')
  78. compile project(':AmDemo_R')
  79. compile 'com.android.support:cardview-v7:26+'
  80. compile 'com.github.anrwatchdog:anrwatchdog:1.3.+'
  81. // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3'
  82. // releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3'
  83. }
  84. String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
  85. if (SDK_DIR == null) {
  86. Properties props = new Properties()
  87. props.load(new FileInputStream(project.rootProject.file("local.properties")))
  88. SDK_DIR = props.get('sdk.dir');
  89. }
  90. dependencies {
  91. provided files("${SDK_DIR}/platforms/android-25/data/layoutlib.jar")
  92. }