build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-parcelize'
  5. }
  6. android {
  7. namespace 'com.khmer9.boxingapplication'
  8. compileSdk 33
  9. defaultConfig {
  10. applicationId "com.khmer9.boxingapplication"
  11. minSdk 24
  12. targetSdk 33
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. kotlinOptions {
  28. jvmTarget = '1.8'
  29. }
  30. buildFeatures {
  31. viewBinding true
  32. }
  33. }
  34. dependencies {
  35. implementation 'androidx.core:core-ktx:1.8.0'
  36. implementation 'androidx.appcompat:appcompat:1.6.1'
  37. implementation 'com.google.android.material:material:1.9.0'
  38. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  39. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
  40. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
  41. implementation 'androidx.navigation:navigation-fragment-ktx:2.6.0'
  42. implementation 'androidx.navigation:navigation-ui-ktx:2.6.0'
  43. implementation 'androidx.recyclerview:recyclerview:1.3.1' // or androidx.recyclerview:recyclerview:1.2.0
  44. implementation 'com.github.bumptech.glide:glide:4.12.0'
  45. testImplementation 'junit:junit:4.13.2'
  46. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  47. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  48. //RxJava & RxAndroid
  49. implementation "io.reactivex.rxjava2:rxjava:2.2.18"
  50. implementation "io.reactivex.rxjava2:rxkotlin:2.4.0"
  51. implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
  52. //Retrofit
  53. def retrofit_version = "2.9.0"
  54. implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
  55. implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
  56. implementation "com.squareup.retrofit2:converter-moshi:$retrofit_version"
  57. implementation 'com.squareup.okhttp3:logging-interceptor:4.7.2'
  58. implementation 'com.localebro:okhttpprofiler:1.0.8'
  59. /*Json Serialize & Deserialize Library*/
  60. implementation("com.squareup.moshi:moshi-kotlin:1.9.2")
  61. implementation("com.squareup.moshi:moshi-kotlin-codegen:1.9.2")
  62. //Socket io client
  63. implementation('io.socket:socket.io-client:2.0.0') {
  64. exclude group: 'org.json', module: 'json'
  65. }
  66. //Logging helper
  67. implementation 'com.jakewharton.timber:timber:4.7.1'
  68. implementation 'com.google.code.gson:gson:2.8.6'
  69. }