apply plugin: 'com.android.application' apply plugin: 'com.neenbedankt.android-apt' /* * Copyright 2017 Phillip Hsu * * This file is part of ClockPlus. * * ClockPlus is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ClockPlus is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ClockPlus. If not, see . */ // ============================================================================= // https://developer.android.com/studio/publish/app-signing.html#secure-shared-keystore // Create a variable called keystorePropertiesFile, and initialize it to your // keystore.properties file, in the rootProject folder. def keystorePropertiesFile = rootProject.file("keystore.properties") // Initialize a new Properties() object called keystoreProperties. def keystoreProperties = new Properties() // Load your keystore.properties file into the keystoreProperties object. keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) // ============================================================================= android { signingConfigs { config { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] } } compileSdkVersion 25 buildToolsVersion "24.0.3" defaultConfig { applicationId 'com.philliphsu.clock2' minSdkVersion 19 targetSdkVersion 25 versionCode 112 versionName "1.1.2" // Disabled for now because we're not ready to // completely port over to vector drawables // vectorDrawables.useSupportLibrary = true } buildTypes { release { // https://developer.android.com/studio/build/shrink-code.html#shrink-code // // Proguard is disabled, because it seems like it is removing // ButterKnife generated code and I don't know how to fix it... minifyEnabled false // "'proguard-android-optimize.txt' includes the same ProGuard rules // [as 'proguard-android.txt'], but with other optimizations that // perform analysis at the bytecode level—inside and across methods— // to reduce your APK size further and help it run faster." proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.config } debug { applicationIdSuffix ".debug" } } productFlavors { } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-core:1.10.19' provided 'com.google.auto.value:auto-value:1.2' apt 'com.google.auto.value:auto-value:1.2' compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:design:25.1.0' compile 'com.android.support:recyclerview-v7:25.1.0' compile 'com.android.support:gridlayout-v7:25.1.0' compile 'com.android.support:cardview-v7:25.1.0' compile 'com.jakewharton:butterknife:7.0.1' compile('com.philliphsu:bottomsheetpickers:2.3.2') { exclude group: 'com.android.support', module: 'appcompat-v7' exclude group: 'com.android.support', module: 'design' exclude group: 'com.android.support', module: 'gridlayout-v7' } }