build.gradle.kts.hbs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. }
  5. android {
  6. namespace="{{ application_id }}"
  7. compileSdk = 33
  8. defaultConfig {
  9. applicationId = "{{ application_id }}"
  10. minSdk = 24
  11. targetSdk = 33
  12. versionCode = 1
  13. versionName = "1.0"
  14. }
  15. {{#if android_bundle}}
  16. signingConfigs {
  17. create("release") {
  18. storeFile = file("../../../../../../../{{ android_bundle.jks_file }}")
  19. storePassword = "{{ android_bundle.jks_password }}"
  20. keyAlias = "{{ android_bundle.key_alias }}"
  21. keyPassword = "{{ android_bundle.key_password }}"
  22. }
  23. }
  24. {{/if}}
  25. buildTypes {
  26. getByName("debug") {
  27. isDebuggable = true
  28. isJniDebuggable = true
  29. isMinifyEnabled = false
  30. packaging {
  31. jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so")
  32. jniLibs.keepDebugSymbols.add("*/armeabi-v7a/*.so")
  33. jniLibs.keepDebugSymbols.add("*/x86/*.so")
  34. jniLibs.keepDebugSymbols.add("*/x86_64/*.so")
  35. }
  36. }
  37. getByName("release") {
  38. isMinifyEnabled = true
  39. {{#if android_bundle}}
  40. signingConfig = signingConfigs.getByName("release")
  41. {{/if}}
  42. proguardFiles(
  43. *fileTree(".") { include("**/*.pro") }
  44. .plus(getDefaultProguardFile("proguard-android-optimize.txt"))
  45. .toList().toTypedArray()
  46. )
  47. }
  48. }
  49. kotlinOptions {
  50. jvmTarget = "1.8"
  51. }
  52. buildFeatures {
  53. buildConfig = true
  54. }
  55. }
  56. dependencies {
  57. implementation("androidx.webkit:webkit:1.6.1")
  58. implementation("androidx.appcompat:appcompat:1.6.1")
  59. implementation("com.google.android.material:material:1.8.0")
  60. }