Skip to main content

Upgrade Guide

For SDK versions that do not require special instructions, download the latest version of the SDK and replace the old SDK files with the new ones while keeping all configurations from the old versions.

For SDK versions that require additional actions, follow the upgrade guide for each version.

note

To upgrade SDK versions earlier than Player Network SDK V1.17, please reach out to the Player Network representative.

After upgrading the SDK, make sure you go through the checklist stated in this article.

Check Configurations

It is recommended to use comparison tools (such as "Beyond Compare") to compare and update the new version with existing ones.

SDK configurations

The paths of the INTLConfig.ini file in a project are:

1.17.00 and later1.16.05 and earlier
INTLSDK/Scripts/INTLConfig/Editor/Resources/INTLConfig.iniAndroid:
/Plugins/Android/assets/INTLConfig.ini
iOS:
/Plugins/iOS/INTLSDK/INTLCore/INTLSDK.bundle/INTLConfig.ini
Windows, PS5:
/Plugins/x86_64/INTLConfig.ini
Nintendo: /Plugins/Switch/INTLConfig.ini

It is recommended to compare each field so that every configuration in the INTLConfig.ini file is correctly updated.

Firebase configurations

The path of the Firebase configuration file in a project is:

Android: Assets/Plugins/Android/google-services.json

iOS: Assets/Plugins/iOS/INTLSDK/INTLFirebase/ThirdSDK/GoogleService-Info.plist

Ensure that the Firebase configuration file for the platform the game is releasing on has not been deleted and is correctly configured in your project.

Gradle confiugrations

The paths of the Gradle files in a project are:

Unity 2018.x and earlier: \Plugins\Android\mainTemplate.gradle

Unity 2018.x and later:

  • \Plugins\Android\baseProjectTemplate.gradle
  • launcherTemplate.gradle
  • mainTemplate.gradle

Ensure that the ID and other values in the configuration file have not been overwritten.

Info.plist

INTL{Plugin}Kit.projmods is the Info.plist configuration file for Player Network SDK. Player Network SDK reads the INTL{Plugin}Kit.projmods file in the INTLSDK/Editor/XUPorter/Mods directory and adds the imported bundle, framework, and other dependency packages in Xcode.

As each INTL{Plugin}Kit.projmods file corresponds to a plugin, check and update the placeholders in all the .projmods files before packaging.

For exact configurations required for each channel, see the tutorials for setting up the authentication service.

Swift conigurations

If the SDK plugin is in Swift, you'll encounter the mixed editing issue between iOS Swift and Objective-C. As a result, an iOS project that includes both Swift and Objective-C code will require a bridge layer in Xcode to align the class names of the two programming languages.

note

The Facebook and LINE plugins are in Swift, pay extra attention to this configuration when packaging in Xcode.

info

For Unity 2019.x, skip step 1 to step 4.

  1. Create a new file of the Swift File type.

    Image: Swift File type

  2. Specify the file name with an .swift extension, and click Create.

    Image: Create Swift file

  3. Click Create Bridging Header.

    note

    Make sure to click Create Bridging Header. Otherwise, Xcode will not create a bridging header.

    Images: Create bridge document

  4. Check that two files are created in the Xcode project (one is the .swift file created in step 2, and the other is the automatically created project_name-Bridging-Header.h file).

    info

    Do not modify the file content.

    Images: Confirm document

  5. In Xcode, go to UnityFramework and enter Library Search Paths in the search box on the upper right corner of the page.

  6. Add the following configurations to Library Search Paths on the search results page.

    (Keep the order consistent)
    $(SDKROOT)/usr/lib/swift
    $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)
    $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME}

    Image: Update Checklist1

  7. Enter Other Linker Flags in the search box on the upper right corner of the page.

  8. Add -lswiftCompatibility51 to Other Linker Flags on the search results page.

    Image: Update Checklist2

Channel specific configurations

For exact configurations required for each channel, see the tutorials for setting up the authentication service.