Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tos committed Mar 24, 2021
1 parent e4e9681 commit 079579b
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Editor/ConsentRequestParametersEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions Prefabs/ConsentUITemplate.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down
4 changes: 4 additions & 0 deletions Runtime/ConsentClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 5 additions & 2 deletions Runtime/MediationSettingsUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Runtime/UserConsent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/// <summary>
/// User latest consent status values.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 079579b

Please sign in to comment.