build.gradle 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. apply plugin: 'com.android.application'
  2. //apply plugin: 'kotlin-android'
  3. //apply plugin: 'kotlin-android-extensions'
  4. android {
  5. signingConfigs {
  6. release {
  7. storeFile file('../ime.jks')
  8. storePassword '123456'
  9. keyAlias 'ime'
  10. keyPassword '123456'
  11. }
  12. }
  13. compileSdkVersion 28
  14. defaultConfig {
  15. applicationId "com.example.test" //com.hnzhenxi.ime //备案域名
  16. minSdkVersion 21
  17. targetSdkVersion 28
  18. versionCode 1
  19. versionName "1.0"
  20. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  21. multiDexEnabled true // 分包处理 65433
  22. ndk {
  23. // abiFilters 'armeabi','arm64-v8a','armeabi-v7a' //兼容x86cpu架构 需要什么样的架构就添加什么样的
  24. abiFilters 'armeabi-v7a',"arm64-v8a" //小程序 不支持armeabi
  25. }
  26. //此处配置必须添加 否则无法正确运行
  27. aaptOptions {
  28. additionalParameters '--auto-add-overlay'
  29. //noCompress 'foo', 'bar'
  30. ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
  31. }
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. sourceSets {
  40. main {
  41. jniLibs.srcDirs = ['libs']
  42. }
  43. }
  44. compileOptions {
  45. sourceCompatibility 1.8
  46. targetCompatibility 1.8
  47. }
  48. }
  49. dependencies {
  50. implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
  51. // implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  52. implementation 'androidx.appcompat:appcompat:1.0.0'
  53. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  54. // implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  55. testImplementation 'junit:junit:4.12'
  56. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  57. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  58. implementation 'androidx.multidex:multidex:2.0.0'
  59. implementation 'com.github.bumptech.glide:glide:4.11.0'
  60. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  61. implementation "com.android.support:design:28.0.0"
  62. implementation 'com.android.support:support-fragment:27.1.0'
  63. implementation 'com.android.support:support-core-utils:27.1.0'
  64. api 'com.huxq17.xrefreshview:xrefreshview:3.6.9'
  65. //BaseOkHttp V3 网络请求库
  66. implementation 'com.github.kongzue:BaseOkHttpV3:3.2.3.beta4'
  67. //BaseJson 解析库
  68. implementation 'com.github.kongzue:BaseJson:1.0.7.2'
  69. implementation "com.squareup.okhttp3:okhttp:4.9.1"
  70. api 'org.greenrobot:eventbus:3.2.0'
  71. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  72. implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01'
  73. implementation 'com.google.code.gson:gson:2.8.5'
  74. implementation 'com.android.support:multidex:1.0.3'
  75. implementation 'com.android.support:appcompat-v7:27.1.1'
  76. implementation 'com.jakewharton:butterknife:10.2.3'
  77. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
  78. api 'com.android.support:percent:26.+' //百分比适配
  79. api 'com.github.classichu:ClassicPercentLayout:1.0.1' //https://github.com/classichu/ClassicPercentLayout
  80. implementation 'com.lovedise:permissiongen:0.0.6'//权限
  81. compile 'com.github.yhaolpz:FloatWindow:1.0.9'
  82. implementation 'com.github.bumptech.glide:glide:4.11.0'
  83. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  84. // implementation 'com.github.warkiz.widget:indicatorseekbar:2.1.2'
  85. implementation 'com.github.warkiz.tickseekbar:tickseekbar:0.1.4' //https://github.com/warkiz/TickSeekBar
  86. implementation 'com.github.gzu-liyujiang.AndroidPicker:WheelPicker:4.1.2'
  87. implementation 'com.github.azhon:AppUpdate:3.0.5'// 必选
  88. implementation 'io.github.youth5201314:banner:2.2.2'//banner
  89. api 'com.tencent.mm.opensdk:wechat-sdk-android:+'
  90. implementation 'pub.devrel:easypermissions:2.0.1'
  91. api project(path: ':easynavigation')
  92. api project(path: ':common')
  93. implementation project(':smartcropperlib')
  94. }