From 079579bdd76ce0b529b3171c6d034f0823ca274c Mon Sep 17 00:00:00 2001 From: Eschenko_D Date: Wed, 24 Mar 2021 14:44:06 +0200 Subject: [PATCH] Release 1.2.2 --- CHANGELOG.md | 9 ++++++++- Editor/ConsentRequestParametersEditor.cs | 2 +- Prefabs/ConsentUITemplate.prefab | 6 +++--- README.md | 2 +- Runtime/ConsentClient.cs | 4 ++++ Runtime/MediationSettingsUI.cs | 7 +++++-- Runtime/UserConsent.cs | 2 +- package.json | 4 ++-- 8 files changed, 25 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3386e05..123e1b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Clever Ads Solutions Unity Plugin Change Log -## [1.2.0] - 2021-03-02 +## [1.2.2] - 2021-03-24 +### Features +- Added Tapjoy and Fyber mediation networks. +### Bug Fixes +- Fix button `Decline all` localization into Polish and Chinese. +- Fix `IndexOutOfRangeException` from `MediationSettingsUI` when Consent plguin get unknown network. + +## [1.2.1] - 2021-03-02 ### Bug Fixes - Fix `AppTrackingTransparency.Request()` in Unity Editor. diff --git a/Editor/ConsentRequestParametersEditor.cs b/Editor/ConsentRequestParametersEditor.cs index 3ca2a5a..5564ce7 100644 --- a/Editor/ConsentRequestParametersEditor.cs +++ b/Editor/ConsentRequestParametersEditor.cs @@ -136,7 +136,7 @@ public override void OnInspectorGUI() EditorGUILayout.EndHorizontal(); trackingUsageDescriptionProp.stringValue = EditorGUILayout.TextArea( trackingUsageDescriptionProp.stringValue, HelpStyles.wordWrapTextAred ); - EditorGUILayout.HelpBox( "NSUserTrackingUsageDescription key with a custom message describing your usage location tracking to AppTrackingTransparency.Request(). Can be empty if not using location tracking", MessageType.None ); + EditorGUILayout.HelpBox( "NSUserTrackingUsageDescription key with a custom message describing your usage location tracking to AppTrackingTransparency.Request().", MessageType.None ); EditorGUI.EndDisabledGroup(); HelpStyles.EndBoxScope(); diff --git a/Prefabs/ConsentUITemplate.prefab b/Prefabs/ConsentUITemplate.prefab index cc5e392..7ae7631 100644 --- a/Prefabs/ConsentUITemplate.prefab +++ b/Prefabs/ConsentUITemplate.prefab @@ -725,9 +725,9 @@ MonoBehaviour: - id: 21 text: Cancella tutto - id: 23 - text: Odznacz wszystko - - id: 27 text: "\uBAA8\uB450 \uCDE8\uC18C" + - id: 27 + text: Odznacz wszystko - id: 28 text: Desativar tudo - id: 34 @@ -3633,7 +3633,7 @@ MonoBehaviour: - id: 10 text: When were you born? - id: 30 - text: "\u0414\u0430\u0442\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F:" + text: "\u0413\u043E\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F:" - id: 1 text: "\u062A\u0627\u0631\u064A\u062E \u0645\u064A\u0644\u0627\u062F\u0643:" - id: 6 diff --git a/README.md b/README.md index 0eae4c3..500e440 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Modify `Packages/manifest.json` to the following form: } ], "dependencies": { -"com.cleversolutions.ads.consent.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.2.1" +"com.cleversolutions.ads.consent.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.2.2" } } ``` diff --git a/Runtime/ConsentClient.cs b/Runtime/ConsentClient.cs index 4713ac3..8a0d081 100644 --- a/Runtime/ConsentClient.cs +++ b/Runtime/ConsentClient.cs @@ -175,6 +175,10 @@ private static string GetNetworkTag( AdNetwork network ) return "VZ"; case AdNetwork.MoPub: return "MP"; + case ( AdNetwork )20: + return "TJ"; + case ( AdNetwork )21: + return "Fy"; default: return string.Empty; } diff --git a/Runtime/MediationSettingsUI.cs b/Runtime/MediationSettingsUI.cs index b50db4e..ea32104 100644 --- a/Runtime/MediationSettingsUI.cs +++ b/Runtime/MediationSettingsUI.cs @@ -46,15 +46,18 @@ private IEnumerator Start() null, "https://advertising.amazon.com/legal/privacy-notice", "https://www.verizonmedia.com/policies/us/en/verizonmedia/privacy/", - "https://www.mopub.com/en/legal/privacy" + "https://www.mopub.com/en/legal/privacy", + "https://www.tapjoy.com/legal/players/privacy-policy/", + "https://www.fyber.com/privacy-policy/" }; yield return null; var active = MobileAds.GetActiveNetworks(); + var validNames = Enum.GetNames( typeof( AdNetwork ) ); items = new MediationPolicyUI[active.Length]; - for (int i = 0; i < active.Length; i++) + for (int i = 0; i < active.Length && i < privacyPolicyList.Length && i < validNames.Length; i++) { var policy = privacyPolicyList[( int )active[i]]; if (policy != null) diff --git a/Runtime/UserConsent.cs b/Runtime/UserConsent.cs index c3ec358..fae608a 100644 --- a/Runtime/UserConsent.cs +++ b/Runtime/UserConsent.cs @@ -5,7 +5,7 @@ namespace CAS.UserConsent { public static class UserConsent { - public const string version = "1.2.1"; + public const string version = "1.2.2"; /// /// User latest consent status values. diff --git a/package.json b/package.json index 4dd13fd..c8a55d7 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "com.cleversolutions.ads.consent.unity", - "version": "1.2.1", + "version": "1.2.2", "displayName": "CleverAdsSolutions Consent", "description": "Clever Ads Solutions User consent Unity plugin.", "unity": "2017.4", "dependencies": { - "com.cleversolutions.ads.unity": "2.0.0" + "com.cleversolutions.ads.unity": "2.0.1" }, "author": { "name": "CleverAdsSolutions",