build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.0.0'
  7. }
  8. }
  9. apply plugin: 'com.android.application'
  10. repositories {
  11. mavenCentral()
  12. maven {
  13. url 'https://oss.sonatype.org/content/groups/public'
  14. }
  15. }
  16. dependencies {
  17. compile 'com.google.android.gms:play-services:4.+'
  18. compile 'org.roboguice:roboguice:2.0'
  19. compile files('libs/nineoldandroids-2.4.0.jar')
  20. compile 'com.android.support:support-v4:18.0.0'
  21. //compile fileTree(dir: 'libs', include: '*.jar')
  22. compile files('libs/swipelistview-1.0.jar')
  23. compile files('libs/sshlib-v1.1.jar')
  24. compile files('libs/chart-library2.2.jar')
  25. //compile files('libs/jlan-5.jar')
  26. compile files('libs/alfresco-jlan.jar')
  27. }
  28. android {
  29. compileSdkVersion 19
  30. buildToolsVersion "19.1.0"
  31. defaultConfig {
  32. versionCode 2
  33. versionName "2.0"
  34. minSdkVersion 14
  35. targetSdkVersion 19
  36. }
  37. sourceSets {
  38. main {
  39. manifest.srcFile 'AndroidManifest.xml'
  40. java.srcDirs = ['src']
  41. resources.srcDirs = ['src']
  42. aidl.srcDirs = ['src']
  43. renderscript.srcDirs = ['src']
  44. res.srcDirs = ['res']
  45. assets.srcDirs = ['assets']
  46. }
  47. // Move the tests to tests/java, tests/res, etc...
  48. instrumentTest.setRoot('tests')
  49. // Move the build types to build-types/<type>
  50. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  51. // This moves them out of them default location under src/<type>/... which would
  52. // conflict with src/ being used by the main source set.
  53. // Adding new build types or product flavors should be accompanied
  54. // by a similar customization.
  55. debug.setRoot('build-types/debug')
  56. release.setRoot('build-types/release')
  57. }
  58. // signing for release only works in the console
  59. boolean doSigningForRelease = System.console() != null
  60. if (doSigningForRelease) {
  61. signingConfigs {
  62. release {
  63. storeFile file(System.console().readLine("\n\$ Enter keystore path: "))
  64. storePassword System.console().readLine("\n\$ Enter keystore password: ")
  65. keyAlias System.console().readLine("\n\$ Enter key alias: ")
  66. keyPassword System.console().readLine("\n\$ Enter key password: ")
  67. }
  68. }
  69. }
  70. buildTypes {
  71. debug {
  72. debuggable true
  73. jniDebuggable true
  74. }
  75. if (doSigningForRelease) {
  76. release {
  77. debuggable false
  78. jniDebuggable false
  79. signingConfig signingConfigs.release
  80. }
  81. }
  82. }
  83. lintOptions {
  84. abortOnError false
  85. }
  86. }