build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. dependencies {
  53. api fileTree(dir: "libs", include: ["*.jar"])
  54. implementation 'org.nanohttpd:nanohttpd:2.3.1'
  55. implementation 'com.google.zxing:core:3.4.1'
  56. implementation 'androidx.appcompat:appcompat:1.3.0'
  57. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  58. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  59. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  60. implementation files('libs\\thunder.jar')
  61. annotationProcessor 'androidx.room:room-compiler:2.3.0'
  62. implementation 'androidx.room:room-runtime:2.3.0'
  63. implementation 'androidx.multidex:multidex:2.0.1'
  64. implementation 'com.squareup.okhttp3:okhttp:3.12.1'
  65. implementation 'com.squareup.okio:okio:2.6.0'
  66. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.45-androidx'
  67. implementation 'com.kingja.loadsir:loadsir:1.3.8'
  68. implementation 'com.google.code.gson:gson:2.8.7'
  69. implementation 'com.squareup.picasso:picasso:2.71828'
  70. implementation 'me.jessyan:autosize:1.2.1'
  71. implementation('com.thoughtworks.xstream:xstream:1.4.15') {
  72. exclude group: 'xmlpull', module: 'xmlpull'
  73. }
  74. implementation 'org.greenrobot:eventbus:3.2.0'
  75. implementation 'com.orhanobut:hawk:2.0.1'
  76. implementation project(":player")
  77. implementation('org.xwalk:xwalk_shared_library:23.53.589.4') {
  78. exclude group: 'com.android.support'
  79. }
  80. implementation 'com.lzy.net:okgo:3.0.4'
  81. // implementation 'com.tencent.bugly:crashreport_upgrade:latest.release'
  82. implementation 'com.owen:tv-recyclerview:3.0.0'
  83. implementation 'com.github.getActivity:XXPermissions:13.6'
  84. }