Advertisement
Guest User

gradle

a guest
Oct 21st, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.49 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         mavenCentral()
  4.         maven {
  5.             name 'maven.aviary.com'
  6.             url uri("http://maven.aviary.com/repo/release")
  7.         }
  8.     }
  9.     dependencies {
  10.         classpath 'com.android.tools.build:gradle:0.12.+'
  11.     }
  12. }
  13. apply plugin: 'android'
  14.  
  15. dependencies {
  16.     compile fileTree(dir: 'libs', include: '*.jar')
  17.     compile "com.android.support:support-v4:21.0.+"
  18.     compile 'com.aviary.android.feather.sdk:aviary-sdk:3.4.3.350'
  19. }
  20.  
  21. android {
  22.     compileSdkVersion 16
  23.     buildToolsVersion "19.1.0"
  24.  
  25.     sourceSets {
  26.         main {
  27.             manifest.srcFile 'AndroidManifest.xml'
  28.             java.srcDirs = ['src']
  29.             resources.srcDirs = ['src']
  30.             aidl.srcDirs = ['src']
  31.             renderscript.srcDirs = ['src']
  32.             res.srcDirs = ['res']
  33.             assets.srcDirs = ['assets']
  34.         }
  35.  
  36.         // Move the tests to tests/java, tests/res, etc...
  37.         instrumentTest.setRoot('tests')
  38.  
  39.         // Move the build types to build-types/<type>
  40.         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  41.         // This moves them out of them default location under src/<type>/... which would
  42.         // conflict with src/ being used by the main source set.
  43.         // Adding new build types or product flavors should be accompanied
  44.         // by a similar customization.
  45.         debug.setRoot('build-types/debug')
  46.         release.setRoot('build-types/release')
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement