build.gradle 3.0 KB

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