Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
.externalNativeBuild
.cxx
local.properties

.idea/misc.xml
10 changes: 0 additions & 10 deletions .idea/misc.xml

This file was deleted.

13 changes: 12 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ if (localPropertiesFile.exists()) {
val serverUrl: String? =
localProperties.getProperty(
"SERVER_URL",
"se2-demo.aau.at:53213",
"wss://codenames.q1studios.at",
)

val httpServerUrl: String? =
localProperties.getProperty(
"HTTP_SERVER_URL",
"https://codenames.q1studios.at",
)

plugins {
Expand Down Expand Up @@ -123,6 +129,11 @@ android {
"SERVER_URL",
"\"$serverUrl\"",
)
buildConfigField(
"String",
"HTTP_SERVER_URL",
"\"$httpServerUrl\"",
)
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package com.codenames.frontend.network.provider

import com.codenames.frontend.BuildConfig

fun getHttpUrl() = "http://${BuildConfig.SERVER_URL}/"
fun getHttpUrl() = "${BuildConfig.HTTP_SERVER_URL}/"

fun getWsUrl() = "ws://${BuildConfig.SERVER_URL}/ws-fallback"
fun getWsUrl() = "${BuildConfig.SERVER_URL}/ws-fallback"
Loading