Skip to content

Commit 4aa90da

Browse files
Merge pull request #5 from CoderGamester/develop
Release 0.2.0
2 parents f5724de + 1769af8 commit 4aa90da

File tree

5 files changed

+6
-57
lines changed

5 files changed

+6
-57
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.2.0] - 2020-08-02
8+
9+
**Changed**:
10+
- Removed the show rate the game pop up. From now one use the Unity direct message or Google Play package
11+
712
## [0.1.4] - 2020-08-02
813

914
**Fixed**:

Runtime/NativeUiService.cs

-24
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,6 @@ public struct AlertButton
2424
/// </summary>
2525
public static class NativeUiService
2626
{
27-
/// <summary>
28-
/// Shows the native OS pop up to rate the game
29-
/// </summary>
30-
/// <exception cref="SystemException">
31-
/// Thrown if the current platform is not iOS nor Android
32-
/// </exception>
33-
public static void ShowRatePopUp()
34-
{
35-
#if UNITY_IOS
36-
UnityEngine.iOS.Device.RequestStoreReview();
37-
#elif UNITY_ANDROID
38-
using (var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
39-
using (var unityActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
40-
using (var managerFactory = new AndroidJavaClass("com.google.android.play.core.review.ReviewManagerFactory"))
41-
using (var javaReviewManager = managerFactory.CallStatic<AndroidJavaObject>("create", unityActivity))
42-
using (var reviewInfo = javaReviewManager.Call<AndroidJavaObject>("requestReviewFlow"))
43-
{
44-
javaReviewManager.Call<AndroidJavaObject>("launchReviewFlow", unityActivity, reviewInfo);
45-
}
46-
#else
47-
throw new SystemException("Rate this game option is only available for iOS and Android platforms");
48-
#endif
49-
}
50-
5127
/// <summary>
5228
/// Shows an alert native OS message popup with the given <paramref name="title"/>, <paramref name="message"/>
5329
/// and the <paramref name="buttons"/> ordered from left to right.
-195 KB
Binary file not shown.

Runtime/Plugins/Android/playcore-1.8.0.aar.meta

-32
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.gamelovers.nativeui",
33
"displayName": "Native UI",
4-
"version": "0.1.4",
4+
"version": "0.2.0",
55
"unity": "2019.4",
66
"description": "This package provides the OS functionality to show the native UI alerts, Game Review PopUp and message Toasts",
77
"type": "library"

0 commit comments

Comments
 (0)