build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. buildscript {
  2. ext {
  3. application_id = "com.lanyun.wanglaotou"
  4. compile_sdk_version = 31
  5. min_sdk_version = 21
  6. target_sdk_version = 30
  7. //版本号
  8. version_code = 1
  9. version_name = "1.0.1"
  10. java_version = JavaVersion.VERSION_11
  11. gradle_version = '7.0.4'
  12. kotlin_version = '1.6.10'
  13. compose_version = '1.1.1'
  14. startup_version = "1.0.0"
  15. core_ktx_version = '1.6.0'
  16. appcompat_version = '1.3.1'
  17. material_version = '1.4.0'
  18. lifecycle_version = '2.3.1'
  19. activity_compose_version = '1.3.1'
  20. navigation_version = '2.4.0-alpha05'
  21. coil_version = '1.4.0'
  22. accompanist_pager = "0.16.1"
  23. lifecycle_compose_version = "1.0.0-alpha07"
  24. leakcanary_version = "2.6"
  25. lottie_version = "4.0.0"
  26. mmkv_version = "1.2.8"
  27. room_version = "2.4.0-alpha04"
  28. //net
  29. retrofit_version = "2.9.0"
  30. okhttp_version = "4.9.1"
  31. paging_version = "3.0.1"
  32. paging_compose_version = "1.0.0-alpha12"
  33. datastore_version = "1.0.0-alpha05"
  34. compose_ui_version = '1.1.1'
  35. androidapppdate_version="8.0.0"
  36. drawablepainter_version="0.16.0"
  37. roomVersion = '2.0.0'
  38. workVersion = '1.0.0-beta01'
  39. junitVersion = '4.12'
  40. buildToolsVersion = '28.0.2'
  41. lifecycleVersion = '2.0.0'
  42. androidTestVersion = '1.1.1'
  43. androidEspressoVersion = '3.1.1'
  44. }
  45. repositories {
  46. google()
  47. mavenCentral()
  48. maven { url 'https://jitpack.io' }
  49. }
  50. dependencies {
  51. classpath "com.android.tools.build:gradle:$gradle_version"
  52. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  53. // NOTE: Do not place your application dependencies here; they belong
  54. // in the individual module build.gradle files
  55. }
  56. }// Top-level build file where you can add configuration options common to all sub-projects/modules.
  57. allprojects {
  58. repositories {
  59. maven { url "https://www.jitpack.io" }
  60. maven {
  61. //信任这个库
  62. allowInsecureProtocol = true
  63. url "http://maven.aliyun.com/nexus/content/groups/public"
  64. }
  65. google()
  66. mavenCentral()
  67. // flatDir {
  68. // dirs 'libs','../core/src/main/libs' //我的aar在youkuPlayer Module下
  69. // }
  70. }
  71. //配置这个
  72. tasks.withType(Javadoc) {
  73. options.addStringOption('Xdoclint:none', '-quiet')
  74. options.addStringOption('encoding', 'UTF-8')
  75. }
  76. }
  77. task clean(type: Delete) {
  78. delete rootProject.buildDir
  79. }