update gradle

This commit is contained in:
shaulascr
2025-04-11 16:46:26 +07:00
parent 4c7526e980
commit 59b44c932e
15 changed files with 96 additions and 42 deletions

View File

@ -1,3 +1,4 @@
import java.util.Properties
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
@ -7,6 +8,14 @@ plugins {
// id("com.google.dagger.hilt.android")
}
val localProperties = Properties().apply {
val localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
load(localPropertiesFile.inputStream())
}
}
android {
namespace = "com.alya.ecommerce_serang"
compileSdk = 34
@ -23,7 +32,7 @@ android {
buildTypes {
release {
buildConfigField("String", "BASE_URL", "\"http://192.168.1.5:3000/\"")
buildConfigField("String", "BASE_URL", "\"http://192.168.1.6:3000/\"")
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
@ -31,7 +40,7 @@ android {
)
}
debug {
buildConfigField("String", "BASE_URL", "\"http://192.168.1.5:3000/\"")
buildConfigField("String", "BASE_URL", "\"http://192.168.1.6:3000/\"")
}
}
compileOptions {