build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. compile files('libs/cryptix-jce-provider.jar')
  28. compile files('libs/hazelcast/hazelcast-2.4.jar')
  29. compile files('libs/service/wrapper.jar')
  30. }
  31. android {
  32. compileSdkVersion 19
  33. buildToolsVersion "19.1.0"
  34. defaultConfig {
  35. versionCode 2
  36. versionName "2.0"
  37. minSdkVersion 14
  38. targetSdkVersion 19
  39. }
  40. sourceSets {
  41. main {
  42. manifest.srcFile 'AndroidManifest.xml'
  43. java.srcDirs = ['src']
  44. resources.srcDirs = ['src']
  45. aidl.srcDirs = ['src']
  46. renderscript.srcDirs = ['src']
  47. res.srcDirs = ['res']
  48. assets.srcDirs = ['assets']
  49. }
  50. // Move the tests to tests/java, tests/res, etc...
  51. instrumentTest.setRoot('tests')
  52. // Move the build types to build-types/<type>
  53. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  54. // This moves them out of them default location under src/<type>/... which would
  55. // conflict with src/ being used by the main source set.
  56. // Adding new build types or product flavors should be accompanied
  57. // by a similar customization.
  58. debug.setRoot('build-types/debug')
  59. release.setRoot('build-types/release')
  60. }
  61. // signing for release only works in the console
  62. boolean doSigningForRelease = System.console() != null
  63. if (doSigningForRelease) {
  64. signingConfigs {
  65. release {
  66. storeFile file(System.console().readLine("\n\$ Enter keystore path: "))
  67. storePassword System.console().readLine("\n\$ Enter keystore password: ")
  68. keyAlias System.console().readLine("\n\$ Enter key alias: ")
  69. keyPassword System.console().readLine("\n\$ Enter key password: ")
  70. }
  71. }
  72. }
  73. buildTypes {
  74. debug {
  75. debuggable true
  76. jniDebuggable true
  77. }
  78. if (doSigningForRelease) {
  79. release {
  80. debuggable false
  81. jniDebuggable false
  82. signingConfig signingConfigs.release
  83. }
  84. }
  85. }
  86. lintOptions {
  87. abortOnError false
  88. }
  89. }