build.gradle 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-parcelize'
  5. id 'kotlin-kapt'
  6. id 'dagger.hilt.android.plugin'
  7. }
  8. android {
  9. compileSdk 32
  10. buildToolsVersion '32.1.0 rc1'
  11. buildFeatures {
  12. viewBinding = true
  13. }
  14. defaultConfig {
  15. applicationId "beer.toktok.app"
  16. minSdkVersion 21
  17. targetSdk 32
  18. versionCode 2
  19. versionName "1.1.1"
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. multiDexEnabled true
  22. ndk {
  23. abiFilters 'armeabi-v7a', 'arm64-v8a'
  24. }
  25. }
  26. signingConfigs {
  27. debug {
  28. storeFile file('../toktok.jks')
  29. storePassword 'toktok_20210619'
  30. keyAlias 'toktok'
  31. keyPassword 'toktok_20210619'
  32. }
  33. release {
  34. storeFile file('../toktok.jks')
  35. storePassword 'toktok_20210619'
  36. keyAlias 'toktok'
  37. keyPassword 'toktok_20210619'
  38. }
  39. }
  40. buildTypes {
  41. debug {
  42. minifyEnabled false
  43. buildConfigField("String", "SERVER", "\"http://120.79.211.173:7500\"")
  44. }
  45. release {
  46. minifyEnabled true
  47. zipAlignEnabled true
  48. shrinkResources true
  49. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  50. buildConfigField("String", "SERVER", "\"http://app.toktok.beer\"")
  51. }
  52. }
  53. compileOptions {
  54. sourceCompatibility JavaVersion.VERSION_11
  55. targetCompatibility JavaVersion.VERSION_11
  56. }
  57. kotlinOptions {
  58. jvmTarget = '11'
  59. }
  60. sourceSets {
  61. main {
  62. jniLibs.srcDirs = ['libs']
  63. res.srcDirs = [
  64. 'src/main/res',
  65. 'src/main/res-account',
  66. 'src/main/res-brewery',
  67. 'src/main/res-common',
  68. 'src/main/res-content',
  69. 'src/main/res-beer',
  70. 'src/main/res-user'
  71. ]
  72. }
  73. }
  74. }
  75. dependencies {
  76. implementation fileTree(dir: "libs", include: ["*.jar"])
  77. testImplementation 'junit:junit:4.13.2'
  78. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  79. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  80. //kotlin
  81. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  82. implementation 'androidx.core:core-ktx:1.8.0'
  83. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1"
  84. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0-alpha01"
  85. implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.0-alpha01"
  86. //androidx、jetpack
  87. implementation 'androidx.appcompat:appcompat:1.5.0'
  88. implementation 'com.google.android.material:material:1.4.0'
  89. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  90. implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1'
  91. implementation "com.google.dagger:hilt-android:2.43.2"
  92. kapt "com.google.dagger:hilt-android-compiler:2.43.2"
  93. //http
  94. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  95. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  96. implementation 'com.squareup.okhttp3:okhttp:4.9.1'
  97. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
  98. //image
  99. implementation 'jp.wasabeef:glide-transformations:4.1.0'
  100. implementation 'com.github.bumptech.glide:glide:4.11.0'
  101. kapt 'com.github.bumptech.glide:compiler:4.11.0'
  102. //腾讯,x5内核
  103. api 'com.tencent.tbs.tbssdk:sdk:43939'
  104. api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'
  105. implementation 'com.tencent:mmkv-static:1.2.2'
  106. //友盟
  107. implementation 'com.umeng.umsdk:common:9.5.1'
  108. implementation 'com.umeng.umsdk:asms:1.6.3'
  109. implementation 'com.umeng.umsdk:apm:1.7.0'
  110. implementation 'com.umeng.umsdk:share-core:7.2.1'
  111. implementation 'com.umeng.umsdk:share-wx:7.2.1'
  112. //other,tools
  113. implementation(name: 'shanyan_sdk_v2.3.5.1', ext: 'aar')
  114. implementation(name: 'BaiduLBS', ext: 'aar') //5.8
  115. implementation 'com.kunminx.arch:unpeek-livedata:5.0.1-beta1'
  116. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  117. implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
  118. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  119. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  120. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  121. implementation 'com.github.yalantis:ucrop:2.2.8'
  122. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.11'
  123. implementation 'com.airbnb.android:lottie:3.4.0'
  124. implementation "com.github.donkingliang:LabelsView:1.6.5"
  125. implementation 'top.zibin:Luban:1.1.8'
  126. }