-
Notifications
You must be signed in to change notification settings - Fork 793
Expand file tree
/
Copy pathbuild.gradle
More file actions
134 lines (129 loc) · 4.46 KB
/
Copy pathbuild.gradle
File metadata and controls
134 lines (129 loc) · 4.46 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.android_plugin_version = '9.1.1'
ext.kotlin_version = '2.2.10'
ext.kotlinx_version = '1.7.1'
repositories {
flatDir dirs: "gradle/plugins"
google()
mavenCentral()
mavenLocal()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_plugin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.34.0'
}
}
plugins {
id 'com.google.devtools.ksp' version '2.3.2' apply false
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
}
tasks.withType(Javadoc) {
// Ignores errors from mavenAndroidJavadocs task
// (reference: github.com/novoda/bintray-release/issues/71#issuecomment-164324255)
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlin {
compilerOptions {
jvmTarget.set("$rootProject.ext.targetJVMKotlin")
optIn.add("kotlin.RequiresOptIn")
}
}
}
}
ext {
appId = "org.videolan.vlc"
versionCode = 3070100
vlcMajorVersion = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? 4 : 3
versionName = vlcMajorVersion == 3 ? '3.7.1' : '4.0.0-preview - ' + versionCode
remoteAccessVersion = '0.18.0'
libvlcVersion = vlcMajorVersion == 3 ? '3.7.4' :'4.0.0-eap28'
medialibraryVersion = '0.13.21' + (vlcMajorVersion == 3 ? '' : '-vlc4')
targetJVM = JavaVersion.VERSION_1_8
targetJVMKotlin = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
// default ndkVersion in android_plugin_version in 8.9.1: 27.0.12077973
// VLC 3 needs to stick to NDK21 which is the last one supporting Android API 17
toolchainNdkVersion = properties.getProperty('android.ndkFullVersion') ?: (vlcMajorVersion == 3 ? '21.4.7075529' : '28.2.13676358')
tooclchainNdkPath = properties.getProperty('android.ndkPath')
targetSdkVersion = 36
compileSdkVersion = 36 // Dockers: 3.0=36 / 4.0=36
desugarLib = '2.0.4'
androidxLegacyVersion = '1.0.0'
androidxCoreVersion = '1.12.0'
appCompatVersion = '1.6.1'
lifecycleVersion = '2.5.1'
androidxPreferencesVersion = '1.2.1'
androidxActivityVersion = '1.8.2'
androidxFragmentVersion = '1.6.2'
androidxAnnotationVersion = '1.7.1'
androidxRecyclerviewVersion = '1.3.2'
androidxLeanbackVersion = '1.0.0'
androidxMaterialVersion = '1.11.0'
constraintLayoutVersion = '2.1.4'
windowVersion = '1.1.0'
mediaVersion = '1.6.0'
carVersion = '1.7.0-beta03'
jdbcVersion = '3.36.0'
viewPager2Version = "1.0.0"
archVersion = '2.2.0'
roomVersion = '2.6.1'
pagingVersion = '3.2.1'
junitVersion = '4.13.2'
junitExtVersion = '1.1.5'
mockito = '2.25.0'
//Retrofit 2.7 drops Android 5 support
retrofit = '2.7.1'
moshi = '1.8.0'
ktorVersion = '2.3.7'
powerMock = '2.0.2'
espressoVersion = '3.5.1'
livedataTest = '1.2.0'
robolectric = '4.3.1'
mockk = '1.9.3'
testRunner = '1.4.0'
orchestrator = '1.4.2'
testCore = '1.5.0'
publishScriptPath = '../../buildsystem/publish.gradle'
// versionCode scheme is T M NN RR AA
// T: Target/Flavour (1 for Android, 2 for Chrome?)
// M: Major version from 0 to 9
// NN: Minor version from 00 to 99
// RR: Micro/Revision version from 00 to 99
// AA: ABI from 0 to 99
// Starting from 13050420 the last digit represents the ABI and the variant (normal or NoTv)
// Also, the values are sorted to allow the most pertinent version to be prioritized
//
// Old values
// 0 is dev
// 1 was ARMv5 (deprecated)
// 2 was ARMv6-nofpu (deprecated)
// 3 was ARMv6-fpu (deprecated)
// 4 is ARMv7-A
// 5 is x86
// 6 is MIPS
// 7 is ARMv8
// 8 is x86_64
// 9 is MIPS64
//
// New values
// 0 is dev
// 1 is ARMv7-A No TV
// 2 is ARMv8 No TV
// 3 is x86 No TV
// 4 is x86_64 No TV
// 5 is ARMv7-A
// 6 is ARMv8
// 7 is x86
// 8 is ARMv7-A
}