mirror of https://github.com/perkeep/perkeep.git
55 lines
1.8 KiB
Groovy
55 lines
1.8 KiB
Groovy
/*
|
|
* Copyright 2017 The Perkeep Authors.
|
|
* Use of this source code is governed by a BSD-style
|
|
* license that can be found in the LICENSE file.
|
|
*/
|
|
apply plugin: 'com.android.application'
|
|
|
|
// 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 {
|
|
compileSdkVersion 27
|
|
|
|
// TODO(mpl): this should make signing the apk automatic when building the
|
|
// release flavor, but it does not seem to. figure out why. use Makefile in the
|
|
// meantime.
|
|
signingConfigs {
|
|
config {
|
|
keyAlias keystoreProperties['keyAlias']
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "org.camlistore"
|
|
minSdkVersion 14
|
|
// Stay below API 26 for a while, because it deprecates the Notification Builder
|
|
// constructor we're using.
|
|
targetSdkVersion 26
|
|
// integer. used by android to prevent downgrades. not seen by user.
|
|
versionCode 4
|
|
// version shown to the user in play store.
|
|
versionName "0.10"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation 'com.android.support:appcompat-v7:26.0.0'
|
|
implementation 'com.android.support:support-compat:26.0.0'
|
|
}
|