build.gradle.kts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. id("com.google.gms.google-services")
  5. id("com.google.firebase.crashlytics")
  6. }
  7. android {
  8. namespace = "com.vpn.fastestvpnservice"
  9. compileSdk = 34
  10. defaultConfig {
  11. applicationId = "com.vpn.fastestvpnservice"
  12. minSdk = 21
  13. targetSdk = 34
  14. versionCode = 1
  15. versionName = "1.0"
  16. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  17. vectorDrawables {
  18. useSupportLibrary = true
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. isMinifyEnabled = false
  24. proguardFiles(
  25. getDefaultProguardFile("proguard-android-optimize.txt"),
  26. "proguard-rules.pro"
  27. )
  28. }
  29. debug {
  30. isMinifyEnabled = false
  31. proguardFiles(
  32. getDefaultProguardFile("proguard-android-optimize.txt"),
  33. "proguard-rules.pro"
  34. )
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility = JavaVersion.VERSION_1_8
  39. targetCompatibility = JavaVersion.VERSION_1_8
  40. }
  41. kotlinOptions {
  42. jvmTarget = "1.8"
  43. }
  44. buildFeatures {
  45. compose = true
  46. }
  47. composeOptions {
  48. kotlinCompilerExtensionVersion = "1.5.1"
  49. }
  50. packaging {
  51. resources {
  52. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  53. }
  54. }
  55. }
  56. dependencies {
  57. implementation("androidx.core:core-ktx:1.12.0")
  58. implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
  59. implementation("androidx.activity:activity-compose:1.8.2")
  60. implementation("androidx.fragment:fragment-ktx:1.6.2")
  61. implementation("androidx.activity:activity-ktx:1.8.2")
  62. implementation(platform("androidx.compose:compose-bom:2023.08.00"))
  63. implementation("androidx.compose.ui:ui")
  64. implementation("androidx.compose.ui:ui-graphics")
  65. implementation("androidx.compose.ui:ui-tooling-preview")
  66. implementation("androidx.compose.material3:material3:1.2.0")
  67. implementation("androidx.compose.material:material:1.6.1")
  68. implementation("androidx.navigation:navigation-compose:2.7.7")
  69. implementation("androidx.compose.material:material-icons-extended:1.6.1")
  70. implementation("androidx.compose.ui:ui-text-google-fonts:1.6.1")
  71. implementation("androidx.compose.foundation:foundation:1.6.3")
  72. // Retrofit
  73. implementation("com.squareup.retrofit2:retrofit:2.9.0")
  74. implementation("com.squareup.retrofit2:converter-gson:2.9.0")
  75. implementation("com.squareup.okhttp3:logging-interceptor:4.9.0")
  76. // Coroutines
  77. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1")
  78. implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
  79. implementation("androidx.compose.runtime:runtime-livedata:1.6.1")
  80. implementation("com.wireguard.android:tunnel:1.0.20210211")
  81. // Ping
  82. implementation("com.github.stealthcopter:AndroidNetworkTools:0.4.5.3")
  83. // Billing
  84. implementation("com.android.billingclient:billing:6.1.0")
  85. implementation("io.coil-kt:coil-compose:1.3.1")
  86. implementation("com.google.accompanist:accompanist-drawablepainter:0.34.0")
  87. implementation("com.google.firebase:firebase-crashlytics:18.6.2")
  88. implementation("com.google.firebase:firebase-messaging:23.4.1")
  89. // implementation("com.firebase:firebase-jobdispatcher:0.8.5")
  90. testImplementation("junit:junit:4.13.2")
  91. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  92. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  93. androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
  94. androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  95. debugImplementation("androidx.compose.ui:ui-tooling")
  96. debugImplementation("androidx.compose.ui:ui-test-manifest")
  97. }