gradle.properties文件
SDK_VERSION=24
BUILD_VERSION=24.0.0
MIN_SDK=15
TARGET_SDK=24
LIBRARY_VERSION=24.0.0
build.gradle
apply plugin: 'com.android.application'
android {
signingConfigs {
mySign {
keyAlias '1603'
keyPassword '123456'
storeFile file('C:/Users/keven/Desktop/day10_svn/CD1603.jks')
storePassword '123456'
}
}
compileSdkVersion Integer.parseInt(project.SDK_VERSION)
buildToolsVersion project.BUILD_VERSION
defaultConfig {
applicationId "qianfeng.day10_svn"
minSdkVersion Integer.parseInt(project.MIN_SDK)
targetSdkVersion Integer.parseInt(project.TARGET_SDK)
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.mySign
}
}
}
ext{
library=project.LIBRARY_VERSION
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile "com.android.support:appcompat-v7:${library}"
/*
compile "com.android.support:design:${library}"
compile "com.android.support:palette-v7:${library}"
compile "com.android.support:cardview-v7:${library}"
compile "com.android.support:recyclerview-v7:${library}"
*/
}