build.gradle.kts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. plugins {
  2. id("com.android.application")
  3. id("dagger.hilt.android.plugin")
  4. kotlin("android")
  5. kotlin("android.extensions")
  6. kotlin("kapt")
  7. }
  8. android {
  9. compileSdkVersion(30)
  10. defaultConfig {
  11. applicationId = "com.jkuester.unlauncher"
  12. minSdkVersion(21)
  13. targetSdkVersion(30)
  14. versionName = "0.2.0"
  15. versionCode = 5
  16. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  17. vectorDrawables { useSupportLibrary = true }
  18. // signingConfigs {
  19. // register("release") {
  20. // storeFile = file(project.extra["RELEASE_STORE_FILE"] as String)
  21. // storePassword = project.extra["RELEASE_STORE_PASSWORD"] as String
  22. // keyAlias = project.extra["RELEASE_KEY_ALIAS"] as String
  23. // keyPassword = project.extra["RELEASE_KEY_PASSWORD"] as String
  24. // }
  25. // }
  26. }
  27. buildTypes {
  28. named("release").configure {
  29. isMinifyEnabled = true
  30. isShrinkResources = true
  31. proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
  32. // signingConfig = signingConfigs.getByName("release")
  33. }
  34. named("debug").configure {
  35. isMinifyEnabled = false
  36. proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
  37. }
  38. }
  39. compileOptions {
  40. sourceCompatibility = JavaVersion.VERSION_1_8
  41. targetCompatibility = JavaVersion.VERSION_1_8
  42. }
  43. kotlinOptions {
  44. jvmTarget = JavaVersion.VERSION_1_8.toString()
  45. }
  46. lintOptions{
  47. disable = mutableSetOf("MissingTranslation")
  48. }
  49. applicationVariants.all{
  50. outputs.all {
  51. (this as com.android.build.gradle.internal.api.BaseVariantOutputImpl).outputFileName = "${applicationId}.apk"
  52. }
  53. }
  54. }
  55. dependencies {
  56. implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
  57. // Kotlin Libraries
  58. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72")
  59. // Support Libraries
  60. implementation("androidx.appcompat:appcompat:1.2.0")
  61. implementation("androidx.recyclerview:recyclerview:1.1.0")
  62. implementation("androidx.constraintlayout:constraintlayout:2.0.1")
  63. // Arch Components
  64. implementation("androidx.core:core-ktx:1.5.0-alpha02")
  65. implementation("androidx.fragment:fragment-ktx:1.2.5")
  66. implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
  67. implementation("androidx.navigation:navigation-fragment-ktx:2.3.0")
  68. implementation("androidx.room:room-runtime:2.2.5")
  69. implementation("androidx.lifecycle:lifecycle-common-java8:2.2.0")
  70. kapt("androidx.room:room-compiler:2.2.5")
  71. //3rd party libs
  72. implementation("com.intuit.sdp:sdp-android:1.0.6")
  73. implementation("com.intuit.ssp:ssp-android:1.0.6")
  74. implementation("com.google.dagger:hilt-android:2.28-alpha")
  75. implementation("androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02")
  76. kapt("androidx.hilt:hilt-compiler:1.0.0-alpha02")
  77. kapt("com.google.dagger:hilt-android-compiler:2.28-alpha")
  78. // Test libs
  79. testImplementation("junit:junit:4.12")
  80. testImplementation("org.mockito:mockito-core:2.19.0")
  81. androidTestImplementation("androidx.room:room-testing:2.2.5")
  82. androidTestImplementation("androidx.test:runner:1.3.0")
  83. androidTestImplementation("androidx.test:rules:1.3.0")
  84. androidTestImplementation("androidx.annotation:annotation:1.1.0")
  85. androidTestImplementation("androidx.test:runner:1.3.0")
  86. androidTestImplementation("androidx.test:rules:1.3.0")
  87. androidTestImplementation("androidx.arch.core:core-testing:2.1.0")
  88. androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
  89. androidTestImplementation("androidx.test.espresso:espresso-intents:3.3.0")
  90. }