Add build flavors for urls #157
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user