Create utils module, move Log class there

BuildConfig class is now only created in the utils module
This commit is contained in:
albexk 2023-11-16 15:15:02 +03:00
parent 2fde47a86f
commit f1c970461f
4 changed files with 19 additions and 1 deletions

View file

@ -16,7 +16,6 @@ android {
namespace = "org.amnezia.vpn" namespace = "org.amnezia.vpn"
buildFeatures { buildFeatures {
buildConfig = true
viewBinding = true viewBinding = true
} }
@ -81,6 +80,7 @@ android {
dependencies { dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar")))) implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
implementation(project(":qt")) implementation(project(":qt"))
implementation(project(":utils"))
implementation(libs.androidx.core) implementation(libs.androidx.core)
implementation(libs.androidx.appcompat) implementation(libs.androidx.appcompat)
implementation(libs.androidx.security.crypto) implementation(libs.androidx.security.crypto)

View file

@ -34,6 +34,7 @@ rootProject.name = "AmneziaVPN"
rootProject.buildFileName = "build.gradle.kts" rootProject.buildFileName = "build.gradle.kts"
include(":qt") include(":qt")
include(":utils")
// get values from gradle or local properties // get values from gradle or local properties
val androidBuildToolsVersion: String by gradleProperties val androidBuildToolsVersion: String by gradleProperties

View file

@ -0,0 +1,17 @@
plugins {
id(libs.plugins.android.library.get().pluginId)
id(libs.plugins.kotlin.android.get().pluginId)
}
kotlin {
jvmToolchain(17)
}
android {
namespace = "org.amnezia.vpn"
buildFeatures {
// add BuildConfig class
buildConfig = true
}
}