2014-11-14 00:17:23 +08:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
2024-04-24 15:38:00 +08:00
|
|
|
ext.android_plugin_version = '8.3.2'
|
2024-01-23 15:05:51 +08:00
|
|
|
ext.kotlin_version = '1.9.22'
|
|
|
|
ext.kotlinx_version = '1.7.1'
|
2014-11-14 00:17:23 +08:00
|
|
|
repositories {
|
2016-03-30 00:21:58 +08:00
|
|
|
flatDir dirs: "gradle/plugins"
|
2017-11-06 23:21:42 +08:00
|
|
|
google()
|
2021-03-23 17:05:09 +08:00
|
|
|
mavenCentral()
|
2021-04-30 20:32:31 +08:00
|
|
|
mavenLocal()
|
2021-03-23 17:05:09 +08:00
|
|
|
}
|
2014-11-14 00:17:23 +08:00
|
|
|
dependencies {
|
2017-11-06 23:55:55 +08:00
|
|
|
classpath "com.android.tools.build:gradle:$android_plugin_version"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2018-11-21 23:33:22 +08:00
|
|
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
2023-06-08 20:50:45 +08:00
|
|
|
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.25.2'
|
2014-11-14 00:17:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-16 23:22:15 +08:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2017-11-06 23:21:42 +08:00
|
|
|
google()
|
2021-07-20 12:32:01 +08:00
|
|
|
mavenCentral()
|
2022-07-21 17:25:26 +08:00
|
|
|
mavenLocal()
|
2016-12-16 23:22:15 +08:00
|
|
|
}
|
2020-04-08 00:30:04 +08:00
|
|
|
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')
|
|
|
|
}
|
2022-04-13 13:59:03 +08:00
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
|
|
kotlinOptions {
|
2022-12-09 14:34:57 +08:00
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
2022-04-13 13:59:03 +08:00
|
|
|
freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn']
|
|
|
|
}
|
|
|
|
}
|
2016-12-16 23:22:15 +08:00
|
|
|
}
|
|
|
|
|
2014-11-20 21:12:46 +08:00
|
|
|
ext {
|
2019-12-26 19:21:29 +08:00
|
|
|
appId = "org.videolan.vlc"
|
2024-03-01 17:30:31 +08:00
|
|
|
versionCode = 3050420
|
|
|
|
versionName = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? '4.0.0-preview - ' + versionCode : '3.6.0 Beta 2'
|
2022-07-21 17:25:26 +08:00
|
|
|
vlcMajorVersion = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? 4 : 3
|
2024-02-14 15:06:56 +08:00
|
|
|
libvlcVersion = vlcMajorVersion == 3 ? '3.6.0-eap12' :'4.0.0-eap15'
|
|
|
|
medialibraryVersion = vlcMajorVersion == 3 ? '0.13.13-rc12' : '0.13.13-vlc4-rc12'
|
2018-10-18 22:00:22 +08:00
|
|
|
minSdkVersion = 17
|
2023-08-23 20:45:15 +08:00
|
|
|
targetSdkVersion = 34
|
2023-09-08 15:14:13 +08:00
|
|
|
compileSdkVersion = 34
|
2024-01-23 15:05:51 +08:00
|
|
|
desugarLib = '2.0.4'
|
2019-07-25 23:09:22 +08:00
|
|
|
androidxLegacyVersion = '1.0.0'
|
2024-01-22 21:51:11 +08:00
|
|
|
androidxCoreVersion = '1.12.0'
|
|
|
|
appCompatVersion = '1.6.1'
|
2022-10-25 17:11:12 +08:00
|
|
|
lifecycleVersion = '2.5.1'
|
2024-01-22 21:51:11 +08:00
|
|
|
androidxPreferencesVersion = '1.2.1'
|
|
|
|
androidxActivityVersion = '1.8.2'
|
|
|
|
androidxFragmentVersion = '1.6.2'
|
|
|
|
androidxAnnotationVersion = '1.7.1'
|
|
|
|
androidxRecyclerviewVersion = '1.3.2'
|
2019-07-25 23:09:22 +08:00
|
|
|
androidxLeanbackVersion = '1.0.0'
|
2024-01-22 21:51:11 +08:00
|
|
|
androidxMaterialVersion = '1.11.0'
|
2022-10-25 17:11:12 +08:00
|
|
|
constraintLayoutVersion = '2.1.4'
|
2024-01-23 15:27:39 +08:00
|
|
|
windowVersion = '1.1.0'
|
|
|
|
mediaVersion = '1.6.0'
|
|
|
|
jdbcVersion = '3.36.0'
|
2021-01-05 04:29:54 +08:00
|
|
|
viewPager2Version = "1.0.0"
|
2024-01-22 21:51:11 +08:00
|
|
|
archVersion = '2.2.0'
|
2024-01-23 15:05:51 +08:00
|
|
|
roomVersion = '2.6.1'
|
|
|
|
pagingVersion = '3.2.1'
|
2022-02-16 16:43:29 +08:00
|
|
|
junitVersion = '4.13.2'
|
2023-07-26 15:52:33 +08:00
|
|
|
junitExtVersion = '1.1.5'
|
2020-09-30 20:04:30 +08:00
|
|
|
mockito = '2.25.0'
|
2021-04-27 03:51:16 +08:00
|
|
|
//Retrofit 2.7 drops Android 5 support
|
2022-02-16 16:43:29 +08:00
|
|
|
retrofit = '2.7.1'
|
2019-10-18 16:05:28 +08:00
|
|
|
moshi = '1.8.0'
|
2024-01-23 15:05:51 +08:00
|
|
|
ktorVersion = '2.3.7'
|
2019-03-22 18:52:35 +08:00
|
|
|
powerMock = '2.0.2'
|
2023-07-26 15:52:33 +08:00
|
|
|
espressoVersion = '3.5.1'
|
2021-08-03 21:23:46 +08:00
|
|
|
livedataTest = '1.2.0'
|
2019-12-06 22:37:35 +08:00
|
|
|
robolectric = '4.3.1'
|
2019-05-31 14:36:21 +08:00
|
|
|
mockk = '1.9.3'
|
2022-04-08 14:15:04 +08:00
|
|
|
testRunner = '1.4.0'
|
2023-10-11 20:01:10 +08:00
|
|
|
orchestrator = '1.4.2'
|
2023-07-26 15:52:33 +08:00
|
|
|
testCore = '1.5.0'
|
2023-06-16 15:22:38 +08:00
|
|
|
publishScriptPath = '../../buildsystem/publish.gradle'
|
2017-04-20 15:50:50 +08:00
|
|
|
// 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
|
|
|
|
// 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
|
2015-02-08 06:53:30 +08:00
|
|
|
}
|