-
Notifications
You must be signed in to change notification settings - Fork 170
/
build.gradle
106 lines (101 loc) · 3.64 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
plugins {
id 'com.android.application'
}
android {
namespace 'com.brouken.player'
compileSdk 34
ndkVersion '21.4.7075529'
defaultConfig {
applicationId "com.brouken.player"
minSdkVersion 21
targetSdkVersion 34
versionCode 163
versionName "0.${versionCode}"
archivesBaseName = "Just.Player.v${versionName}"
}
buildTypes {
release {
minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "targetSdk", "distribution", "feature"
productFlavors {
latest {
dimension "targetSdk"
}
legacy {
dimension "targetSdk"
versionCode = defaultConfig.versionCode + 1_000_000
versionNameSuffix "-legacy"
targetSdkVersion 29
}
universal {
dimension "distribution"
}
amazon {
dimension "distribution"
}
full {
dimension "feature"
}
lite {
dimension "feature"
versionNameSuffix "-lite"
}
}
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("legacy") && names.contains("amazon")) {
setIgnore(true)
}
}
androidComponents {
onVariants(selector().withFlavor(new kotlin.Pair("distribution", "amazon")), {
packaging.dex.useLegacyPackaging.set(false)
packaging.jniLibs.excludes.add('lib/armeabi-v7a/*_neon.so')
})
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lint {
disable 'MissingTranslation'
disable 'UnsafeOptInUsageError'
}
}
dependencies {
def media3_version = '1.4.0-alpha02'
def androidxCoreVersion = '1.8.0'
implementation "androidx.media3:media3-session:$media3_version"
implementation "androidx.media3:media3-datasource:$media3_version"
implementation "androidx.media3:media3-decoder:$media3_version"
implementation "androidx.media3:media3-common:$media3_version"
implementation "androidx.media3:media3-container:$media3_version"
implementation("androidx.media3:media3-exoplayer-dash:$media3_version") {
exclude group: "androidx.media3", module: "media3-exoplayer"
}
implementation("androidx.media3:media3-exoplayer-hls:$media3_version") {
exclude group: "androidx.media3", module: "media3-exoplayer"
}
implementation("androidx.media3:media3-exoplayer-smoothstreaming:$media3_version") {
exclude group: "androidx.media3", module: "media3-exoplayer"
}
implementation("androidx.media3:media3-exoplayer-rtsp:$media3_version") {
exclude group: "androidx.media3", module: "media3-exoplayer"
}
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.13.3'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation "androidx.core:core:$androidxCoreVersion"
fullImplementation 'com.ibm.icu:icu4j:75.1'
fullImplementation 'com.arthenica:ffmpeg-kit-https:6.0-2.LTS'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.preference:preference:1.2.1'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation project(path: ':doubletapplayerview')
implementation project(path: ':android-file-chooser')
implementation fileTree(dir: "libs", include: ["lib-*.aar"])
}