Skip to content

Instantly share code, notes, and snippets.

@avram
Last active December 25, 2015 05:49
Show Gist options
  • Save avram/6926815 to your computer and use it in GitHub Desktop.
Save avram/6926815 to your computer and use it in GitHub Desktop.
Gradle files
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6+'
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'android-library'
version '0.5'
group 'com.scopely.core'
dependencies {
compile 'com.newrelic.agent.android:android-agent:2+'
compile 'com.android.support:support-v4:13.0.+'
compile project(":Android-Core/external/android-particles")
compile project(":Android-Core/external/facebook")
compile project(":Android-Core/external/volley")
compile project(":Android-Core/external/mopub-android-sdk")
compile files {file('library/libs').listFiles()}
}
android {
compileSdkVersion 17
buildToolsVersion "18.1"
sourceSets {
main {
manifest {
srcFile 'library/AndroidManifest.xml'
}
java {
srcDirs = ['library/src']
}
res {
srcDirs = ['library/res']
}
assets {
srcDirs = ['library/assets']
}
resources {
srcDirs = ['library/src']
}
aidl {
srcDirs = ['library/src']
}
renderscript {
srcDirs = ['library/src']
}
}
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6+'
}
}
apply plugin: 'android-library'
android {
compileSdkVersion 17
buildToolsVersion "18.1"
sourceSets {
main {
manifest {
srcFile 'facebook/AndroidManifest.xml'
}
java {
srcDirs = ['facebook/src']
}
res {
srcDirs = ['facebook/res']
}
assets {
srcDirs = ['facebook/assets']
}
resources {
srcDirs = ['facebook/src']
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:13.0.+'
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6+'
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'android'
android {
compileSdkVersion 17
buildToolsVersion "18.1"
sourceSets {
main {
manifest {
srcFile 'app/AndroidManifest.xml'
}
java {
srcDirs = ['app/src']
}
res {
srcDirs = ['app/res']
}
assets {
srcDirs = ['app/assets']
}
}
}
}
dependencies {
compile files {file('app/libs').listFiles().findAll( { !it.isDirectory() } )}
compile project(":Android-Core")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment