deloyment update
This commit is contained in:
1
app/.gitignore
vendored
1
app/.gitignore
vendored
@@ -10,3 +10,4 @@
|
||||
.cxx
|
||||
local.properties
|
||||
app/build
|
||||
*.jks
|
||||
|
||||
@@ -17,8 +17,22 @@ android {
|
||||
versionName = "0.1.0"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
storeFile = file("../haushalt.jks")
|
||||
storePassword = "haushalt123"
|
||||
keyAlias = "haushalt"
|
||||
keyPassword = "haushalt123"
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
buildConfigField("String", "BASE_URL", "\"http://192.168.178.34:8080/\"")
|
||||
}
|
||||
release {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
buildConfigField("String", "BASE_URL", "\"https://haushalt.marha.de/\"")
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package de.haushalt.app.data
|
||||
|
||||
import de.haushalt.app.BuildConfig
|
||||
import kotlinx.serialization.json.Json
|
||||
import okhttp3.MediaType.Companion.toMediaType
|
||||
import okhttp3.OkHttpClient
|
||||
@@ -8,8 +9,8 @@ import retrofit2.Retrofit
|
||||
import retrofit2.converter.kotlinx.serialization.asConverterFactory
|
||||
|
||||
object ApiClient {
|
||||
const val BASE_URL = "http://192.168.178.34:8080/"
|
||||
private const val API_URL = "${BASE_URL}api/"
|
||||
val BASE_URL = BuildConfig.BASE_URL
|
||||
private val API_URL = "${BASE_URL}api/"
|
||||
|
||||
private val json = Json {
|
||||
ignoreUnknownKeys = true
|
||||
|
||||
@@ -16,7 +16,7 @@ interface TaskSchemaApi {
|
||||
suspend fun get(@Path("id") id: Int): TaskSchema
|
||||
|
||||
@POST("task-schemas")
|
||||
suspend fun create(@Body body: TaskSchemaRequest): TaskSchema
|
||||
suspend fun create(@Body body: TaskSchemaRequest)
|
||||
|
||||
@PUT("task-schemas/{id}")
|
||||
suspend fun update(@Path("id") id: Int, @Body body: TaskSchemaRequest): TaskSchema
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"versionCode": 2,
|
||||
"versionCode": 3,
|
||||
"apkFile": "haushalt.apk"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user