Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
build.gradle 1.47 KB
Copy Edit Web IDE Raw Blame History
SeabornLee authored 2014-11-07 08:37 . add checkstyle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
allprojects {
repositories {
jcenter()
}
}
apply plugin: 'com.android.application'
apply plugin: 'checkstyle'
check.dependsOn 'checkstyle'
task checkstyle(type: Checkstyle) {
source 'src'
include '**/*.java'
exclude '**/gen/**'
ignoreFailures true
classpath = files()
}
android {
compileSdkVersion 15
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "net.oschina.app"
minSdkVersion 9
targetSdkVersion 19
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
android {
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
androidTest.setRoot('tests')
}
}
lintOptions {
abortOnError false
}
packagingOptions {
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}
}
dependencies {
compile files('libs/Android_SDK_v1.2_Fix.jar')
compile files('libs/commons-httpclient-3.1.jar')
compile files('libs/core-2.3.0.jar')
compile files('libs/httpmime-4.1.3.jar')
compile files('libs/libammsdk.jar')
}

Comment ( 0 )

Sign in for post a comment