build.gradle 2.8 KB

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