build.gradle 2.85 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 {
Geoffrey Métais's avatar
Geoffrey Métais committed
3
4
    ext.android_plugin_version = '3.6.3'
    ext.kotlin_version = '1.3.72'
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"
37
38
    versionName = '3.3.0 Beta 2'
    versionCode = 3028200
39
40
    libvlcVersion = '3.3.0-eap10'
    medialibraryVersion = '0.7.0-eap10'
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'
Geoffrey Métais's avatar
Geoffrey Métais committed
45
    androidxCoreVersion = '1.2.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'
Geoffrey Métais's avatar
Geoffrey Métais committed
60
    archVersion = '2.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
61
62
    roomVersion = '2.2.5'
    pagingVersion = '2.1.2'
Habib Kazemi's avatar
Habib Kazemi committed
63
    junitVersion = '4.12'
64
    mockito = '2.8.9'
Geoffrey Métais's avatar
Geoffrey Métais committed
65
    retrofit = '2.6.1'
66
    moshi = '1.8.0'
Shivansh Saini's avatar
Shivansh Saini committed
67
    powerMock = '2.0.2'
Geoffrey Métais's avatar
Geoffrey Métais committed
68
    espressoVersion = '3.1.1'
Shivansh Saini's avatar
Shivansh Saini committed
69
    livedataTest = '1.1.0'
Geoffrey Métais's avatar
Geoffrey Métais committed
70
    robolectric = '4.3.1'
71
    mockk = '1.9.3'
Geoffrey Métais's avatar
Geoffrey Métais committed
72
    supportTest = '1.1.0'
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//    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
89
}