build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. }
  14. buildFeatures {
  15. viewBinding = true
  16. }
  17. signingConfigs {
  18. release {
  19. keyAlias 'rfid-hse-fusi'
  20. keyPassword 'spontanuhuy'
  21. storeFile file('../keystore.jks')
  22. storePassword 'password'
  23. }
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. }
  36. dependencies {
  37. implementation fileTree(dir: 'libs', include: ['*.jar'])
  38. implementation 'androidx.appcompat:appcompat:1.1.0'
  39. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  40. implementation "androidx.recyclerview:recyclerview:1.1.0"
  41. //Timber
  42. implementation 'com.jakewharton.timber:timber:4.7.1'
  43. //RX JAVA
  44. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  45. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
  46. //GSON
  47. implementation 'com.google.code.gson:gson:2.8.6'
  48. //OKHTTP
  49. implementation 'com.squareup.okio:okio:2.7.0-alpha.lockfree.1'
  50. implementation 'com.squareup.okhttp3:okhttp:4.7.2'
  51. implementation 'com.squareup.okhttp3:logging-interceptor:4.7.2'
  52. //RETROFIT
  53. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  54. //Circle Image
  55. implementation 'de.hdodenhof:circleimageview:3.1.0'
  56. //Glide Image Processing
  57. implementation 'com.github.bumptech.glide:glide:4.11.0'
  58. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  59. //Serial Port
  60. implementation files('libs/serialport.jar')
  61. implementation files('libs/android-async-http-1.4.9.jar')
  62. implementation files('libs/httpclient-4.4.1.1.jar')
  63. testImplementation 'junit:junit:4.13'
  64. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  65. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  66. }