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

Commit

Permalink
Release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tos committed Feb 10, 2021
1 parent fe201f1 commit 3fa4d23
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 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.1.3] - 2021-02-10
### Bug Fixes
- Ability to drag the UserConsentUI prefab to field of consent request parameters.

## [1.1.2] - 2021-02-09
### Changes
- Years text colors, on Audience Definition form, will be saved and changed to the values that are defined in the prefab `AudienceDefinition/Years/[0..4]/Text.color`.
Expand Down
10 changes: 6 additions & 4 deletions Editor/ConsentRequestParametersEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public override void OnInspectorGUI()
CAS.UEditor.HelpStyles.BeginBoxScope();
EditorGUILayout.PropertyField( withDeclineOptionProp );
DrawPrefabSelector( "Consent UI Prefab",
uiPrefabProp, templateUIPrefabName, customUIPrefabName );
uiPrefabProp, templateUIPrefabName, customUIPrefabName,
typeof( UserConsentUI ) );

currentListProp = consentMessageProp;
consentMessageList.DoLayoutList();
Expand All @@ -163,7 +164,8 @@ public override void OnInspectorGUI()
bool disableTogglePrefab = !withMediationSettingsProp.boolValue;
EditorGUI.BeginDisabledGroup( disableTogglePrefab );
DrawPrefabSelector( "Toggle UI Prefab",
settingsTogglePrefabProp, templateSettingsPrefabName, customSettingsPrefabName );
settingsTogglePrefabProp, templateSettingsPrefabName, customSettingsPrefabName,
typeof( MediationPolicyUI ) );
currentListProp = settingsMessageProp;
settingsMessageList.DoLayoutList();
EditorGUI.EndDisabledGroup();
Expand Down Expand Up @@ -242,7 +244,7 @@ private void DrawSettingsMessageHeader( Rect rect )
EditorGUI.LabelField( rect, "Mediation Settings Message" );
}

private void DrawPrefabSelector( string title, SerializedProperty prop, string templateName, string customName )
private void DrawPrefabSelector( string title, SerializedProperty prop, string templateName, string customName, Type objType )
{
EditorGUILayout.BeginHorizontal();
EditorGUILayout.LabelField( title );
Expand All @@ -258,7 +260,7 @@ private void DrawPrefabSelector( string title, SerializedProperty prop, string t
}
EditorGUILayout.EndHorizontal();
prop.objectReferenceValue =
EditorGUILayout.ObjectField( prop.objectReferenceValue, typeof( MediationPolicyUI ), false );
EditorGUILayout.ObjectField( prop.objectReferenceValue, objType, false );
EditorGUILayout.Space();
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Modify `Packages/manifest.json` to the following form:
}
],
"dependencies": {
"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.1.2"
"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.1.3"
}
}
```
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.1.2";
public const string version = "1.1.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.1.2",
"version": "1.1.3",
"displayName": "CleverAdsSolutions Consent",
"description": "Clever Ads Solutions User consent Unity plugin.",
"unity": "2017.4",
Expand Down

0 comments on commit 3fa4d23

Please sign in to comment.