build.gradle 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. defaultConfig {
  5. applicationId 'com.github.tvbox.osc'
  6. minSdkVersion 16
  7. targetSdkVersion 26
  8. versionCode 1
  9. versionName '1.0.0'
  10. multiDexEnabled true
  11. //设置room的Schema的位置
  12. javaCompileOptions {
  13. annotationProcessorOptions {
  14. arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
  15. }
  16. }
  17. }
  18. packagingOptions {
  19. exclude 'META-INF/DEPENDENCIES'
  20. }
  21. buildTypes {
  22. debug {
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. minifyEnabled false
  25. ndk {
  26. abiFilters 'armeabi-v7a'
  27. }
  28. }
  29. release {
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. minifyEnabled true
  32. ndk {
  33. abiFilters 'armeabi-v7a'
  34. }
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. lintOptions {
  42. checkReleaseBuilds false
  43. abortOnError false
  44. }
  45. dexOptions {
  46. javaMaxHeapSize "4g"
  47. additionalParameters += '--multi-dex'
  48. additionalParameters += '--set-max-idx-number=48000'
  49. additionalParameters += '--minimal-main-dex'
  50. }
  51. }
  52. repositories {
  53. flatDir {
  54. dirs 'libs'
  55. }
  56. }
  57. dependencies {
  58. api fileTree(dir: "libs", include: ["*.jar"])
  59. implementation 'org.nanohttpd:nanohttpd:2.3.1'
  60. implementation 'com.google.zxing:core:3.3.0'
  61. implementation 'androidx.appcompat:appcompat:1.3.0'
  62. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  63. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  64. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  65. implementation files('libs/thunder.jar')
  66. implementation files('libs/commons-lang3-3.12.0.jar')
  67. implementation 'com.squareup.okhttp3:okhttp:3.12.11'
  68. annotationProcessor 'androidx.room:room-compiler:2.3.0'
  69. implementation 'androidx.room:room-runtime:2.3.0'
  70. implementation 'androidx.multidex:multidex:2.0.1'
  71. implementation 'com.squareup.okio:okio:2.8.0'
  72. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.45-androidx'
  73. implementation 'com.kingja.loadsir:loadsir:1.3.8'
  74. implementation 'com.google.code.gson:gson:2.8.7'
  75. implementation 'com.squareup.picasso:picasso:2.71828'
  76. implementation 'me.jessyan:autosize:1.2.1'
  77. implementation('com.thoughtworks.xstream:xstream:1.4.15') {
  78. exclude group: 'xmlpull', module: 'xmlpull'
  79. }
  80. implementation 'org.greenrobot:eventbus:3.2.0'
  81. implementation 'com.orhanobut:hawk:2.0.1'
  82. implementation project(":player")
  83. implementation project(":quickjs")
  84. // implementation('org.xwalk:xwalk_shared_library:23.53.589.4') {
  85. // exclude group: 'com.android.support'
  86. // }
  87. implementation 'com.lzy.net:okgo:3.0.4'
  88. // implementation 'com.tencent.bugly:crashreport_upgrade:latest.release'
  89. implementation 'com.owen:tv-recyclerview:3.0.0'
  90. implementation 'com.github.getActivity:XXPermissions:13.6'
  91. implementation 'org.jsoup:jsoup:1.14.1'
  92. implementation 'com.github.hedzr:android-file-chooser:v1.2.0-final'
  93. implementation 'commons-io:commons-io:2.11.0'
  94. implementation 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
  95. implementation(name:'xwalk_shared_library-23.53.589.4',ext:'aar')
  96. //支持http3
  97. implementation ('com.google.net.cronet:cronet-okhttp:0.1.0')
  98. // implementation 'com.google.android.gms:play-services-cronet:18.0.1'
  99. implementation ('org.chromium.net:cronet-embedded:101.4951.41')
  100. }