diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f40febcd5..0faf00035 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,9 +1,13 @@ +Version 0.10.06 + Bug fixes: + * #2776 Crashes due to uninstalled Play Games App. + * #2766, #2772 Android SDK path detection in versions older than 2019.x. + Version 0.10.05 Bug fixes: * #2753 VersionHandlerImpl.UpdateVersionedAssets not found. * Fixed the issues caused by Nearby and RTMP callbacks not being on the main thread. * Fixed detecting AndroidSdkRoot when unity embedded is used. - Version 0.10.04 Bug fixes: * Updated the way of handling requests to prevent them being processed twice. diff --git a/current-build/GooglePlayGamesPlugin-0.10.05.unitypackage b/current-build/GooglePlayGamesPlugin-0.10.05.unitypackage deleted file mode 100644 index fe62c6794..000000000 Binary files a/current-build/GooglePlayGamesPlugin-0.10.05.unitypackage and /dev/null differ diff --git a/current-build/GooglePlayGamesPlugin-0.10.06.unitypackage b/current-build/GooglePlayGamesPlugin-0.10.06.unitypackage new file mode 100644 index 000000000..f09a06714 Binary files /dev/null and b/current-build/GooglePlayGamesPlugin-0.10.06.unitypackage differ diff --git a/samples/CubicPilot/CubicPilot.unitypackage b/samples/CubicPilot/CubicPilot.unitypackage index eb680f65f..e1e7deaa3 100644 Binary files a/samples/CubicPilot/CubicPilot.unitypackage and b/samples/CubicPilot/CubicPilot.unitypackage differ diff --git a/samples/Minimal/Minimal.unitypackage b/samples/Minimal/Minimal.unitypackage index 890f0c77f..596398685 100644 Binary files a/samples/Minimal/Minimal.unitypackage and b/samples/Minimal/Minimal.unitypackage differ diff --git a/samples/NearbyDroids/NearbyDroids.unitypackage b/samples/NearbyDroids/NearbyDroids.unitypackage index 412b38661..614f38a0d 100644 Binary files a/samples/NearbyDroids/NearbyDroids.unitypackage and b/samples/NearbyDroids/NearbyDroids.unitypackage differ diff --git a/samples/QuizRacer/QuizRacer.unitypackage b/samples/QuizRacer/QuizRacer.unitypackage index 37b4bbfc2..ac9319325 100644 Binary files a/samples/QuizRacer/QuizRacer.unitypackage and b/samples/QuizRacer/QuizRacer.unitypackage differ diff --git a/samples/SmokeTest/SmokeTest.unitypackage b/samples/SmokeTest/SmokeTest.unitypackage index a96ad872c..d509b3b24 100644 Binary files a/samples/SmokeTest/SmokeTest.unitypackage and b/samples/SmokeTest/SmokeTest.unitypackage differ diff --git a/samples/TicTacToe/TicTacToe.unitypackage b/samples/TicTacToe/TicTacToe.unitypackage index a33052b6e..8d6931077 100644 Binary files a/samples/TicTacToe/TicTacToe.unitypackage and b/samples/TicTacToe/TicTacToe.unitypackage differ diff --git a/source/PluginDev/Assets/GooglePlayGames/PluginVersion.cs b/source/PluginDev/Assets/GooglePlayGames/PluginVersion.cs index fa31c4607..df4a76ef9 100644 --- a/source/PluginDev/Assets/GooglePlayGames/PluginVersion.cs +++ b/source/PluginDev/Assets/GooglePlayGames/PluginVersion.cs @@ -19,8 +19,8 @@ namespace GooglePlayGames public class PluginVersion { // Current Version. - public const int VersionInt = 0x01005; - public const string VersionString = "0.10.05"; - public const string VersionKey = "01005"; + public const int VersionInt = 0x01006; + public const string VersionString = "0.10.06"; + public const string VersionKey = "01006"; } } diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/BaseSelectOpponentsUiRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/BaseSelectOpponentsUiRequest.java index b133748f0..bad912d03 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/BaseSelectOpponentsUiRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/BaseSelectOpponentsUiRequest.java @@ -59,7 +59,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_SELECT_OPPONENTS_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_SELECT_OPPONENTS_UI); } }) .addOnFailureListener( diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/CaptureOverlayUiRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/CaptureOverlayUiRequest.java index fc8b6279a..7b97cce19 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/CaptureOverlayUiRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/CaptureOverlayUiRequest.java @@ -25,7 +25,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_CAPTURE_OVERLAY_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_CAPTURE_OVERLAY_UI); helperFragment.finishRequest(CaptureOverlayUiRequest.this); } }) diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/InboxUiRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/InboxUiRequest.java index 5ff98ee57..5559f7c6c 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/InboxUiRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/InboxUiRequest.java @@ -45,7 +45,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_INBOX_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_INBOX_UI); } }) .addOnFailureListener( diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SelectSnapshotUiRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SelectSnapshotUiRequest.java index e861690a5..6b6a86dab 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SelectSnapshotUiRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SelectSnapshotUiRequest.java @@ -70,7 +70,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_SELECT_SNAPSHOT_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_SELECT_SNAPSHOT_UI); } }) .addOnFailureListener( diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowInvitationInboxUIRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowInvitationInboxUIRequest.java index 5b5e5abc7..9b01f4849 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowInvitationInboxUIRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowInvitationInboxUIRequest.java @@ -51,7 +51,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_SHOW_INVITATION_INBOX_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_SHOW_INVITATION_INBOX_UI); } }) .addOnFailureListener( diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowWaitingRoomUiRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowWaitingRoomUiRequest.java index 1011e2fd7..7ff11edf0 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowWaitingRoomUiRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/ShowWaitingRoomUiRequest.java @@ -64,7 +64,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_SHOW_WAITING_ROOM_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_SHOW_WAITING_ROOM_UI); } }) .addOnFailureListener( diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SimpleUiRequest.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SimpleUiRequest.java index 2e7e29410..8ccf1b534 100644 --- a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SimpleUiRequest.java +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/SimpleUiRequest.java @@ -33,7 +33,7 @@ public void process(final HelperFragment helperFragment) { new OnSuccessListener() { @Override public void onSuccess(Intent intent) { - helperFragment.startActivityForResult(intent, HelperFragment.RC_SIMPLE_UI); + Utils.startActivityForResult(helperFragment, intent, HelperFragment.RC_SIMPLE_UI); } }) .addOnFailureListener( diff --git a/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/Utils.java b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/Utils.java new file mode 100644 index 000000000..1b3ff35e8 --- /dev/null +++ b/source/SupportLib/PlayGamesPluginSupport/src/main/java/com/google/games/bridge/Utils.java @@ -0,0 +1,24 @@ +package com.google.games.bridge; + +import android.app.Fragment; +import android.content.ActivityNotFoundException; +import android.content.Intent; +import android.util.Log; + +/** + * Utility functions + */ +public final class Utils { + + private static final String TAG = "Utils"; + + private Utils() {} + + public static void startActivityForResult(Fragment fragment, Intent intent, int requestCode) { + try { + fragment.startActivityForResult(intent, requestCode); + } catch (ActivityNotFoundException e) { + Log.e(TAG,"Activity not found. Please install Play Games App."); + } + } +} diff --git a/source/build.gradle b/source/build.gradle index 663b5dfbc..27efd384a 100644 --- a/source/build.gradle +++ b/source/build.gradle @@ -68,7 +68,7 @@ project.ext { samplesBuildSrc = file('build/sampleSrc').absolutePath exportPath = file('build/plugin.unitypackage').absolutePath currentPluginPath = file('../current-build').absolutePath - currentPluginVersion = "0.10.05" + currentPluginVersion = "0.10.06" currentPluginBasename = 'GooglePlayGamesPlugin' currentPluginName = "${currentPluginBasename}-${currentPluginVersion}.unitypackage" resolverDir = new File('build/jarresolver').absolutePath