build.gradle.kts 3.4 KB

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