build.gradle 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 33
  10. buildToolsVersion '33.0.2'
  11. buildFeatures {
  12. viewBinding = true
  13. }
  14. defaultConfig {
  15. applicationId "beer.toktok.app"
  16. minSdkVersion 21
  17. targetSdk 33
  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. 'src/main/res-subscribe'
  72. ]
  73. }
  74. }
  75. namespace 'beer.toktok.app'
  76. }
  77. dependencies {
  78. implementation fileTree(dir: "libs", include: ["*.jar"])
  79. testImplementation 'junit:junit:4.13.2'
  80. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  81. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  82. //kotlin
  83. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  84. implementation 'androidx.core:core-ktx:1.8.0'
  85. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
  86. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0-alpha01"
  87. implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.0-alpha01"
  88. //androidx、jetpack
  89. implementation 'androidx.appcompat:appcompat:1.5.0'
  90. implementation 'com.google.android.material:material:1.5.0'
  91. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  92. implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1'
  93. implementation "com.google.dagger:hilt-android:2.43.2"
  94. kapt "com.google.dagger:hilt-android-compiler:2.43.2"
  95. implementation 'androidx.room:room-runtime:2.5.0'
  96. implementation 'androidx.room:room-ktx:2.5.0'
  97. kapt 'androidx.room:room-compiler:2.5.0'
  98. //http
  99. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  100. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  101. implementation 'com.squareup.okhttp3:okhttp:4.9.1'
  102. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
  103. //image
  104. implementation 'jp.wasabeef:glide-transformations:4.1.0'
  105. implementation 'com.github.bumptech.glide:glide:4.11.0'
  106. kapt 'com.github.bumptech.glide:compiler:4.11.0'
  107. //腾讯,x5内核
  108. api 'com.tencent.tbs.tbssdk:sdk:43939'
  109. api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'
  110. implementation 'com.tencent:mmkv-static:1.2.2'
  111. //友盟
  112. implementation 'com.umeng.umsdk:common:9.6.1'
  113. implementation 'com.umeng.umsdk:asms:1.8.0'
  114. implementation 'com.umeng.umsdk:apm:1.7.0'
  115. implementation 'com.umeng.umsdk:share-core:7.2.1'
  116. implementation 'com.umeng.umsdk:share-wx:7.2.1'
  117. implementation 'com.umeng.umsdk:push:6.5.9'
  118. implementation 'com.umeng.umsdk:uyumao:1.1.1'
  119. implementation 'com.umeng.umsdk:xiaomi-umengaccs:2.0.0'
  120. implementation 'com.umeng.umsdk:xiaomi-push:5.6.2'
  121. //other,tools
  122. implementation(files("libs/shanyan_sdk_v2.3.5.1.aar"))
  123. implementation(files("libs/BaiduLBS.aar")) //5.8
  124. implementation 'com.alipay.sdk:alipaysdk-android:+@aar'
  125. implementation 'com.kunminx.arch:unpeek-livedata:5.0.1-beta1'
  126. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  127. implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
  128. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  129. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  130. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  131. implementation 'com.github.yalantis:ucrop:2.2.8'
  132. implementation 'com.aliyun.dpa:oss-android-sdk:2.9.11'
  133. implementation 'com.airbnb.android:lottie:3.4.0'
  134. implementation "com.github.donkingliang:LabelsView:1.6.5"
  135. implementation 'top.zibin:Luban:1.1.8'
  136. }