Last active
December 17, 2015 15:29
-
-
Save yinghau76/5632083 to your computer and use it in GitHub Desktop.
My first gradle build script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// With Gradle 1.6 | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.4' | |
} | |
} | |
apply plugin: 'android' | |
dependencies { | |
compile files('libs/android-query.0.24.3.jar') | |
compile files('libs/gson-2.2.2.jar') | |
compile files('libs/joda-time-2.2.jar') | |
compile files('libs/joda-convert-1.3.1.jar') | |
compile project(':vendor:facebook-android-sdk-3.0.1:facebook') | |
} | |
android { | |
compileSdkVersion 17 | |
buildToolsVersion "17" | |
defaultConfig { | |
minSdkVersion 14 | |
targetSdkVersion 14 | |
} | |
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') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment