build.gradle.kts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. }
  5. android {
  6. namespace="com.example.androidfinal"
  7. compileSdk = 33
  8. defaultConfig {
  9. applicationId = "com.example.androidfinal"
  10. minSdk = 24
  11. targetSdk = 33
  12. versionCode = 1
  13. versionName = "1.0"
  14. }
  15. buildTypes {
  16. getByName("debug") {
  17. isDebuggable = true
  18. isJniDebuggable = true
  19. isMinifyEnabled = false
  20. packaging {
  21. jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so")
  22. jniLibs.keepDebugSymbols.add("*/armeabi-v7a/*.so")
  23. jniLibs.keepDebugSymbols.add("*/x86/*.so")
  24. jniLibs.keepDebugSymbols.add("*/x86_64/*.so")
  25. }
  26. }
  27. getByName("release") {
  28. isMinifyEnabled = true
  29. proguardFiles(
  30. *fileTree(".") { include("**/*.pro") }
  31. .plus(getDefaultProguardFile("proguard-android-optimize.txt"))
  32. .toList().toTypedArray()
  33. )
  34. }
  35. }
  36. kotlinOptions {
  37. jvmTarget = "1.8"
  38. }
  39. buildFeatures {
  40. buildConfig = true
  41. }
  42. }
  43. dependencies {
  44. implementation("androidx.webkit:webkit:1.6.1")
  45. implementation("androidx.appcompat:appcompat:1.6.1")
  46. implementation("com.google.android.material:material:1.8.0")
  47. }