build.gradle 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 34
  6. flavorDimensions = ["mode", "api", "abi"]
  7. defaultConfig {
  8. applicationId "com.fongmi.android.tv"
  9. minSdk 21
  10. targetSdk 28
  11. versionCode 212
  12. versionName "2.1.2"
  13. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
  16. }
  17. }
  18. }
  19. productFlavors {
  20. leanback {
  21. dimension "mode"
  22. }
  23. mobile {
  24. dimension "mode"
  25. }
  26. java {
  27. dimension "api"
  28. }
  29. python {
  30. dimension "api"
  31. }
  32. armeabi_v7a {
  33. dimension "abi"
  34. ndk { abiFilters "armeabi-v7a" }
  35. }
  36. arm64_v8a {
  37. dimension "abi"
  38. ndk { abiFilters "arm64-v8a" }
  39. }
  40. }
  41. buildFeatures {
  42. viewBinding true
  43. }
  44. buildTypes {
  45. release {
  46. minifyEnabled true
  47. shrinkResources true
  48. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  49. }
  50. }
  51. packagingOptions {
  52. exclude 'META-INF/beans.xml'
  53. }
  54. compileOptions {
  55. sourceCompatibility JavaVersion.VERSION_11
  56. targetCompatibility JavaVersion.VERSION_11
  57. }
  58. android.applicationVariants.configureEach { variant ->
  59. variant.outputs.configureEach { output ->
  60. outputFileName = "${variant.productFlavors[0].name}-${variant.productFlavors[1].name}-${variant.productFlavors[2].name}.apk"
  61. }
  62. }
  63. lint {
  64. disable 'UnsafeOptInUsageError'
  65. }
  66. }
  67. dependencies {
  68. implementation project(':hook')
  69. implementation project(':tvbus')
  70. implementation project(':catvod')
  71. implementation project(':danmaku')
  72. implementation project(':quickjs')
  73. implementation project(':thunder')
  74. implementation project(':jianpian')
  75. implementation project(':forcetech')
  76. implementation project(':ijkplayer')
  77. pythonImplementation project(':pyramid')
  78. implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.20')
  79. implementation 'androidx.media3:media3-database:' + media3Version
  80. implementation 'androidx.media3:media3-datasource:' + media3Version
  81. implementation 'androidx.media3:media3-datasource-okhttp:' + media3Version
  82. implementation 'androidx.media3:media3-datasource-rtmp:' + media3Version
  83. implementation 'androidx.media3:media3-exoplayer:' + media3Version
  84. implementation 'androidx.media3:media3-exoplayer-dash:' + media3Version
  85. implementation 'androidx.media3:media3-exoplayer-hls:' + media3Version
  86. implementation 'androidx.media3:media3-exoplayer-rtsp:' + media3Version
  87. implementation 'androidx.media3:media3-exoplayer-smoothstreaming:' + media3Version
  88. implementation 'androidx.media3:media3-extractor:' + media3Version
  89. implementation 'androidx.media3:media3-session:' + media3Version
  90. implementation 'androidx.media3:media3-ui:1.1.1'
  91. implementation 'androidx.appcompat:appcompat:1.6.1'
  92. implementation 'androidx.biometric:biometric:1.1.0'
  93. implementation 'androidx.lifecycle:lifecycle-viewmodel:2.6.2'
  94. implementation 'androidx.room:room-runtime:2.6.1'
  95. implementation 'androidx.media:media:1.6.0'
  96. implementation 'cat.ereza:customactivityoncrash:2.4.0'
  97. implementation 'com.github.bassaer:materialdesigncolors:1.0.0'
  98. implementation 'com.github.bumptech.glide:glide:4.16.0'
  99. implementation 'com.github.bumptech.glide:annotations:4.16.0'
  100. implementation 'com.github.bumptech.glide:okhttp3-integration:4.16.0'
  101. implementation 'com.github.jahirfiquitiva:TextDrawable:1.0.3'
  102. //implementation 'com.github.TeamNewPipe:NewPipeExtractor:289db1178ab66694c23893e6a487d4708343c47b'
  103. implementation 'com.github.teamnewpipe:NewPipeExtractor:v0.22.7'
  104. implementation('com.github.thegrizzlylabs:sardine-android:0.8') { exclude group: 'com.squareup.okhttp3', module: 'okhttp' }
  105. implementation 'com.google.android.material:material:1.10.0'
  106. implementation 'com.google.net.cronet:cronet-okhttp:0.1.0'
  107. implementation 'com.google.zxing:core:3.3.0'
  108. implementation 'com.guolindev.permissionx:permissionx:1.7.1'
  109. implementation 'com.hierynomus:smbj:0.11.5'
  110. implementation 'org.chromium.net:cronet-embedded:76.3809.111'
  111. implementation 'org.eclipse.jetty:jetty-client:8.1.21.v20160908'
  112. implementation 'org.eclipse.jetty:jetty-server:8.1.21.v20160908'
  113. implementation 'org.eclipse.jetty:jetty-servlet:8.1.21.v20160908'
  114. implementation 'org.fourthline.cling:cling-core:2.1.1'
  115. implementation 'org.fourthline.cling:cling-support:2.1.1'
  116. implementation 'org.greenrobot:eventbus:3.3.1'
  117. implementation 'org.nanohttpd:nanohttpd:2.3.1'
  118. implementation('org.simpleframework:simple-xml:2.7.1') { exclude group: 'stax', module: 'stax-api' exclude group: 'xpp3', module: 'xpp3' }
  119. implementation(ext: 'aar', name: 'dlna-core', group: 'fongmi', version: 'release')
  120. implementation(ext: 'aar', name: 'go-proxy-video', group: 'fongmi', version: 'release')
  121. leanbackImplementation(ext: 'aar', name: 'dlna-dmr', group: 'fongmi', version: 'release')
  122. leanbackImplementation 'androidx.leanback:leanback:1.2.0-alpha04'
  123. leanbackImplementation 'me.jessyan:autosize:1.2.1'
  124. mobileImplementation(ext: 'aar', name: 'dlna-dmc', group: 'fongmi', version: 'release')
  125. //mobileImplementation 'androidx.mediarouter:mediarouter:1.6.0'
  126. mobileImplementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  127. mobileImplementation 'com.google.android.flexbox:flexbox:3.0.0'
  128. //mobileImplementation 'com.google.android.gms:play-services-cast-framework:21.3.0'
  129. mobileImplementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
  130. annotationProcessor 'androidx.room:room-compiler:2.6.1'
  131. annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
  132. }