zftlive/tests/plugin-test/build.gradle

67 lines
1.8 KiB
Groovy
Raw Permalink Normal View History

2018-03-28 12:06:13 +08:00
apply plugin: 'com.android.application'
//
def readProperty(key, defaultValue) {
def value = System.getenv(key)
if (value != null && value.length() > 0) {
return value
}
if (project.hasProperty(key)) {
return project.property(key)
}
return defaultValue
}
android {
signingConfigs {
MySignConfig {
storeFile file(readProperty("key.store", "key.store"))
keyAlias readProperty("key.alias", "key.alias")
keyPassword readProperty("key.alias.password", "key.alias.password")
storePassword readProperty("key.store.password", "key.store.password")
}
}
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
lintOptions {
abortOnError false
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), "proguard-project.txt"
signingConfig signingConfigs.MySignConfig
}
}
}
dependencies {
compile "com.android.support:support-v4:23.1.1"
compile "com.android.support:gridlayout-v7:23.1.1"
compile "com.android.support:cardview-v7:23.1.1"
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':libraries:feature-android-droidplugin')
}