Skip to content

Commit 04c9e9f

Browse files
Merge pull request #584 from bcgov/feature/HAPP-1905
HAPP-1905
2 parents dfb942b + fde1e5d commit 04c9e9f

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ captures/
5353
.idea/androidTestResultsUserPreferences.xml
5454
.idea/kotlinc.xml
5555
.idea/migrations.xml
56+
.idea/deploymentTargetSelector.xml
57+
.idea/other.xml
5658
# Android Studio 3 in .gitignore file.
5759
.idea/caches
5860
.idea/modules.xml

data/src/main/java/ca/bc/gov/data/datasource/remote/api/HealthGatewayMobileConfigApi.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import retrofit2.http.Query
1111
interface HealthGatewayMobileConfigApi {
1212

1313
companion object {
14-
private const val MOBILE_CONFIGURATION = "MobileConfiguration"
14+
private const val MOBILE_CONFIGURATION = "mobileconfiguration"
1515
}
1616

1717
@GET(MOBILE_CONFIGURATION)

data/src/main/java/ca/bc/gov/data/datasource/remote/model/response/MobileConfigurationResponse.kt

+6
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@ data class AuthenticationResponse(
3737

3838
@SerializedName("clientId")
3939
val clientId: String,
40+
41+
@SerializedName("androidClientId")
42+
val androidClientId: String,
43+
44+
@SerializedName("iosClientId")
45+
val iosClientId: String
4046
)

repository/src/main/java/ca/bc/gov/repository/worker/MobileConfigRepository.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MobileConfigRepository @Inject constructor(
5656
encryptedPreferenceStorage.apply {
5757
baseUrl = response.baseUrl
5858
authenticationEndpoint = response.authentication.endpoint
59-
clientId = response.authentication.clientId
59+
clientId = response.authentication.androidClientId
6060
identityProviderId = response.authentication.identityProviderId
6161
baseUrlIsOnline = response.online ?: false
6262
patientDataFeatureFlag = response.patientDataSets.toSet()

scripts/versions.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ versions.targetSdkVersion = 33
66
versions.compileSdkVersion = 33
77

88
//App
9-
versions.versionName = '2.2.0'
10-
versions.versionCode = 240
9+
versions.versionName = '2.2.1'
10+
versions.versionCode = 241
1111
versions.localApiVersion = 3
1212

1313
//Tools & Libs

0 commit comments

Comments
 (0)