Skip to content

Commit 1e0a399

Browse files
Merge pull request #7 from CoderGamester/develop
Release 0.2.2
2 parents ecb1ca7 + eaf1a02 commit 1e0a399

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
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.2] - 2020-08-12
8+
9+
**Fixed**:
10+
- Fixed UI working on the editor
11+
712
## [0.2.1] - 2020-08-03
813

914
**Fixed**:

Runtime/NativeUiService.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public static class NativeUiService
3434
/// </exception>
3535
public static void ShowAlertPopUp(bool isAlertSheet, string title, string message, params AlertButton[] buttons)
3636
{
37-
#if UNITY_IOS
37+
#if UNITY_EDITOR
38+
Debug.Log($"Show Alert Pop Up is not available in the editor and was triggered with: {title} - {message}")
39+
#elif UNITY_IOS
3840
_currentButtons = buttons ?? throw new ArgumentException("The buttons count must be higher than zero");
3941

4042
var buttonsText = new string[buttons.Length];
@@ -79,7 +81,9 @@ public static void ShowAlertPopUp(bool isAlertSheet, string title, string messag
7981
/// </exception>
8082
public static void ShowToastMessage(string message, bool isLongDuration)
8183
{
82-
#if UNITY_IOS
84+
#if UNITY_EDITOR
85+
Debug.Log($"Show Toast message is not available in the editor and was triggered with: {message}")
86+
#elif UNITY_IOS
8387
ToastMessage(message, isLongDuration);
8488
#elif UNITY_ANDROID
8589
using (var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))

package.json

Lines changed: 1 addition & 1 deletion
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.2.1",
4+
"version": "0.2.2",
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)