build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:1.5.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 7
  37. versionName "1.3"
  38. minSdkVersion 14
  39. targetSdkVersion 19
  40. signingConfig signingConfigs.config
  41. }
  42. sourceSets {
  43. main {
  44. manifest.srcFile 'AndroidManifest.xml'
  45. java.srcDirs = ['src']
  46. resources.srcDirs = ['src']
  47. aidl.srcDirs = ['src']
  48. renderscript.srcDirs = ['src']
  49. res.srcDirs = ['res']
  50. assets.srcDirs = ['assets']
  51. }
  52. // Move the tests to tests/java, tests/res, etc...
  53. instrumentTest.setRoot('tests')
  54. // Move the build types to build-types/<type>
  55. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  56. // This moves them out of them default location under src/<type>/... which would
  57. // conflict with src/ being used by the main source set.
  58. // Adding new build types or product flavors should be accompanied
  59. // by a similar customization.
  60. debug.setRoot('build-types/debug')
  61. release.setRoot('build-types/release')
  62. }
  63. // signing for release only works in the console
  64. boolean doSigningForRelease = System.console() != null
  65. if (doSigningForRelease) {
  66. signingConfigs {
  67. release {
  68. storeFile file(System.console().readLine("\n\$ Enter keystore path: "))
  69. storePassword System.console().readLine("\n\$ Enter keystore password: ")
  70. keyAlias System.console().readLine("\n\$ Enter key alias: ")
  71. keyPassword System.console().readLine("\n\$ Enter key password:")
  72. }
  73. }
  74. }
  75. buildTypes {
  76. debug {
  77. debuggable true
  78. jniDebuggable true
  79. resValue "string", "google_maps_api_key", "AIzaSyDs3xp1-2KQojns5h7mWHHdQxAL-5AZ-q4"
  80. }
  81. if (doSigningForRelease) {
  82. release {
  83. debuggable false
  84. jniDebuggable false
  85. signingConfig signingConfigs.release
  86. resValue "string", "google_maps_api_key", "AIzaSyDs3xp1-2KQojns5h7mWHHdQxAL-5AZ-q4"
  87. }
  88. }
  89. release {
  90. signingConfig signingConfigs.config
  91. }
  92. }
  93. lintOptions {
  94. abortOnError false
  95. }
  96. productFlavors {
  97. }
  98. }