build.gradle 2.91 KB
Newer Older
Geoffrey Métais's avatar
Geoffrey Métais committed
1 2
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
3
    ext.android_plugin_version = '4.1.1'
4
    ext.kotlin_version = '1.4.10'
Geoffrey Métais's avatar
Geoffrey Métais committed
5
    ext.kotlinx_version = '1.3.6'
Geoffrey Métais's avatar
Geoffrey Métais committed
6
    repositories {
Geoffrey Métais's avatar
Geoffrey Métais committed
7
        flatDir dirs: "gradle/plugins"
Geoffrey Métais's avatar
Geoffrey Métais committed
8
        google()
Geoffrey Métais's avatar
Geoffrey Métais committed
9 10 11
        jcenter()
    }
    dependencies {
Geoffrey Métais's avatar
Geoffrey Métais committed
12
        classpath "com.android.tools.build:gradle:$android_plugin_version"
Geoffrey Métais's avatar
Geoffrey Métais committed
13
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
Geoffrey Métais's avatar
Geoffrey Métais committed
14
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Geoffrey Métais's avatar
Geoffrey Métais committed
15
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
Geoffrey Métais's avatar
Geoffrey Métais committed
16 17 18
    }
}

Geoffrey Métais's avatar
Geoffrey Métais committed
19 20
allprojects {
    repositories {
Geoffrey Métais's avatar
Geoffrey Métais committed
21
        google()
Geoffrey Métais's avatar
Geoffrey Métais committed
22
        maven {
Geoffrey Métais's avatar
Geoffrey Métais committed
23
            url "https://dl.bintray.com/videolan/Android"
Geoffrey Métais's avatar
Geoffrey Métais committed
24
        }
Geoffrey Métais's avatar
Geoffrey Métais committed
25
        jcenter()
Geoffrey Métais's avatar
Geoffrey Métais committed
26
    }
Geoffrey Métais's avatar
Geoffrey Métais committed
27 28 29 30 31 32
    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')
    }
Geoffrey Métais's avatar
Geoffrey Métais committed
33 34
}

35
ext {
36
    appId = "org.videolan.vlc"
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
37 38
    versionName = '3.3.3'
    versionCode = 3030300
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
39 40
    libvlcVersion = '3.3.12'
    medialibraryVersion = '0.7.11'
41
    minSdkVersion = 17
Geoffrey Métais's avatar
Geoffrey Métais committed
42 43
    targetSdkVersion = 29
    compileSdkVersion = 29
Geoffrey Métais's avatar
Geoffrey Métais committed
44
    androidxLegacyVersion = '1.0.0'
Isira Seneviratne's avatar
Isira Seneviratne committed
45
    androidxCoreVersion = '1.3.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
46
    lifecycleVersion = '2.2.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
47
    androidxPreferencesVersion = '1.1.1'
Geoffrey Métais's avatar
Geoffrey Métais committed
48
    androidxVersion = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
49
    androidxActivityVersion = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
50
    androidxFragmentVersion = '1.2.4'
Geoffrey Métais's avatar
Geoffrey Métais committed
51
    androidxAnnotationVersion = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
52
    androidxAppcompatVersion = '1.1.0'
53
    androidxRecyclerviewVersion = '1.1.0'
54
    androidxMediaVersion = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
55
    androidxLeanbackVersion = '1.0.0'
56 57
    //fixme : When we update this dep, please verify of this issue is fixed: https://github.com/material-components/material-components-android/issues/1086
    // if so, revert application/vlc-android/res/values[-v21]/styles.xml -> AppModalStyle
Geoffrey Métais's avatar
Geoffrey Métais committed
58
    androidxMaterialVersion = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
59
    constraintLayoutVersion = '1.1.3'
Habib Kazemi's avatar
Habib Kazemi committed
60
    viewPager2Version = "1.0.0"
Geoffrey Métais's avatar
Geoffrey Métais committed
61
    archVersion = '2.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
62 63
    roomVersion = '2.2.5'
    pagingVersion = '2.1.2'
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
64 65
    junitVersion = '4.13'
    mockito = '2.25.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
66
    retrofit = '2.6.1'
67
    moshi = '1.8.0'
Shivansh Saini's avatar
Shivansh Saini committed
68
    powerMock = '2.0.2'
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
69
    espressoVersion = '3.3.0'
Shivansh Saini's avatar
Shivansh Saini committed
70
    livedataTest = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
71
    robolectric = '4.3.1'
72
    mockk = '1.9.3'
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
73 74 75
    supportTest = '1.1.2'
    orchestrator = '1.1.0'
    testCore = '1.3.0'
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
//    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
92
}