Lion SDK 2.0 Upgrade Guide

The release of Lion SDK 2.0 introduces several breaking changes that require manual updates to projects built on earlier versions.

What's Changed in 2.x

  • Lion Settings Manager no longer uses Game Interfaces

  • A new optimized splash screen has been released

  • Lion Remote Configs initialization has been updated

  • Several Lion Analytics methods have been removed

  • The Validation package now has a dedicated Lion Settings Manager tab

  • Nakama support has been dropped from all packages

  • Remote Storage API updates (No longer uses game interfaces)

  • The following packages have been deprecated and will no longer be supported

    • Lion - Daily Challenge

    • Lion - Daily Rewards

    • Lion - Fake Leaderboards

    • Lion - In-Game Messaging

    • Lion - Lucky Wheel

    • Lion - Options Menu

    • Lion - Metabuild

    • Lion - PiggyBank

    • Lion - NakamaConnector


Code API update

Lion - Remote Config

Due to internal changes in how Lion Remote Configs is initialized, LionCore.OnInitialized callback is no longer the recommended way to wait for Remote Configs. Update your code to use RemoteConfigsController.OnInitialized instead. More info can be found here.

//Previously 
LionCore.OnInitialized += FetchRemoteConfigs;

//Now 
RemoteConfigsController.OnInitialized += FetchRemoteConfigs;
  

Breaking Changes

Lion Game Interfaces

Lion SDK 2.0 no longer makes use of interfaces for the Lion Settings Manager.

  • Delete your Assets/LionStudios/GameInterfaces folder as this is no longer needed.

  • After updating, verify your Remote Configs, Lion Ads, Purchase Validator, and any other settings in the Lion Settings menu to ensure everything is configured correctly.

Lion Splash Scene

A new more optimized splash screen has been released. Existing splash screens will need to be updated.

  • Go to Lion Settings Manager window and find the Splash Scene tab. Click "Manually Setup Loading Scene".

    • Note doing so will erase any existing changes you may have had to your previous scene. So be sure to transfer over any scene modifications to the Assets/LionStudios/AnimatedLionLogoScene.unity you may have done previously

Lion Analytics

The following methods have been removed. If your project uses any of them, remove all references before upgrading.

  • AddMissionTrackingDataCombination(string missionID, string missionName, string missionType, int? missionAttempt)

  • RemoveMissionTrackingDataCombination(string missionID, string missionName)

  • AddLevelTrackingDataCombination(int levelNum, string missionName)

  • RemoveLevelAttemptTrackingData(int levelNum, string levelCollection1, string levelCollection2, string missionType, string missionName)

  • SetSoftCurrency(int softCurrency)

  • ClearSoftCurrency()

  • SetHardCurrency(int hardCurrency)

  • ClearHardCurrency()

Lion Purchase Validator

The Validation package now manages its configuration through a dedicated Lion Settings Manager tab. You must set your Validator type there before the package will function correctly. More info can be found here.

  • Nakama Validator has been removed as an option

  • A new Lion Validator has been added

Lion Ads

LionAds have separate migration guide here

Lion Remote Storage

The following event has been removed

  • OnDataMergedFromCloud

    • Make the OnRemoteDataUpdated event instead now. More information can be found here

Last updated

Was this helpful?