build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. apply plugin: 'com.android.application'
  2. apply from: '../config/git-version.gradle'
  3. android {
  4. compileSdkVersion 29
  5. buildToolsVersion "29.0.3"
  6. defaultConfig {
  7. applicationId "com.fusi24.rfid"
  8. minSdkVersion 21
  9. targetSdkVersion 29
  10. versionCode gitVersionCode
  11. versionName gitVersionName
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. // Make generated archive contain version name and code.
  14. archivesBaseName = "Entry Permit Scanner-${gitVersionName}"
  15. }
  16. buildFeatures {
  17. viewBinding = true
  18. }
  19. signingConfigs {
  20. release {
  21. keyAlias 'rfid-hse-fusi'
  22. keyPassword 'spontanuhuy'
  23. storeFile file('../keystore.jks')
  24. storePassword 'password'
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. compileOptions {
  34. sourceCompatibility JavaVersion.VERSION_1_8
  35. targetCompatibility JavaVersion.VERSION_1_8
  36. }
  37. }
  38. dependencies {
  39. implementation fileTree(dir: 'libs', include: ['*.jar'])
  40. implementation 'androidx.appcompat:appcompat:1.1.0'
  41. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  42. implementation "androidx.recyclerview:recyclerview:1.1.0"
  43. implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
  44. implementation "com.google.android.material:material:1.1.0"
  45. //GMS Play Service
  46. implementation 'com.google.android.gms:play-services-location:17.0.0'
  47. //Timber
  48. implementation 'com.jakewharton.timber:timber:4.7.1'
  49. //RX JAVA
  50. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  51. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
  52. //GSON
  53. implementation 'com.google.code.gson:gson:2.8.6'
  54. //OKHTTP
  55. implementation 'com.squareup.okio:okio:2.7.0-alpha.lockfree.1'
  56. implementation 'com.squareup.okhttp3:okhttp:4.7.2'
  57. implementation 'com.squareup.okhttp3:logging-interceptor:4.7.2'
  58. //RETROFIT
  59. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  60. //Circle Image
  61. implementation 'de.hdodenhof:circleimageview:3.1.0'
  62. //Glide Image Processing
  63. implementation 'com.github.bumptech.glide:glide:4.11.0'
  64. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  65. //Light Stream
  66. implementation 'com.annimon:stream:1.2.1'
  67. // Toggle Button
  68. implementation 'com.github.angads25:toggle:1.1.0'
  69. // Simple Location
  70. implementation 'com.github.delight-im:Android-SimpleLocation:v1.1.0'
  71. //Serial Port
  72. implementation files('libs/serialport.jar')
  73. implementation files('libs/android-async-http-1.4.9.jar')
  74. implementation files('libs/httpclient-4.4.1.1.jar')
  75. testImplementation 'junit:junit:4.13'
  76. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  77. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  78. }