aboutsummaryrefslogtreecommitdiffstats
path: root/ccnxandroidmetis/MetisControl/build.gradle
blob: 99dca1190b45e4f3ef374d589391be3ecee404a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "com.parc.ccnx.ccnxsdk"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            applicationVariants.all { variant ->
            	variant.outputs.each { output ->
                	project.ext { appName = 'metis' }
                	def newName = output.outputFile.name
                	newName = newName.replace("MetisControl", "$project.ext.appName-$System.env.ABI")
                	output.outputFile = new File(output.outputFile.parent, newName)
            	}
        	}
        }
    }

    dexOptions {
        preDexLibraries true
        javaMaxHeapSize "2g" // Use gig increments depending on needs
        //incremental true
    }
    
    signingConfigs {
        release {
            storeFile file("metis.keystore")
            storePassword "icn_metis"
            keyAlias "metis"
            keyPassword "icn_metis"
        }
    }
    
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}


dependencies {
    compile project(':ccnxsupportlibrary')
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
}