deloyment update

This commit is contained in:
Marek
2026-04-12 21:11:39 +02:00
parent f8f316461c
commit df7f956f2d
6 changed files with 20 additions and 4 deletions

1
app/.gitignore vendored
View File

@@ -10,3 +10,4 @@
.cxx .cxx
local.properties local.properties
app/build app/build
*.jks

View File

@@ -17,8 +17,22 @@ android {
versionName = "0.1.0" versionName = "0.1.0"
} }
signingConfigs {
create("release") {
storeFile = file("../haushalt.jks")
storePassword = "haushalt123"
keyAlias = "haushalt"
keyPassword = "haushalt123"
}
}
buildTypes { buildTypes {
debug {
buildConfigField("String", "BASE_URL", "\"http://192.168.178.34:8080/\"")
}
release { release {
signingConfig = signingConfigs.getByName("release")
buildConfigField("String", "BASE_URL", "\"https://haushalt.marha.de/\"")
isMinifyEnabled = false isMinifyEnabled = false
proguardFiles( proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),

View File

@@ -1,5 +1,6 @@
package de.haushalt.app.data package de.haushalt.app.data
import de.haushalt.app.BuildConfig
import kotlinx.serialization.json.Json import kotlinx.serialization.json.Json
import okhttp3.MediaType.Companion.toMediaType import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
@@ -8,8 +9,8 @@ import retrofit2.Retrofit
import retrofit2.converter.kotlinx.serialization.asConverterFactory import retrofit2.converter.kotlinx.serialization.asConverterFactory
object ApiClient { object ApiClient {
const val BASE_URL = "http://192.168.178.34:8080/" val BASE_URL = BuildConfig.BASE_URL
private const val API_URL = "${BASE_URL}api/" private val API_URL = "${BASE_URL}api/"
private val json = Json { private val json = Json {
ignoreUnknownKeys = true ignoreUnknownKeys = true

View File

@@ -16,7 +16,7 @@ interface TaskSchemaApi {
suspend fun get(@Path("id") id: Int): TaskSchema suspend fun get(@Path("id") id: Int): TaskSchema
@POST("task-schemas") @POST("task-schemas")
suspend fun create(@Body body: TaskSchemaRequest): TaskSchema suspend fun create(@Body body: TaskSchemaRequest)
@PUT("task-schemas/{id}") @PUT("task-schemas/{id}")
suspend fun update(@Path("id") id: Int, @Body body: TaskSchemaRequest): TaskSchema suspend fun update(@Path("id") id: Int, @Body body: TaskSchemaRequest): TaskSchema

Binary file not shown.

View File

@@ -1,4 +1,4 @@
{ {
"versionCode": 2, "versionCode": 3,
"apkFile": "haushalt.apk" "apkFile": "haushalt.apk"
} }