build.gradle 1.51 KB
Newer Older
Andy Trevorah's avatar
Andy Trevorah committed
1 2
apply plugin: 'com.android.application'

3 4 5 6
def secretsPropertiesFile = rootProject.file("secrets.properties");
def secretProperties = new Properties()
secretProperties.load(new FileInputStream(secretsPropertiesFile))

Andy Trevorah's avatar
Andy Trevorah committed
7
android {
Andy Trevorah's avatar
Andy Trevorah committed
8
    compileSdkVersion 24
9
    buildToolsVersion '27.0.3'
Andy Trevorah's avatar
Andy Trevorah committed
10 11 12

    defaultConfig {
        applicationId "im.gitter.gitter"
Andy Trevorah's avatar
Andy Trevorah committed
13
        minSdkVersion 19
Andy Trevorah's avatar
Andy Trevorah committed
14
        targetSdkVersion 24
Eric Eastwood's avatar
Eric Eastwood committed
15 16
        versionCode 81
        versionName "3.2.0"
17 18 19 20 21

        buildConfigField("String", "oauth_client_id", secretProperties['oauth_client_id'])
        buildConfigField("String", "oauth_client_secret", secretProperties['oauth_client_secret'])
        buildConfigField("String", "oauth_redirect_uri", secretProperties['oauth_redirect_uri'])
        buildConfigField("String", "google_project_id", secretProperties['google_project_id'] ?: "null")
Andy Trevorah's avatar
Andy Trevorah committed
22 23 24
    }
    buildTypes {
        release {
25
            minifyEnabled false
Andy Trevorah's avatar
Andy Trevorah committed
26 27 28 29 30
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

Andy Trevorah's avatar
Andy Trevorah committed
31 32 33 34
repositories {
    mavenCentral()
}

Andy Trevorah's avatar
Andy Trevorah committed
35
dependencies {
36 37 38 39 40 41 42 43
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:design:24.2.1'
    implementation 'com.android.volley:volley:1.0.0'
    implementation "com.google.android.gms:play-services-gcm:9.6.1"
    implementation 'joda-time:joda-time:2.5'
    implementation 'com.github.rahatarmanahmed:circularprogressview:2.4.0'
    implementation 'com.getbase:floatingactionbutton:1.10.1'
    testImplementation 'junit:junit:4.12'
Andy Trevorah's avatar
Andy Trevorah committed
44
}