Skip to content

Commit

Permalink
Merge pull request #111 from realifetech/feature/AVF-89
Browse files Browse the repository at this point in the history
Feature/avf 89
  • Loading branch information
adrianaudienceview authored Jul 4, 2023
2 parents 2e47363 + 1064aff commit 0cfc0f8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .scripts/fetchGraphQlSchema.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
TOKEN=$(echo "$1")
./gradlew :sdk:downloadApolloSchema -Pcom.apollographql.apollo.endpoint='https://staging-graphql-eu.realifetech.com/' -Pcom.apollographql.apollo.schema='src/main/graphql/com/realifetech/schema.json' --header="Authorization: Bearer NGZjZjViZDE2YTk5MjU1YzJlMzk3MDYxYzhmZjc4MzBlMDQxYzg2MjYwMTNmYTAwY2IyMzI4NzlkNWI3YzEzNw"
./gradlew :sdk:downloadApolloSchema -Pcom.apollographql.apollo.endpoint='https://staging-graphql-eu.realifetech.com/' -Pcom.apollographql.apollo.schema='src/main/graphql/com/realifetech/schema.json' --header="Authorization: Bearer ZDkxYmY1MjgxYjM3MWQ0ZDY4YjNkMTI5NTRiY2YwYTU5M2RmZmQ4ZGU2OWZjMjIzNjNhMjU5MzA0MGExZmQ2Zg"
6 changes: 3 additions & 3 deletions sdk/sdk.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#Mon May 08 11:29:53 CLT 2023
sdk.buildmeta=
sdk.major=2
sdk.minor=3
sdk.patch=1
sdk.minor=4
sdk.patch=0
sdk.prerelease=
sdk.semver=
sdk.semver=2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ fragment FragmentTicket on Ticket {
value
}
printed
timezone
}
3 changes: 1 addition & 2 deletions sdk/src/main/graphql/com/realifetech/schema.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ data class Ticket(
val redeemerEmail: String?,
val sharerEmail: String?,
val additionalFields: MutableList<AdditionalField?>?,
val printed: Boolean?
val printed: Boolean?,
val timezone: String?
) : Parcelable


Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ val FragmentTicket.asModel: Ticket
redeemerEmail = redeemerEmail,
sharerEmail = sharerEmail,
additionalFields = additionalFields?.map { it?.asModel }?.toMutableList(),
printed = printed
printed = printed,
timezone = timezone
)

val FragmentTicket.Currency.asModel: Currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.realifetech.sdk.general.data
import android.bluetooth.BluetoothAdapter
import android.content.Context
import android.os.Build
import android.provider.Settings
import android.util.DisplayMetrics
import com.realifetech.sdk.core.data.database.preferences.configuration.ConfigurationStorage
import com.realifetech.sdk.core.utils.isWifiConnected
Expand All @@ -24,7 +25,7 @@ open class PhysicalDeviceInfo @Inject constructor(
}

override val deviceId: String
get() = UUID.randomUUID().toString() + ":" + context.packageName
get() = Settings.Secure.getString(context.contentResolver, Settings.Secure.ANDROID_ID) + ":" + context.packageName

override val appVersionName: String
get() = configurationStorage.appVersion
Expand Down

0 comments on commit 0cfc0f8

Please sign in to comment.