gradisteanuc

Untitled

Dec 28th, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. buildscript {
  4. repositories {
  5. jcenter()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:2.2.3'
  9. }
  10. }
  11.  
  12. dependencies {
  13. compile fileTree(include: '*.jar', dir: 'libs')
  14. compile 'com.google.android.gms:play-services:10.0.1'
  15. }
  16.  
  17. android {
  18. compileSdkVersion 23
  19. buildToolsVersion "23.0.3"
  20.  
  21. sourceSets {
  22. main {
  23. manifest.srcFile 'AndroidManifest.xml'
  24. java.srcDirs = ['src']
  25. resources.srcDirs = ['src']
  26. aidl.srcDirs = ['src']
  27. renderscript.srcDirs = ['src']
  28. res.srcDirs = ['res']
  29. assets.srcDirs = ['assets']
  30. }
  31.  
  32. // Move the tests to tests/java, tests/res, etc...
  33. instrumentTest.setRoot('tests')
  34.  
  35. // Move the build types to build-types/<type>
  36. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  37. // This moves them out of them default location under src/<type>/... which would
  38. // conflict with src/ being used by the main source set.
  39. // Adding new build types or product flavors should be accompanied
  40. // by a similar customization.
  41. debug.setRoot('build-types/debug')
  42. release.setRoot('build-types/release')
  43. }
  44. }
Add Comment
Please, Sign In to add comment