Skip to content

Commit

Permalink
- Upgrade Tickets SDK version.
Browse files Browse the repository at this point in the history
  • Loading branch information
luism-burgos committed Feb 22, 2024
1 parent 92fbc38 commit f7da77e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
//Tickets SDK
implementation 'com.ticketmaster.tickets:secure-entry:1.2.9'
implementation 'com.ticketmaster.tickets:tickets:3.4.1'
implementation 'com.ticketmaster.tickets:tickets:3.4.2'
//Accounts SDK
implementation 'com.ticketmaster.accounts:authentication:3.4.0'
// Retail SDK
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- YOUR SCHEME will be provided in your app settings, copy it to this location -->
<data android:scheme="psdkschemefalcons" />
<data android:scheme="psdkscheme[client scheme name]" />
</intent-filter>
</activity>
</application>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import com.ticketmaster.tickets.TicketsModuleDelegate
import com.ticketmaster.tickets.event_tickets.DirectionsModule
import com.ticketmaster.tickets.event_tickets.ModuleBase
import com.ticketmaster.tickets.event_tickets.NAMWebPageSettings
import com.ticketmaster.tickets.event_tickets.TicketsSDKModule
import com.ticketmaster.tickets.event_tickets.SeatUpgradesModule
import com.ticketmaster.tickets.event_tickets.TicketsSDKModule
import com.ticketmaster.tickets.event_tickets.modules.next_home_game.NextHomeGameModule
import com.ticketmaster.tickets.event_tickets.modules.upcoming_artist_team.UpcomingArtistTeamModule
import com.ticketmaster.tickets.event_tickets.modules.upcoming_venue.UpcomingVenueModule
Expand Down Expand Up @@ -247,7 +247,10 @@ class TicketsSdkHostActivity : AppCompatActivity() {
modules.add(
SeatUpgradesModule(
context = this@TicketsSdkHostActivity,
webPageSettings = NAMWebPageSettings(this@TicketsSdkHostActivity, order.tickets[0].eventSource),
webPageSettings = NAMWebPageSettings(
this@TicketsSdkHostActivity,
order.tickets[0].eventSource
),
eventId = order.eventId
).build()
)
Expand Down Expand Up @@ -380,13 +383,13 @@ class TicketsSdkHostActivity : AppCompatActivity() {
//Validates if there is an access token for each AuthSource, if there is one active, returns true.
private suspend fun isLoggedIn(): Boolean =
TicketsSDKSingleton.getTMAuthentication()?.let { authentication ->
AuthSource.values().forEach {
if (authentication.getToken(it)?.isNotBlank() == true) {
return true
}
AuthSource.values().forEach {
if (authentication.getToken(it)?.isNotBlank() == true) {
return true
}
return false
} ?: false
}
return false
} ?: false

}

0 comments on commit f7da77e

Please sign in to comment.