build.gradle 4.38 KB
Newer Older
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
1 2 3 4
apply plugin: 'com.android.application'
apply plugin: 'jacoco'

project.ext {
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
5 6 7 8 9 10 11 12
    appCompatVersion = "1.0.2"
    supportLibraryVersion = "1.0.0"
    constraintLayoutVersion = "1.1.3"
    materialVersion = "1.1.0-alpha01"
    lifecycleVersion = "2.0.0"
    roomVersion = "2.0.0"
    daggerVersion = "2.17"
    butterKnifeVersion = "9.0.0-rc2"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
13 14 15 16 17 18 19
    rxJavaVersion = "2.1.0"
    rxAndroidVersion = "2.0.1"
    timberVersion = "4.7.0"
    swaggerParserVersion = "1.0.38"
    gsonVersion = "2.8.0"
    cborVersion = "3.3.0"
    spongyCastleVersion = "1.58.0.0"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
20 21 22 23
    junitVersion = "4.12"
    mockitoVersion = "1.10.19"
    testRunnerVersion = "1.1.1-alpha01"
    espressoVersion = "3.1.1-alpha01"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
24 25 26
}

android {
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
27
    compileSdkVersion 28
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
28 29 30
    defaultConfig {
        applicationId "org.openconnectivity.otgc"
        minSdkVersion 21
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
31
        targetSdkVersion 28
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
32
        versionCode 13
33
        versionName "1.5.0"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
34
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        abortOnError false
    }
    productFlavors {
    }
}

dependencies {
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
    // local modules
    implementation project(':iotivity-base-release')
    implementation project(':easy-setup-core')
    // AndroidX: Support Library
    implementation "androidx.appcompat:appcompat:$project.appCompatVersion"
    implementation "androidx.recyclerview:recyclerview:$project.supportLibraryVersion"
    implementation "androidx.recyclerview:recyclerview-selection:$project.supportLibraryVersion"
    implementation "androidx.cardview:cardview:$project.supportLibraryVersion"
    implementation "androidx.legacy:legacy-support-v4:$project.supportLibraryVersion"
    // AndroidX: ConstraintLayout
    implementation "androidx.constraintlayout:constraintlayout:$project.constraintLayoutVersion"
    // Material Components
    implementation "com.google.android.material:material:$project.materialVersion"
    // AndroidX: Lifecycle
    implementation "androidx.lifecycle:lifecycle-runtime:$project.lifecycleVersion"
    implementation "androidx.lifecycle:lifecycle-extensions:$project.lifecycleVersion"
    annotationProcessor "androidx.lifecycle:lifecycle-compiler:$project.lifecycleVersion"
    // AndroidX: Room
    implementation "androidx.room:room-runtime:$project.roomVersion"
    implementation "androidx.room:room-rxjava2:$project.roomVersion"
    annotationProcessor "androidx.room:room-compiler:$project.roomVersion"
    // Dagger
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
    implementation "com.google.dagger:dagger:$project.daggerVersion"
    annotationProcessor "com.google.dagger:dagger-compiler:$project.daggerVersion"
    implementation "com.google.dagger:dagger-android:$project.daggerVersion"
    implementation "com.google.dagger:dagger-android-support:$project.daggerVersion"
    annotationProcessor "com.google.dagger:dagger-android-processor:$project.daggerVersion"
    // ButterKnife
    implementation "com.jakewharton:butterknife:$project.butterKnifeVersion"
    annotationProcessor "com.jakewharton:butterknife-compiler:$project.butterKnifeVersion"
    // ReactiveX
    implementation "io.reactivex.rxjava2:rxjava:$project.rxJavaVersion"
    implementation "io.reactivex.rxjava2:rxandroid:$project.rxAndroidVersion"
    // Timber
    implementation "com.jakewharton.timber:timber:$project.timberVersion"
    // Swagger
    implementation "io.swagger:swagger-parser:$project.swaggerParserVersion"
    // Gson
    implementation "com.google.code.gson:gson:$project.gsonVersion"
    // CBOR
    implementation "com.upokecenter:cbor:$project.cborVersion"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
96
    // Spongy Castle
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
97 98 99
    implementation "com.madgag.spongycastle:core:$project.spongyCastleVersion"
    implementation "com.madgag.spongycastle:prov:$project.spongyCastleVersion"
    implementation "com.madgag.spongycastle:bcpkix-jdk15on:$project.spongyCastleVersion"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
100 101 102 103 104 105 106
    // JUnit
    testImplementation "junit:junit:$project.junitVersion"
    // Mockito
    testImplementation "org.mockito:mockito-core:$project.mockitoVersion"
    // AndroidX: Test
    androidTestImplementation "androidx.test:runner:$project.testRunnerVersion"
    androidTestImplementation "androidx.test.espresso:espresso-core:$project.espressoVersion"
Javier Guerra Melgares's avatar
Javier Guerra Melgares committed
107
}