build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.getkeepsafe.dexcount'
  3. android {
  4. compileSdkVersion rootProject.ext.android.compileSdkVersion
  5. buildToolsVersion rootProject.ext.android.buildToolsVersion
  6. defaultConfig {
  7. applicationId "com.yingtang.devicemanager"
  8. minSdkVersion rootProject.ext.android.minSdkVersion
  9. targetSdkVersion rootProject.ext.android.targetSdkVersion
  10. versionCode 1
  11. versionName "v1.0"
  12. multiDexEnabled true
  13. ndk {
  14. abiFilters "armeabi", "armeabi-v7a", "x86", "mips", "x86_64", "mips64"
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. zipAlignEnabled true //Zipalign优化
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. useLibrary 'org.apache.http.legacy'
  29. lintOptions {
  30. checkReleaseBuilds false
  31. abortOnError false
  32. }
  33. sourceSets {
  34. main {
  35. jniLibs.srcDirs = ['src/main/jniLibs']
  36. }
  37. }
  38. packagingOptions {
  39. exclude 'META-INF/LICENSE.txt'
  40. exclude 'META-INF/NOTICE.txt'
  41. }
  42. signingConfigs {
  43. pda_storage {
  44. keyAlias 'key_dm'
  45. keyPassword 'abc123'
  46. storeFile file('C:/sigin/dm.jks')
  47. storePassword 'abc123'
  48. }
  49. }
  50. }
  51. repositories {
  52. flatDir {
  53. dirs 'libs'
  54. }
  55. }
  56. buildscript {
  57. repositories {
  58. mavenCentral()
  59. }
  60. dependencies {
  61. classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
  62. }
  63. }
  64. dependencies {
  65. api fileTree(include: ['*.jar'], dir: 'libs')
  66. testImplementation deps.junit
  67. implementation deps.appcompatV7
  68. implementation deps.supportV4
  69. implementation deps.design
  70. implementation(deps.stetho) {
  71. force = true
  72. }
  73. implementation deps.jodatime
  74. implementation deps.systembartint
  75. implementation deps.photoView
  76. implementation deps.tagGroup
  77. // implementation deps.analytics
  78. implementation deps.activityOnCrash
  79. implementation deps.stickyListHeaders
  80. implementation deps.stickyGridHeaders
  81. implementation deps.materialDialogs
  82. implementation deps.okhttp
  83. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  84. // api project(':common')
  85. // api project(':apptasks')
  86. //api project(':appmessages')
  87. // api project(':network')
  88. // api project(':imageload')
  89. //api project(':applogin')
  90. // api project(':appcontact')
  91. //api project(':appme')
  92. api project(':appworks')
  93. //api project(':appbooking')
  94. //api project(':appmusic')
  95. //api project(':apputils')
  96. // implementation(name: 'autoupdatesdk-release', ext: 'aar')
  97. }
  98. dexcount {
  99. format = "json"
  100. includeClasses = false
  101. includeFieldCount = true
  102. includeTotalMethodCount = false
  103. orderByMethodCount = false
  104. verbose = false
  105. maxTreeDepth = Integer.MAX_VALUE
  106. teamCityIntegration = false
  107. enableForInstantRun = false
  108. }