forked from takagen99/Box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
180 lines (162 loc) · 6.37 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.yanzhenjie.andserver'
def static buildTime() {
return new Date().format("yyyyMMdd_HHmm", TimeZone.getTimeZone("GMT+08:00"))
}
android {
compileSdk 34
defaultConfig {
applicationId 'com.github.tvbox.osc.tk'
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0.".concat(buildTime())
multiDexEnabled true
//设置room的Schema的位置
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
minifyEnabled true
}
}
flavorDimensions +=[ "abi","brand" ]
productFlavors {
armeabi {
dimension = "abi"
ndk {
abiFilters 'armeabi-v7a'
}
}
arm64 {
dimension = "abi"
ndk {
abiFilters 'arm64-v8a'
}
}
generic {
//通用版本
dimension = "brand"
}
hisense {
//海信的
applicationId 'com.github.hisense.osc.tk'
dimension = "brand"
}
}
applicationVariants.configureEach { variant ->
variant.outputs.configureEach { output ->
def flavorNames = variant.productFlavors.collect { it.name }.join('-')
// 构建自定义文件名
def fileName = "TVBox_${variant.buildType.name}-${flavorNames}.apk"
outputFileName = fileName
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
buildFeatures {
dataBinding = true
}
lint {
disable 'UnsafeOptInUsageError'
}
}
dependencies {
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
}
}
api fileTree(dir: "libs", include: ['*.jar', '*.aar'])
implementation 'org.conscrypt:conscrypt-android:2.5.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// for WebDAV
implementation('com.github.thegrizzlylabs:sardine-android:0.8') {
exclude group: 'com.squareup.okhttp3'
}
implementation 'com.github.NanoHttpd.nanohttpd:nanohttpd:nanohttpd-project-2.3.1'
implementation 'com.github.NanoHttpd.nanohttpd:nanohttpd:nanohttpd-websocket-2.3.1'
implementation 'com.google.zxing:core:3.5.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'com.google.android.material:material:1.12.0'
implementation files('libs/thunder.jar')
implementation project(path: ':quickjs')
kapt 'androidx.room:room-compiler:2.6.1'
implementation 'com.github.alidili:FlowLayout:v1.5'
implementation 'androidx.room:room-runtime:2.6.1'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.squareup.okhttp3:okhttp:3.12.11'
implementation 'com.squareup.okio:okio:3.3.0'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.49-androidx'
implementation 'com.kingja.loadsir:loadsir:1.3.8'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.github.bumptech.glide:glide:4.16.0'
kapt 'com.github.bumptech.glide:compiler:4.16.0'
implementation 'me.jessyan:autosize:1.2.1'
implementation('com.thoughtworks.xstream:xstream:1.4.20') {
exclude group: 'xmlpull', module: 'xmlpull'
}
implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.orhanobut:hawk:2.0.1'
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.4'
implementation 'androidx.annotation:annotation:1.8.2'
implementation "androidx.media3:media3-exoplayer:1.3.1"
implementation "androidx.media3:media3-ui:1.3.1"
implementation "androidx.media3:media3-exoplayer-dash:1.3.1"
implementation "androidx.media3:media3-exoplayer-hls:1.3.1"
implementation "androidx.media3:media3-exoplayer-rtsp:1.3.1"
implementation "androidx.media3:media3-datasource-rtmp:1.3.1"
implementation 'androidx.media3:media3-common:1.3.1'
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:0.7.1"
implementation "com.aliyun.sdk.android:AliyunPlayer:5.5.2.0-full"
implementation 'com.alivc.conan:AlivcConan:0.9.5'
implementation 'xyz.doikki.android.dkplayer:dkplayer-ui:3.3.7'
implementation 'xyz.doikki.android.dkplayer:videocache:3.3.7'
implementation 'com.lzy.net:okgo:3.0.4'
implementation 'com.owen:tv-recyclerview:3.0.0'
implementation 'com.blankj:utilcodex:1.31.0'
implementation 'com.github.getActivity:XXPermissions:18.5'
implementation 'org.jsoup:jsoup:1.16.1'
implementation 'com.github.hedzr:android-file-chooser:v1.2.0-final'
implementation 'commons-io:commons-io:2.13.0'
implementation 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
implementation 'org.apache.commons:commons-text:1.10.0'
implementation 'com.github.seven332:jcifs:1.3.19'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
implementation 'io.github.inflationx:viewpump:2.1.1'
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'com.yanzhenjie.andserver:api:2.1.12'
kapt 'com.yanzhenjie.andserver:processor:2.1.12'
implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
implementation('org.simpleframework:simple-xml:2.7.1') {
exclude group: 'stax', module: 'stax-api'
exclude group: 'xpp3', module: 'xpp3'
}
configurations {
configureEach {
exclude group: 'xpp3', module: 'xpp3'
}
}
}