Skip to content

Commit

Permalink
Updated to work with godot 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
finepointcgi committed Jul 14, 2023
1 parent b6e0582 commit fd92743
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "11"
jvmTarget = "1.8"
}
defaultConfig {
minSdkVersion 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PlayGameServicesGodot(godot: Godot) : GodotPlugin(godot), AchievementsList
}

override fun getPluginName(): String {
return BuildConfig.LIBRARY_PACKAGE_NAME
return "GodotPlayGamesServices"
}

@Deprecated("Deprecated in Java")
Expand Down
4 changes: 2 additions & 2 deletions demo/Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func _ready():
play_games_services.connect("_on_player_info_loaded", Callable(self, "_on_player_info_loaded"))
play_games_services.connect("_on_player_info_loading_failed", Callable(self, "_on_player_info_loading_failed"))

#play_games_services.init(true,false,false,"174112276431")
play_games_services.init(true,false,false,"")
# play_games_services.init(true,true,false,"") # Use this init if you want to get email of the player
play_games_services.init(true,true,true,"") # Use this init if you want to get email and profile data of the player
# play_games_services.init(true,true,true,"") # Use this init if you want to get email and profile data of the player
# play_games_services.initWithSavedGames(true, "SAVE_GAME_NAME",false, false, "") # Use this init if you want saved games feature to be enabled


Expand Down
2 changes: 1 addition & 1 deletion demo/android/plugins/GodotPlayGamesServices.gdap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name="GodotPlayGamesServices"
binary_type="local"
binary="GodotPlayGamesServices.debug.aar"
binary="GodotPlayGamesServices.release.aar"

[dependencies]

Expand Down

0 comments on commit fd92743

Please sign in to comment.