diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b26960..9d85e83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Clever Ads Solutions Unity Plugin Change Log +## [1.2.4] - 2021-04-06 +### Dependencies +- CleverAdsSolutions - [2.1.4](https://github.com/cleveradssolutions/CAS-Unity/releases) + ## [1.2.3] - 2021-03-24 ### Bug Fixes - Fix wrong network name when Consent plguin get unknown network. diff --git a/Editor/ConsentRequestParametersEditor.cs b/Editor/ConsentRequestParametersEditor.cs index 5564ce7..1606a6f 100644 --- a/Editor/ConsentRequestParametersEditor.cs +++ b/Editor/ConsentRequestParametersEditor.cs @@ -77,21 +77,27 @@ private void OnEnable() () => newCASVersion = Utils.GetNewVersionOrNull( gitRepoName, UserConsent.version, false ); } + protected override void OnHeaderGUI() + { + EditorGUILayout.Space(); + EditorGUILayout.BeginHorizontal(); + GUILayout.Label( "CleverAdsSolutions", HelpStyles.largeTitleStyle ); + GUILayout.Label( "Consent", HelpStyles.largeTitleStyle, GUILayout.ExpandWidth( false ) ); + EditorGUILayout.EndHorizontal(); + + Utils.OnHeaderGUI( gitRepoName, allowedPackageUpdate, UserConsent.version, ref newCASVersion ); + } + public override void OnInspectorGUI() { var obj = serializedObject; obj.UpdateIfRequiredOrScript(); - Utils.LinksToolbarGUI( gitRepoName ); - EditorGUILayout.PropertyField( withAudienceDefinitionProp ); EditorGUILayout.PropertyField( withDeclineOptionProp ); EditorGUILayout.PropertyField( showInEditorProp ); EditorGUILayout.Space(); - Utils.AboutRepoGUI( gitRepoName, allowedPackageUpdate, UserConsent.version, ref newCASVersion ); - EditorGUILayout.Space(); - currentListProp = privacyPolicyUrlProp; privacyPolicyList.DoLayoutList(); currentListProp = termsOfUseUrlProp; diff --git a/README.md b/README.md index bf2438f..ef1cbb8 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.3" +"com.cleversolutions.ads.consent.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.2.4" } } ``` diff --git a/Runtime/ConsentClient.cs b/Runtime/ConsentClient.cs index 8a0d081..5c298c5 100644 --- a/Runtime/ConsentClient.cs +++ b/Runtime/ConsentClient.cs @@ -175,9 +175,10 @@ private static string GetNetworkTag( AdNetwork network ) return "VZ"; case AdNetwork.MoPub: return "MP"; - case ( AdNetwork )20: + case AdNetwork.Tapjoy: return "TJ"; - case ( AdNetwork )21: + case AdNetwork.Fyber: + case AdNetwork.FairBid: return "Fy"; default: return string.Empty; diff --git a/Runtime/MediationSettingsUI.cs b/Runtime/MediationSettingsUI.cs index 05eaf0f..281dea1 100644 --- a/Runtime/MediationSettingsUI.cs +++ b/Runtime/MediationSettingsUI.cs @@ -48,6 +48,7 @@ private IEnumerator Start() "https://www.verizonmedia.com/policies/us/en/verizonmedia/privacy/", "https://www.mopub.com/en/legal/privacy", "https://www.tapjoy.com/legal/players/privacy-policy/", + null, "https://www.fyber.com/privacy-policy/" }; diff --git a/Runtime/UserConsent.cs b/Runtime/UserConsent.cs index 9ae7030..5fcb090 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.3"; + public const string version = "1.2.4"; /// /// User latest consent status values. diff --git a/package.json b/package.json index 3c338a6..0cc5c78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.cleversolutions.ads.consent.unity", - "version": "1.2.3", + "version": "1.2.4", "displayName": "CleverAdsSolutions Consent", "description": "Clever Ads Solutions User consent Unity plugin.", "unity": "2017.4",