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

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tos committed Apr 19, 2022
1 parent 37cb7d9 commit ad8e049
Show file tree
Hide file tree
Showing 18 changed files with 123 additions and 70 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Clever Ads Solutions Unity Plugin Change Log

## [2.0.1] - 2022-01-12
### Dependencies
- CleverAdsSolutions - [2.7.2](https://github.com/cleveradssolutions/CAS-Unity/releases)
### Bug Fixes
- Disabled duplication of listeners from prefab on privacy policy buttons.
- Minor GUI adaptation for 9:20 aspect ratio.

## [2.0.0] - 2022-01-12
### Dependencies
- CleverAdsSolutions - [2.6.1](https://github.com/cleveradssolutions/CAS-Unity/releases)
Expand Down
8 changes: 6 additions & 2 deletions Editor/CASSimpleLocalizeTextEditor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
using System.Collections;
using System.Collections.Generic;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
Expand Down
8 changes: 7 additions & 1 deletion Editor/ConsentRequestEditor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using UnityEngine;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using UnityEngine;
using UnityEditor;

namespace CAS.UserConsent
Expand Down
13 changes: 8 additions & 5 deletions Editor/ConsentRequestParametersEditor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
Expand All @@ -20,9 +26,6 @@ public class ConsentRequestParametersEditor : Editor
private const string templateSettingsPrefabName = "NetworkPolicy.prefab";
private const string customUIPrefabName = "UserConsentUI.prefab";
private const string customSettingsPrefabName = "SettingToggleUI.prefab";
private const string configuringPrivacyURL = Utils.gitRootURL + "CAS-Unity#include-ios";
private const string locationUsageDefaultDescription = "Your data will be used to provide you a better and personalized ad experience.";


private SerializedProperty showInEditorProp;
private SerializedProperty withAudienceDefinitionProp;
Expand Down Expand Up @@ -201,7 +204,7 @@ private void DrawPrefabSelector( string title, SerializedProperty prop, string t
}

#region Utils
[MenuItem( "Assets/CleverAdsSolutions/Consent Request Parameters" )]
[MenuItem( "Assets/CleverAdsSolutions/Consent Request Parameters", priority = 1015 )]
public static void CreateParameters()
{
if (!AssetDatabase.IsValidFolder( "Assets/Resources" ))
Expand Down
58 changes: 18 additions & 40 deletions Prefabs/ConsentUITemplate.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 212.29999, y: -28.755}
m_SizeDelta: {x: 138.2, y: 57.51}
m_AnchoredPosition: {x: 200.75, y: -28.755}
m_SizeDelta: {x: 130.5, y: 57.51}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &48348062541502625
CanvasRenderer:
Expand Down Expand Up @@ -320,8 +320,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 68.75, y: -25}
m_SizeDelta: {x: 137.5, y: 50}
m_AnchoredPosition: {x: 65, y: -25}
m_SizeDelta: {x: 130, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &48348062614071351
CanvasRenderer:
Expand Down Expand Up @@ -542,7 +542,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 48348063612381030}
m_Direction: 2
m_Value: 0
m_Size: 0.99999994
m_Size: 1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
Expand Down Expand Up @@ -583,7 +583,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 70}
m_SizeDelta: {x: 280, y: 50}
m_SizeDelta: {x: 266, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &48348062625449501
MonoBehaviour:
Expand Down Expand Up @@ -1202,8 +1202,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 69.1, y: -44.3825}
m_SizeDelta: {x: 138.2, y: 26.255}
m_AnchoredPosition: {x: 65.25, y: -44.3825}
m_SizeDelta: {x: 130.5, y: 26.255}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &48348063205091764
CanvasRenderer:
Expand Down Expand Up @@ -1744,8 +1744,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 69.1, y: -13.1275}
m_SizeDelta: {x: 138.2, y: 26.255}
m_AnchoredPosition: {x: 65.25, y: -13.1275}
m_SizeDelta: {x: 130.5, y: 26.255}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &48348063544628666
CanvasRenderer:
Expand Down Expand Up @@ -3093,7 +3093,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 68}
m_SizeDelta: {x: 281.4, y: 57.51}
m_SizeDelta: {x: 266, y: 57.51}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &48348064263290924
MonoBehaviour:
Expand Down Expand Up @@ -4117,7 +4117,7 @@ MonoBehaviour:
m_Top: 0
m_Bottom: 0
m_ChildAlignment: 4
m_Spacing: 10
m_Spacing: 6
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
Expand Down Expand Up @@ -4946,18 +4946,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 6378617395282631496}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6378617394226191214}
m_MethodName: OnOpenCompanyPrivacyPolicy
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_Calls: []
--- !u!1 &6378617395406947627
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -4995,8 +4984,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 211.25, y: -25}
m_SizeDelta: {x: 137.5, y: 50}
m_AnchoredPosition: {x: 200, y: -25}
m_SizeDelta: {x: 130, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6378617395406947631
CanvasRenderer:
Expand Down Expand Up @@ -5502,18 +5491,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 6378617395942446375}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6378617394226191214}
m_MethodName: OnOpenTermsOfUse
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_Calls: []
--- !u!1 &7407072944406619641
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -5549,8 +5527,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 69.1, y: -28.755}
m_SizeDelta: {x: 138.2, y: 57.51}
m_AnchoredPosition: {x: 65.25, y: -28.755}
m_SizeDelta: {x: 130.5, y: 57.51}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &4232900423922786516
MonoBehaviour:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ https://github.com/cleveradssolutions/CAS-Unity-Consent.git#2.0.0
Open `YourProject/Packages/manifest.json` file in any text editor and add line in `dependencies` tag:
```json
{ "dependencies": {
"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#2.0.0",
"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#2.0.1",
} }
```

Expand Down
8 changes: 7 additions & 1 deletion Runtime/AppTrackingTransparency.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using UnityEngine;

namespace CAS.iOS
Expand Down
8 changes: 7 additions & 1 deletion Runtime/AudienceDefinitionUI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
Expand Down
8 changes: 7 additions & 1 deletion Runtime/CASSimpleLocalizeText.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
Expand Down
2 changes: 2 additions & 0 deletions Runtime/CASSimpleLocalizeText.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions Runtime/ConsentClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using System.Collections.Generic;
using UnityEngine;

Expand Down Expand Up @@ -77,15 +83,13 @@ internal static void SetMediationExtras()
if (active.Length != consent.Length)
return;
var result = new Dictionary<string, string>();
var netTags = AdNetworkExtension.GetListOfTags();
for (int i = 0; i < consent.Length; i++)
{
if (consent[i] != '-')
{
var tagI = ( int )active[i];
if (tagI < netTags.Length)
var tag = active[i].GetTag();
if (tag.Length > 0)
{
var tag = netTags[tagI];
result[tag + "_gdpr"] = consent[i].ToString();
//result[tag + "_ccpa"] = consent[i].ToString();
}
Expand Down
10 changes: 7 additions & 3 deletions Runtime/ConsentRequestParameters.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using System;
using System.Collections;
using System.Collections.Generic;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using UnityEngine;

namespace CAS.UserConsent
Expand Down
8 changes: 7 additions & 1 deletion Runtime/MediationPolicyUI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using UnityEngine;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using UnityEngine;
using UnityEngine.UI;

namespace CAS.UserConsent
Expand Down
9 changes: 6 additions & 3 deletions Runtime/MediationSettingsUI.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

namespace CAS.UserConsent
{
Expand Down
10 changes: 8 additions & 2 deletions Runtime/UserConsent.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using UnityEngine;

namespace CAS.UserConsent
{
public static class UserConsent
{
public const string version = "2.0.0";
public const string version = "2.0.1";

/// <summary>
/// User latest consent status values.
Expand Down
8 changes: 7 additions & 1 deletion Runtime/UserConsentRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using UnityEngine;
using UnityEngine.Events;

Expand Down
8 changes: 7 additions & 1 deletion Runtime/UserConsentUI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
//
// Clever Ads Solutions Unity Consent Plugin
//
// Copyright © 2021 CleverAdsSolutions. All rights reserved.
//

using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
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": "2.0.0",
"version": "2.0.1",
"displayName": "CleverAdsSolutions Consent",
"description": "Clever Ads Solutions User consent Unity plugin.",
"unity": "2017.4",
"dependencies": {
"com.cleversolutions.ads.unity": "2.6.1"
"com.cleversolutions.ads.unity": "2.7.2"
},
"author": {
"name": "CleverAdsSolutions",
Expand Down

0 comments on commit ad8e049

Please sign in to comment.