build.gradle 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. apply plugin: 'com.android.application'
  2. //apply from: 'tinker-support.gradle'
  3. apply plugin: 'com.mob.sdk'
  4. android {
  5. packagingOptions {
  6. exclude 'META-INF/rxjava.properties'
  7. }
  8. lintOptions {
  9. disable 'GoogleAppIndexingWarning'
  10. }
  11. aaptOptions.cruncherEnabled = false
  12. aaptOptions.useNewCruncher = false
  13. signingConfigs {
  14. signconfig {
  15. /*keyAlias 'aft'
  16. keyPassword '17454938'
  17. storeFile file('D:/yy/demo/android/android/app/aft.jks')
  18. storePassword '17454938'*/
  19. keyAlias KEY_ALIAS
  20. keyPassword KEYSTORE_PASSWORD
  21. storeFile file(KEY_PATH)
  22. storePassword KEY_PASSWORD
  23. }
  24. }
  25. compileSdkVersion 29
  26. defaultConfig {
  27. applicationId "com.lbs.aft"
  28. minSdkVersion 17
  29. targetSdkVersion 29
  30. versionCode 32
  31. versionName "3.4.2"
  32. multiDexEnabled true
  33. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  34. vectorDrawables.useSupportLibrary = true
  35. ndk {
  36. //设置支持的SO库架构
  37. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
  38. }
  39. /* manifestPlaceholders = [
  40. JPUSH_PKGNAME: applicationId,
  41. JPUSH_APPKEY : "dbcea43366e038073452a04e", //JPush 上注册的包名对应的 Appkey.
  42. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  43. ]*/
  44. }
  45. applicationVariants.all { variant ->
  46. variant.outputs.all { output -> // each 或者 all
  47. //这里修改apk文件名
  48. def fileName ="jt_"+ "${defaultConfig.versionCode}_" + "${defaultConfig.versionName}" + "_${variant.buildType.name}" + ".apk"
  49. def outFile = output.outputFile
  50. if (outFile != null && outFile.name.endsWith('.apk')) {
  51. outputFileName = fileName // output.outputFile 改为 outputFileName
  52. }
  53. }
  54. }
  55. buildTypes {
  56. release {
  57. minifyEnabled false
  58. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  59. signingConfig signingConfigs.signconfig
  60. }
  61. debug {
  62. signingConfig signingConfigs.signconfig
  63. }
  64. }
  65. sourceSets {
  66. main {
  67. jniLibs.srcDirs = ['libs']
  68. }
  69. }
  70. }
  71. /*MobSDK {
  72. appKey "2844890fbf8ba"
  73. appSecret "02473bf17aa095ce91838a9467fd98ac"
  74. ShareSDK {
  75. devInfo {
  76. QQ {
  77. appId "1106400190"
  78. appKey "3hiBU15nyfvj3wHE"
  79. shareByAppClient true
  80. bypassApproval false
  81. }
  82. SinaWeibo {
  83. appKey "1641506023"
  84. appSecret "f52937be593a59a019ab8aad5d6e802e"
  85. shareByAppClient true
  86. }
  87. Wechat {
  88. appId "wx3b3b2b5b698d8907"
  89. appSecret "d5e6cc625d9b610ed09101a65b775ad4"
  90. shareByAppClient true
  91. }
  92. WechatMoments {
  93. appId "wx3b3b2b5b698d8907"
  94. appSecret "d5e6cc625d9b610ed09101a65b775ad4"
  95. shareByAppClient true
  96. }
  97. }
  98. }
  99. }*/
  100. dependencies {
  101. implementation fileTree(include: ['*.jar'], dir: 'libs')
  102. implementation 'androidx.appcompat:appcompat:1.0.0'
  103. implementation 'com.lzy.net:okgo:3.0.4'
  104. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  105. implementation 'com.google.android.material:material:1.0.0'
  106. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  107. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  108. testImplementation 'junit:junit:4.12'
  109. implementation 'com.github.arcadefire:nice-spinner:1.3.4'
  110. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  111. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  112. implementation 'com.github.chaychan:BottomBarLayout:1.1.2'
  113. implementation 'cn.bingoogolapple:bga-titlebar:1.0.8@aar'
  114. implementation 'com.github.bumptech.glide:glide:4.5'
  115. implementation 'com.youth.banner:banner:1.4.9'
  116. annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
  117. implementation 'com.zaaach:toprightmenu:1.1.2'
  118. //评价星星
  119. implementation 'com.github.ome450901:SimpleRatingBar:1.4.2'
  120. //smart刷新框架
  121. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.2-alpha-8'
  122. //加载弹窗
  123. implementation 'com.github.ForgetAll:LoadingDialog:v1.0.1'
  124. implementation project(path: ':network')
  125. implementation project(path: ':citylist')
  126. implementation 'jp.wasabeef:richeditor-android:1.2.2'
  127. /* //bugly
  128. implementation 'com.tencent.bugly:crashreport_upgrade:1.3.6'
  129. implementation 'com.tencent.tinker:tinker-android-lib:1.9.9'
  130. implementation 'com.tencent.bugly:nativecrashreport:2.2.0'*/
  131. //implementation 'com.tencent.bugly:crashreport_upgrade:1.3.5'
  132. //implementation 'com.tencent.bugly:nativecrashreport:3.3.1'
  133. //implementation 'com.tencent.tinker:tinker-android-lib:1.9.6'
  134. implementation 'androidx.multidex:multidex:2.0.0'
  135. //图片选择
  136. implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3'
  137. /* //jpush
  138. implementation 'cn.jiguang.sdk:jpush:3.1.6' // 此处以JPush 3.1.6 版本为例。
  139. implementation 'cn.jiguang.sdk:jcore:1.2.5' // 此处以JCore 1.2.5 版本为例。*/
  140. //自定义tab+viewpager
  141. implementation 'com.liliang4869:tab:1.0.1'
  142. //权限
  143. implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4@aar'
  144. /*implementation 'io.reactivex.rxjava2:rxjava:2.2.3'
  145. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'*/
  146. //微信分享
  147. // implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
  148. }