Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'com.android.application'
- apply plugin: 'net.researchgate.release'
- def keystorePropertiesFile = rootProject.file("/home/myuser/.android/keystore.properties")
- def keystoreProperties = new Properties()
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
- android {
- lintOptions {
- //TODO remove this or set to true
- abortOnError false
- }
- signingConfigs {
- myapp_release_config {
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassword']
- storeFile file(keystoreProperties['storeFile'])
- storePassword keystoreProperties['storePassword']
- }
- }
- compileSdkVersion 24
- buildToolsVersion "24.0.1"
- packagingOptions {
- exclude 'META-INF/ASL2.0'
- }
- defaultConfig {
- applicationId "com.mydomain.myapp"
- minSdkVersion 9
- targetSdkVersion 24
- versionCode 1
- versionName '1.0.0'
- archivesBaseName = "myapp-app-$versionName"
- }
- buildTypes {
- debug {
- debuggable true
- zipAlignEnabled false
- }
- release {
- minifyEnabled true
- proguardFiles 'proguard-rules.pro'
- signingConfig signingConfigs.myapp_release_config
- afterReleaseBuild.dependsOn uploadArchives
- }
- }
- }
- release {
- failOnUnversionedFiles = false
- svn {
- username = 'myuser'
- password = 'mypassword'
- }
- }
- dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
- compile 'com.mydomain.myapp:model:1.0'
- //support-v4
- compile 'com.android.support:support-core-utils:24.2.0'
- compile 'com.android.support:support-fragment:24.2.0'
- //compile 'com.android.support:multidex:1.0.0'
- //support-design
- compile 'com.android.support:design:24.2.0'
- //support-v7
- compile 'com.android.support:appcompat-v7:24.2.0'
- //FlowLayout
- compile 'com.wefika:flowlayout:0.4.1'
- compile 'javax.validation:validation-api:1.1.0.Final'
- compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
- testCompile 'junit:junit:4.12'
- testCompile 'org.hamcrest:hamcrest-all:1.3'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement