build.gradle 2.5 KB

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