diff --git a/README.md b/README.md index 3e9cddb..15b1342 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ In short follow these steps: - Linux: - `./gradlew assembleRelease` - Copy the newly created `.aar` file to your plugin directory: - - `app/build/outputs/aar/GodotPlayGamesServices.release.aar` to `[your Godot project]/android/plugins/` + - `app/build/outputs/aar/GodotGooglePlayGameServices.release.aar` to `[your Godot project]/android/plugins/` # How to use diff --git a/app/src/main/java/com/jacobibanez/godot/gpgs/games/GameMapper.kt b/app/src/main/java/com/jacobibanez/godot/gpgs/games/GameMapper.kt index fcd3224..a174bbc 100644 --- a/app/src/main/java/com/jacobibanez/godot/gpgs/games/GameMapper.kt +++ b/app/src/main/java/com/jacobibanez/godot/gpgs/games/GameMapper.kt @@ -17,22 +17,16 @@ fun fromGame(godot: Godot, game: Game) = Dictionary().apply { game.secondaryCategory.let { put("secondaryCategory", it) } put("themeColor", game.themeColor) put("hasGamepadSupport", game.hasGamepadSupport()) - game.hiResImageUri.let { - put( - "hiResImageUri", - it.toStringAndSave(godot, "hiResImageUri", game.applicationId) - ) - } - game.iconImageUri.let { - put( - "iconImageUri", - it.toStringAndSave(godot, "iconImageUri", game.applicationId) - ) - } - game.featuredImageUri.let { - put( - "featuredImageUri", - it.toStringAndSave(godot, "featuredImageUri", game.applicationId) - ) - } + put( + "hiResImageUri", + game.hiResImageUri?.toStringAndSave(godot, "hiResImageUri", game.applicationId) ?: "" + ) + put( + "iconImageUri", + game.iconImageUri?.toStringAndSave(godot, "iconImageUri", game.applicationId) ?: "" + ) + put( + "featuredImageUri", + game.featuredImageUri?.toStringAndSave(godot, "featuredImageUri", game.applicationId) ?: "" + ) }