build.gradle 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. apply plugin: 'com.android.library'
  2. repositories {
  3. mavenCentral()
  4. google()
  5. //// flatDir {
  6. //// dirs 'libs'
  7. //// }
  8. }
  9. configurations {
  10. compile.exclude module: 'support-v4'
  11. }
  12. configurations.all {
  13. exclude group: 'com.google.firebase', module: 'firebase-core'
  14. exclude group: 'androidx.recyclerview', module: 'recyclerview'
  15. }
  16. dependencies {
  17. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
  18. implementation 'androidx.core:core:1.7.0'
  19. implementation 'androidx.palette:palette:1.0.0'
  20. implementation 'androidx.exifinterface:exifinterface:1.3.3'
  21. implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
  22. implementation 'androidx.multidex:multidex:2.0.1'
  23. // implementation "androidx.sharetarget:sharetarget:1.1.0"
  24. compileOnly 'org.checkerframework:checker-qual:3.5.0'
  25. compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
  26. implementation 'com.google.firebase:firebase-messaging:23.1.0'
  27. implementation 'com.google.firebase:firebase-config:21.0.1'
  28. implementation 'com.google.firebase:firebase-datatransport:18.1.7'
  29. implementation 'com.google.firebase:firebase-appindexing:20.0.0'
  30. implementation 'com.google.android.gms:play-services-maps:17.0.1'
  31. implementation 'com.google.android.gms:play-services-auth:19.2.0'
  32. implementation 'com.google.android.gms:play-services-vision:20.1.3'
  33. implementation 'com.google.android.gms:play-services-wearable:17.1.0'
  34. implementation 'com.google.android.gms:play-services-location:18.0.0'
  35. implementation 'com.google.android.gms:play-services-wallet:18.1.3'
  36. implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
  37. implementation 'com.stripe:stripe-android:2.0.2'
  38. implementation 'com.google.mlkit:language-id:16.1.1'
  39. implementation 'com.android.billingclient:billing:5.0.0'
  40. //-------------------------------------Cricdit相关----------------------------------------//
  41. //-------------------------------------Cricdit相关----------------------------------------//
  42. //-------------------------------------Cricdit相关----------------------------------------//
  43. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  44. implementation 'com.google.android.material:material:1.5.0'
  45. implementation 'androidx.appcompat:appcompat:1.4.1'
  46. implementation 'androidx.work:work-runtime:2.7.1'
  47. //网络请求
  48. implementation 'com.squareup.okhttp3:okhttp:4.9.3'
  49. implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
  50. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  51. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  52. implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
  53. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'
  54. implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
  55. implementation 'com.google.code.gson:gson:2.9.0'
  56. implementation 'com.github.bumptech.glide:glide:4.13.0'
  57. annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
  58. implementation 'com.github.bumptech.glide:okhttp3-integration:4.13.0'
  59. implementation 'io.github.scwang90:refresh-layout-kernel:2.0.5'
  60. implementation 'io.github.scwang90:refresh-header-classics:2.0.5'
  61. implementation 'io.github.scwang90:refresh-footer-classics:2.0.5'
  62. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  63. implementation 'com.makeramen:roundedimageview:2.3.0'
  64. implementation 'com.airbnb.android:lottie:5.2.0'
  65. implementation 'com.tencent.bugly:crashreport:4.0.4'
  66. implementation 'io.github.youth5201314:banner:2.2.2'
  67. implementation "androidx.cardview:cardview:1.0.0"
  68. implementation "org.greenrobot:eventbus:3.1.1"
  69. implementation 'com.github.piasy:BigImageViewer:1.8.1'
  70. implementation 'com.github.piasy:GlideImageLoader:1.8.1'
  71. implementation 'com.github.piasy:GlideImageViewFactory:1.8.1'
  72. implementation 'com.github.piasy:ProgressPieIndicator:1.8.1'
  73. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6'
  74. implementation 'com.hyman:flowlayout-lib:1.1.2'
  75. implementation 'com.lzy.widget:ninegridview:0.2.1'
  76. implementation 'io.github.lucksiege:pictureselector:v3.10.6'
  77. implementation 'io.github.lucksiege:compress:v3.10.6'
  78. implementation 'com.classic.common:multiple-status-view:1.7'
  79. }
  80. android {
  81. compileSdkVersion 31
  82. buildToolsVersion '31.0.0'
  83. ndkVersion "21.4.7075529"
  84. sourceSets.main.jniLibs.srcDirs = ['./jni/']
  85. externalNativeBuild {
  86. cmake {
  87. path 'jni/CMakeLists.txt'
  88. }
  89. }
  90. lintOptions {
  91. disable 'MissingTranslation'
  92. disable 'ExtraTranslation'
  93. disable 'BlockedPrivateApi'
  94. }
  95. dexOptions {
  96. jumboMode = true
  97. preDexLibraries = true
  98. }
  99. compileOptions {
  100. sourceCompatibility JavaVersion.VERSION_1_8
  101. targetCompatibility JavaVersion.VERSION_1_8
  102. coreLibraryDesugaringEnabled true
  103. }
  104. defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE)
  105. defaultConfig {
  106. minSdkVersion 19
  107. targetSdkVersion 31
  108. versionName "1"
  109. vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
  110. multiDexEnabled true
  111. externalNativeBuild {
  112. cmake {
  113. version '3.10.2'
  114. arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16"
  115. }
  116. }
  117. }
  118. buildTypes {
  119. debug {
  120. debuggable true
  121. jniDebuggable true
  122. minifyEnabled false
  123. shrinkResources false
  124. multiDexEnabled true
  125. proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
  126. ndk.debugSymbolLevel = 'FULL'
  127. buildConfigField "String", "APP_CENTER_HASH", "\"\""
  128. buildConfigField "boolean", "DEBUG_VERSION", "true"
  129. buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
  130. }
  131. HA_private {
  132. debuggable false
  133. jniDebuggable false
  134. minifyEnabled true
  135. multiDexEnabled true
  136. proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
  137. ndk.debugSymbolLevel = 'FULL'
  138. buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PRIVATE") + "\""
  139. buildConfigField "boolean", "DEBUG_VERSION", "true"
  140. buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "true"
  141. }
  142. HA_public {
  143. debuggable false
  144. jniDebuggable false
  145. minifyEnabled true
  146. multiDexEnabled true
  147. proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
  148. ndk.debugSymbolLevel = 'FULL'
  149. buildConfigField "String", "APP_CENTER_HASH", "\"" + getProps("APP_CENTER_HASH_PUBLIC") + "\""
  150. buildConfigField "boolean", "DEBUG_VERSION", "true"
  151. buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
  152. }
  153. standalone {
  154. debuggable false
  155. jniDebuggable false
  156. minifyEnabled true
  157. multiDexEnabled true
  158. proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
  159. ndk.debugSymbolLevel = 'FULL'
  160. buildConfigField "String", "APP_CENTER_HASH", "\"\""
  161. buildConfigField "boolean", "DEBUG_VERSION", "false"
  162. buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
  163. }
  164. release {
  165. debuggable false
  166. jniDebuggable false
  167. minifyEnabled true
  168. shrinkResources false
  169. multiDexEnabled true
  170. proguardFiles getDefaultProguardFile('proguard-android.txt'), '../TMessagesProj/proguard-rules.pro'
  171. ndk.debugSymbolLevel = 'FULL'
  172. buildConfigField "String", "APP_CENTER_HASH", "\"\""
  173. buildConfigField "boolean", "DEBUG_VERSION", "false"
  174. buildConfigField "boolean", "DEBUG_PRIVATE_VERSION", "false"
  175. }
  176. }
  177. buildFeatures {
  178. viewBinding true
  179. }
  180. }
  181. def getProps(String propName) {
  182. def propsFile = rootProject.file('local.properties')
  183. if (propsFile.exists()) {
  184. def props = new Properties()
  185. props.load(new FileInputStream(propsFile))
  186. return props[propName]
  187. } else {
  188. return "";
  189. }
  190. }
  191. apply plugin: 'com.google.gms.google-services'