Action:init
Description:初始化git仓库
This commit is contained in:
64
app/build.gradle
Normal file
64
app/build.gradle
Normal file
@@ -0,0 +1,64 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
||||
def appVerCode = 1
|
||||
def appVerName = "0.0.1"
|
||||
defaultConfig {
|
||||
applicationId "com.jkb.vercodeedittext"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode appVerCode
|
||||
versionName appVerName
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility rootProject.ext.sourceCompatibilityVersion
|
||||
targetCompatibility rootProject.ext.targetCompatibilityVersion
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
debug {
|
||||
storeFile file(STORE_FILE)
|
||||
storePassword STORE_PASSWORD
|
||||
keyAlias KEY_ALIAS
|
||||
keyPassword KEY_PASSWORD
|
||||
v2SigningEnabled false
|
||||
}
|
||||
release {
|
||||
storeFile file(STORE_FILE)
|
||||
storePassword STORE_PASSWORD
|
||||
keyAlias KEY_ALIAS
|
||||
keyPassword KEY_PASSWORD
|
||||
v2SigningEnabled false
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false //混淆编译
|
||||
shrinkResources false //移除无用的资源文件
|
||||
zipAlignEnabled true //是否启用zipAlign压缩
|
||||
signingConfig signingConfigs.release
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug {
|
||||
minifyEnabled false
|
||||
zipAlignEnabled false
|
||||
shrinkResources false
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions { abortOnError false }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
||||
exclude group: 'com.android.support', module: 'support-annotations'
|
||||
})
|
||||
compule deps.appcompat_v7
|
||||
testCompile deps.junit
|
||||
}
|
||||
Reference in New Issue
Block a user