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.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tos committed Mar 24, 2021
1 parent 079579b commit 7806ba4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Clever Ads Solutions Unity Plugin Change Log

## [1.2.3] - 2021-03-24
### Bug Fixes
- Fix wrong network name when Consent plguin get unknown network.

## [1.2.2] - 2021-03-24
### Features
- Added Tapjoy and Fyber mediation networks.
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.2"
"com.cleversolutions.ads.consent.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.2.3"
}
}
```
Expand Down
18 changes: 10 additions & 8 deletions Runtime/MediationSettingsUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,22 @@ private IEnumerator Start()

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 < privacyPolicyList.Length && i < validNames.Length; i++)
for (int i = 0; i < active.Length && i < privacyPolicyList.Length; i++)
{
var policy = privacyPolicyList[( int )active[i]];
if (policy != null)
{
var item = Instantiate( policyPrefab, container, false );
item.network = active[i];
item.SetPrivacyPolicyUrl( policy );
items[i] = item;
yield return null;
var netName = active[i].ToString();
if (netName.Length > 2)
{
var item = Instantiate( policyPrefab, container, false );
item.network = active[i];
item.SetPrivacyPolicyUrl( policy );
items[i] = item;
yield return null;
}
}
}
initialized = true;
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.2";
public const string version = "1.2.3";

/// <summary>
/// User latest consent status values.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.cleversolutions.ads.consent.unity",
"version": "1.2.2",
"version": "1.2.3",
"displayName": "CleverAdsSolutions Consent",
"description": "Clever Ads Solutions User consent Unity plugin.",
"unity": "2017.4",
Expand Down

0 comments on commit 7806ba4

Please sign in to comment.