Skip to content

Commit

Permalink
Update plugin for Godot 4.3
Browse files Browse the repository at this point in the history
Update google play-services-games-v2 library to 20.1.2

Signed-off-by: Jacob Ibáñez Sánchez <jacobibanez@jacobibanez.com>
  • Loading branch information
Iakobs committed Sep 1, 2024
1 parent 2fe3975 commit b0f46ee
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v1.8.0
### Update plugin for Godot 4.3
Thanks to [TheSkyOne](https://github.com/TheSkyOne) for bringing to my attention that [the plugin wasn't working for Godot 4.3](https://github.com/Iakobs/godot-play-game-services/issues/32). I've update it to use version 4.3 of the Godot Library Dependency.

### Update Google Play Games Library version
Google's `play-services-games-v2` dependency was updated from version `19.0.0` to version `20.1.2`.

## v1.7.0
### Send JSON strings instead of Dictionaries
The `gameLoaded` and `conflictEmitted` signals where sending an instance of the Dictionary class. Instead, they send a JSON string now, as suggested by @nepalisameer in [this issue](https://github.com/Iakobs/godot-play-game-services/issues/22).
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Godot Play Game Services
Godot 4.2+ plugin for integration of the latest version of [Google Play Game Services SDK](https://developers.google.com/games/services/android/quickstart).
# Godot Play Game ServicesK
Godot 4.3+ plugin for integration of the latest version of [Google Play Game Services SDK](https://developers.google.com/games/services/android/quickstart).

If you want to download the plugin for a previous version of Godot 4.x, use the branch selector in the repository. For Godot 3.x versions, [look here](https://github.com/Iakobs/godot-google-play-game-services-android-plugin)!

---

![Plugin Header](github-social-preview.png)

[![Android version and API level 33](https://img.shields.io/badge/Android-API%20Level%2033-darkgreen.svg)](https://developer.android.com)
[![Godot version 4.2](https://img.shields.io/badge/Godot%20Engine-4.2-blue.svg)](https://github.com/godotengine/godot/)
[![Google Play Game Services version 19.0.0](https://img.shields.io/badge/Play%20Services%20Games%20v2-19.0.0-green.svg)](https://developers.google.com/games/services/android/quickstart)
[![Godot version 4.3](https://img.shields.io/badge/Godot%20Engine-4.3-blue.svg)](https://github.com/godotengine/godot/)
[![Google Play Game Services version 20.1.2](https://img.shields.io/badge/Play%20Services%20Games%20v2-20.1.2-green.svg)](https://developers.google.com/games/services/android/quickstart)

---

Expand Down
4 changes: 2 additions & 2 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ android {

dependencies {
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.google.android.gms:play-services-games-v2:19.0.0")
implementation("org.godotengine:godot:4.2.0.stable")
implementation("com.google.android.gms:play-services-games-v2:20.1.2")
implementation("org.godotengine:godot:4.3.0.stable")

dokkaPlugin("org.jetbrains.dokka:android-documentation-plugin:1.9.10")
}
Expand Down
16 changes: 15 additions & 1 deletion plugin/demo/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,29 @@ You will need to configure the game integrations in your Google Play Console in
config/version="v1.0.0"
config/tags=PackedStringArray("demo", "android", "google_play_games_services")
run/main_scene="res://scenes/MainMenu.tscn"
config/features=PackedStringArray("4.2", "Mobile")
config/features=PackedStringArray("4.3", "Mobile")
config/icon="res://icon.svg"

[autoload]

GodotPlayGameServices="*res://addons/GodotPlayGameServices/autoloads/godot_play_game_services.gd"
SignInClient="*res://addons/GodotPlayGameServices/autoloads/sign_in_client.gd"
PlayersClient="*res://addons/GodotPlayGameServices/autoloads/players_client.gd"
AchievementsClient="*res://addons/GodotPlayGameServices/autoloads/achievements_client.gd"
LeaderboardsClient="*res://addons/GodotPlayGameServices/autoloads/leaderboards_client.gd"
SnapshotsClient="*res://addons/GodotPlayGameServices/autoloads/snapshots_client.gd"
EventsClient="*res://addons/GodotPlayGameServices/autoloads/events_client.gd"

[display]

window/size/viewport_width=720
window/size/viewport_height=1280
window/handheld/orientation=1

[editor_plugins]

enabled=PackedStringArray("res://addons/GodotPlayGameServices/plugin.cfg")

[file_customization]

folder_colors={
Expand Down
2 changes: 1 addition & 1 deletion plugin/export_scripts_template/export_plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class AndroidExportPlugin extends EditorExportPlugin:

return PackedStringArray([
"com.google.code.gson:gson:2.10.1",
"com.google.android.gms:play-services-games-v2:19.0.0"
"com.google.android.gms:play-services-games-v2:20.1.2"
])

func _get_android_manifest_application_element_contents(platform: EditorExportPlatform, debug: bool) -> String:
Expand Down

0 comments on commit b0f46ee

Please sign in to comment.