androidAndroid SDK Migration Guide

Android specific migration guide for the May 2025 GYP migration.

Overview

Lucra is launching a major update to the Games You Play (GYP) product. See here for the full description of the changes.

triangle-exclamation

Migration Guide

Retrieving a Matchup

The function signature has changed for retrieving a matchup.

Before migration
fun getGamesMatchup(
    matchupId: String, 
    onResult: (LegacyMatchup) -> Unit
)
After migration
/**
 * Retrieve matchup with the given id and returns result.
 * @param matchupId id of the games matchup
 * @param onResult callback with a [GetMatchupResult]
 */
fun getMatchup(
    matchupId: String,
    onResult: (GetMatchupResult) -> Unit
)

The new result type GetMatchupResult is structured like below:

Creating a Matchup

Function signature has changed to include new parameter playStyle as well as being able to specify the type of reward this matchup offers through RewardType.

Accepting a Matchup

We have introduced a new function to specifically accept a recreational game of respective types. Meaning, you must differentiate between Group Play and Free-for-All formats when accepting a matchup.

Cancelling a Matchup

Function name and return type has been updated.

Return types for recreational games specific actions

For recreational games specific actions above (create, accept, cancel), we have new return types that is either success or failure:

Last updated