电子屏项目
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

83 рядки
2.8 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 "31.0.0 rc1"
  7. defaultConfig {
  8. applicationId "com.yzx.webebook"
  9. minSdkVersion 26
  10. targetSdkVersion 30
  11. versionCode 2
  12. versionName "2.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. }
  24. buildTypes {
  25. release {
  26. minifyEnabled true
  27. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  28. zipAlignEnabled true
  29. debuggable false
  30. signingConfig signingConfigs.yzx
  31. // 移除无用的resource文件
  32. shrinkResources true
  33. }
  34. debug {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. debuggable true
  38. signingConfig signingConfigs.yzx
  39. // 移除无用的resource文件
  40. shrinkResources false
  41. }
  42. applicationVariants.all { variant ->
  43. variant.outputs.all { output ->
  44. def fileName
  45. fileName = "Yzx_${variant.versionName}.apk"
  46. output.outputFileName = fileName
  47. }
  48. }
  49. }
  50. }
  51. dependencies {
  52. implementation fileTree(dir: 'libs', include: ['*.jar'])
  53. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  54. implementation "org.jetbrains.anko:anko:$anko_version"
  55. // 基础依赖包,必须要依赖
  56. implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
  57. // fragment快速实现(可选)
  58. implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
  59. // kotlin扩展(可选)
  60. implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
  61. implementation 'androidx.appcompat:appcompat:1.1.0'
  62. implementation 'com.google.android.material:material:1.1.0'
  63. implementation 'androidx.core:core-ktx:1.2.0'
  64. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  65. testImplementation 'junit:junit:4.12'
  66. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  67. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  68. implementation files('libs/wenote.jar')
  69. implementation 'com.github.bumptech.glide:glide:4.11.0'
  70. implementation 'com.lzy.net:okgo:3.0.4'
  71. implementation 'com.blankj:utilcodex:1.30.5'
  72. implementation 'com.google.code.gson:gson:2.8.6'
  73. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  74. implementation 'com.github.AlexLiuSheng:CheckVersionLib:2.4.1_androidx'
  75. }