Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Add prodfdroid build flavour
Browse files Browse the repository at this point in the history
This copies everything from prod, but raises the minSdkVersion to 24.
See #304.
  • Loading branch information
goebelUB committed Nov 10, 2021
1 parent 1513baa commit 920bb93
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ android {
dev {}
abn {}
prod {}
prodfdroid {
minSdkVersion 24
}
}

flavorDimensions "version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ object EnvironmentUtil {
"dev" -> SdkEnvironment.DEV
"abn" -> SdkEnvironment.ABN
"prod" -> SdkEnvironment.PROD
"prodfdroid" -> SdkEnvironment.PROD
else -> throw IllegalArgumentException("Unknown environment $flavor")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package ch.admin.bag.covidcertificate.common.debug
/*
* Copyright (c) 2021 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

import android.content.Context
import androidx.fragment.app.Fragment

open class DebugFragment : Fragment() {

companion object {
fun newInstance(): DebugFragment = DebugFragment()

const val EXISTS = false

fun initDebug(context: Context) {}
}

}
5 changes: 5 additions & 0 deletions verifier/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ android {
buildConfigField "String", "BASE_URL", '"https://www.cc.bit.admin.ch/app/verifier/v1/"'
buildConfigField "String", "SDK_APP_TOKEN", '"25958ed0-7790-4846-9341-7c7ef87ec389"'
}
prodfdroid {
minSdkVersion 24
buildConfigField "String", "BASE_URL", '"https://www.cc.bit.admin.ch/app/verifier/v1/"'
buildConfigField "String", "SDK_APP_TOKEN", '"25958ed0-7790-4846-9341-7c7ef87ec389"'
}
}

flavorDimensions "version"
Expand Down
7 changes: 7 additions & 0 deletions wallet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ android {
buildConfigField "String", "BASE_URL_TRANSFORMATION", '"https://covidcertificate-app.bit.admin.ch/app/transform/v1/"'
buildConfigField "String", "SDK_APP_TOKEN", '"0795dc8b-d8d0-4313-abf2-510b12d50939"'
}
prodfdroid {
minSdkVersion 24
buildConfigField "String", "BASE_URL", '"https://www.cc.bit.admin.ch/app/wallet/v1/"'
buildConfigField "String", "BASE_URL_DELIVERY", '"https://covidcertificate-app.bit.admin.ch/app/delivery/v1/"'
buildConfigField "String", "BASE_URL_TRANSFORMATION", '"https://covidcertificate-app.bit.admin.ch/app/transform/v1/"'
buildConfigField "String", "SDK_APP_TOKEN", '"0795dc8b-d8d0-4313-abf2-510b12d50939"'
}
}

flavorDimensions "version"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package ch.admin.bag.covidcertificate.wallet.debug
/*
* Copyright (c) 2021 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/


import ch.admin.bag.covidcertificate.common.debug.DebugFragment

class WalletDebugFragment : DebugFragment() {
companion object {
fun newInstance(): DebugFragment = DebugFragment()
}
}

0 comments on commit 920bb93

Please sign in to comment.