Skip to content

Failed to launch on Android due to missing function #76

Description

@atufankjian

In Source/ThirdParty/GooglePlayGamesLibrary/GooglePlayGames_APL.xml the AndroidThunkJava_GPGS_getIsSignedIn is not implemented which will cause a crash in the constructor of UBFL_GooglePlayGames

I had to add this:

public boolean AndroidThunkJava_GPGS_getIsSignedIn()
{
    return gpgs_manager.getIsSignedIn();
}

And in BFL_GooglePlayGames.cpp the line INIT_JAVA_METHOD(AndroidThunkJava_GPGS_writeSavedGame, "(Ljava/lang/String;Ljava/lang/String;B)V"); needs to be INIT_JAVA_METHOD(AndroidThunkJava_GPGS_writeSavedGame, "(Ljava/lang/String;Ljava/lang/String;[B)V"); note [B instead of B because the arg is a byte array, not just a byte.

Which was a bit fraught because the GPGSManager class is implemented in gpgs.aar. The source of that lib doesn't seem to be anywhere in the repo and I wasn't able to find an API reference anywhere so I had to decompile the jar in that aar in order to make sure that the getIsSignedIn() method actually existed and I wasn't missing something.

Could the source to that lib be made available somewhere so it's picked up by search engines?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions