Add build flavors for urls #157

Merged
handte merged 1 commits from feature/build_flavors into master 2021-03-01 20:31:04 +01:00
2 changed files with 13 additions and 2 deletions
+13 -1
View File
@@ -120,7 +120,19 @@ android {
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-dbg"
resValue "string", "application_long", "MoWeSta (Debug)"
}
}
flavorDimensions "backend"
productFlavors {
beta {
dimension "backend"
applicationIdSuffix ".beta"
resValue "string", "mowesta_url_default", "https://beta.mowesta.com/api"
resValue "string", "application_long", "MoWeSta Beta"
}
prod {
dimension "backend"
resValue "string", "mowesta_url_default", "https://www.mowesta.com/api"
}
}
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="mowesta_url_default" translatable="false">https://www.mowesta.com/api</string>
<string name="ude_url" translatable="false">https://www.mowesta.com</string>
<string name="fair_url" translatable="false">https://www.fair-opendata.de</string>
<string name="news_url" translatable="false">https://www.mowesta.com/category/news</string>