电子屏项目
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

106 строки
3.6 KiB

  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.yzx1.webebook"
  9. minSdkVersion 26
  10. targetSdkVersion 30
  11. versionCode 2
  12. versionName "2.0.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. signingConfigs {
  16. yzx {
  17. keyAlias ALIAS_NAME
  18. keyPassword ALIAS_PWD
  19. storeFile file(KEY_PATH)
  20. storePassword KEY_PWD
  21. v2SigningEnabled false
  22. }
  23. release {
  24. storeFile file("../buildKey/wenote.jks")
  25. keyAlias 'wetao'
  26. keyPassword 'lhb@123'
  27. storePassword 'lhb@123'
  28. v2SigningEnabled false
  29. }
  30. debug {
  31. storeFile file("../buildKey/wenote.jks")
  32. keyAlias 'wetao'
  33. keyPassword 'lhb@123'
  34. storePassword 'lhb@123'
  35. v2SigningEnabled false
  36. }
  37. }
  38. buildTypes {
  39. release {
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  42. // zipAlignEnabled true
  43. // debuggable false
  44. signingConfig signingConfigs.release
  45. // 移除无用的resource文件
  46. // shrinkResources false
  47. }
  48. debug {
  49. minifyEnabled false
  50. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  51. debuggable true
  52. signingConfig signingConfigs.yzx
  53. // 移除无用的resource文件
  54. shrinkResources false
  55. }
  56. applicationVariants.all { variant ->
  57. variant.outputs.all { output ->
  58. def fileName
  59. fileName = "Yzx_${variant.versionName}.apk"
  60. output.outputFileName = fileName
  61. }
  62. }
  63. }
  64. lintOptions {
  65. checkReleaseBuilds false
  66. // Or, if you prefer, you can continue to check for errors in release builds,
  67. // but continue the build even when errors are found:
  68. abortOnError false
  69. }
  70. }
  71. dependencies {
  72. implementation fileTree(dir: 'libs', include: ['*.jar'])
  73. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  74. implementation "org.jetbrains.anko:anko:$anko_version"
  75. // 基础依赖包,必须要依赖
  76. implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
  77. // fragment快速实现(可选)
  78. implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  79. // kotlin扩展(可选)
  80. implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
  81. implementation 'androidx.appcompat:appcompat:1.1.0'
  82. implementation 'com.google.android.material:material:1.1.0'
  83. implementation 'androidx.core:core-ktx:1.2.0'
  84. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  85. testImplementation 'junit:junit:4.12'
  86. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  87. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  88. implementation files('libs/wenote.jar')
  89. implementation 'com.github.bumptech.glide:glide:4.11.0'
  90. implementation 'com.lzy.net:okgo:3.0.4'
  91. implementation 'com.blankj:utilcodex:1.30.5'
  92. implementation 'com.google.code.gson:gson:2.8.6'
  93. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  94. implementation 'com.github.AlexLiuSheng:CheckVersionLib:2.4.1_androidx'
  95. // 友盟统计SDK
  96. implementation 'com.umeng.umsdk:common:9.3.6' // 必选
  97. implementation 'com.umeng.umsdk:asms:1.2.1' // 必选
  98. }