build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 30
  6. defaultConfig {
  7. applicationId "com.rk.worktool"
  8. minSdkVersion 24
  9. targetSdkVersion 30
  10. versionCode 28011
  11. versionName "2.8.1"
  12. }
  13. buildTypes {
  14. debug {
  15. minifyEnabled false
  16. //对齐
  17. zipAlignEnabled true
  18. //移除无用资源
  19. shrinkResources false
  20. signingConfig signingConfigs.debug
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. release {
  24. minifyEnabled true
  25. //对齐
  26. zipAlignEnabled true
  27. //移除无用资源
  28. shrinkResources false
  29. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  30. }
  31. }
  32. signingConfigs {
  33. debug {
  34. storeFile file('keystore.jks')
  35. storePassword "123456"
  36. keyAlias "keystore"
  37. keyPassword "123456"
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. kotlinOptions {
  45. jvmTarget = '1.8'
  46. }
  47. }
  48. dependencies {
  49. implementation project(':baselibrary')
  50. implementation project(':floatwindow')
  51. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  52. //友盟统计SDK
  53. implementation 'com.umeng.umsdk:common:9.4.7'// 必选
  54. implementation 'com.umeng.umsdk:asms:1.4.1'// 必选
  55. implementation 'com.umeng.umsdk:apm:1.5.2' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  56. }