com.chartboost.mediation.unity.adapter.pangle 5.0.8 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.checksum CHANGED
@@ -1 +1 @@
1
- 28e31efddb66c8d2d4d8131b0db781de
1
+ fe7cdd014432f76c12dcc850f0dc4db9
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file using the standards as defined at [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0).
3
3
 
4
+ ### Version 5.1.0 *(2025-12-09)*
5
+ This version of the Pangle Adapter supports the following native SDK dependencies:
6
+ * Android: `com.chartboost:chartboost-mediation-adapter-pangle:5.7.1.+`
7
+ * iOS: `ChartboostMediationAdapterPangle: ~> 5.7.1.0`
8
+
4
9
  ### Version 5.0.8 *(2025-06-02)*
5
10
  This version of the Pangle Adapter supports the following native SDK dependencies:
6
11
  * Android: `com.chartboost:chartboost-mediation-adapter-pangle:5.6.5.+`
@@ -2,16 +2,16 @@
2
2
  <package>
3
3
  <metadata>
4
4
  <id>Chartboost.CSharp.Mediation.Unity.Adapter.Pangle</id>
5
- <version>5.0.8</version>
5
+ <version>5.1.0</version>
6
6
  <title>Chartboost Mediation Adapter - Pangle</title>
7
7
  <description>The Chartboost Mediation Unity SDK Adapter for Pangle.</description>
8
8
  <authors>Chartboost</authors>
9
9
  <owners>Chartboost</owners>
10
10
  <license type="file">LICENSE.md</license>
11
11
  <readme>README.md</readme>
12
- <projectUrl>https://www.chartboost.com/products/mediation/</projectUrl>
12
+ <projectUrl>https://www.chartboost.com</projectUrl>
13
13
  <copyright>Copyright 2024</copyright>
14
- <tags>Chartboost, Ads, Mediation, Unity, Adapter, Pangle, cs</tags>
14
+ <tags>Chartboost, Mediation, Adapter, Unity, Pangle</tags>
15
15
  <repository type="git" url="https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle.git"/>
16
16
  <dependencies>
17
17
  <dependency id="Chartboost.CSharp.Mediation.Unity" version="5.0.0" />
@@ -20,4 +20,4 @@
20
20
  <dependency id="Chartboost.CSharp.Logging.Unity" version="1.0.0" />
21
21
  </dependencies>
22
22
  </metadata>
23
- </package>
23
+ </package>
@@ -2,7 +2,7 @@
2
2
  <dependencies>
3
3
  <androidPackages>
4
4
  <!-- Android Adapter -->
5
- <androidPackage spec="com.chartboost:chartboost-mediation-adapter-pangle:5.6.5.+"/>
5
+ <androidPackage spec="com.chartboost:chartboost-mediation-adapter-pangle:5.7.1.+"/>
6
6
 
7
7
  <!-- Pangle Android Repositories -->
8
8
  <repositories>
@@ -11,9 +11,9 @@
11
11
  </androidPackages>
12
12
  <iosPods>
13
13
  <!-- iOS Adapter -->
14
- <iosPod name="ChartboostMediationAdapterPangle" version="~> 5.6.3.0"/>
14
+ <iosPod name="ChartboostMediationAdapterPangle" version="~> 5.7.1.0"/>
15
15
 
16
16
  <!-- Partner iOS SDK-->
17
- <iosPod name="Ads-Global" version="~> 6.3.0" addToAllTargets="false"/>
17
+ <iosPod name="Ads-Global" version="~> 7.1.0" addToAllTargets="false"/>
18
18
  </iosPods>
19
19
  </dependencies>
package/README.md CHANGED
@@ -12,7 +12,7 @@ In order to add the Chartboost Mediation Unity SDK - Pangle Adapter to your proj
12
12
 
13
13
  ```json
14
14
  "dependencies": {
15
- "com.chartboost.mediation.unity.adapter.pangle": "5.0.8",
15
+ "com.chartboost.mediation.unity.adapter.pangle": "5.1.0",
16
16
  ...
17
17
  },
18
18
  "scopedRegistries": [
@@ -4,11 +4,10 @@ using UnityEngine;
4
4
 
5
5
  namespace Chartboost.Mediation.Pangle.Android
6
6
  {
7
- internal partial class PangleAdapter : IPangleAdapter
7
+ internal sealed class PangleAdapter : IPangleAdapter
8
8
  {
9
9
  private const string PangleAdapterConfiguration = "com.chartboost.mediation.pangleadapter.PangleAdapterConfiguration";
10
10
  private const string FunctionSetGdprConsentOverride = "setGdprConsentOverride";
11
- private const string FunctionSetDoNotSellOverride = "setDoNotSellOverride";
12
11
 
13
12
  [RuntimeInitializeOnLoadMethod]
14
13
  private static void RegisterInstance()
@@ -65,11 +64,16 @@ namespace Chartboost.Mediation.Pangle.Android
65
64
  adapterConfiguration.Call(FunctionSetGdprConsentOverride, (int)gdprConsent);
66
65
  }
67
66
 
67
+ /// <inheritdoc/>
68
+ public void SetPAConsentOverride(PanglePAConsentType paConsentType)
69
+ {
70
+ // TODO - Implement on Android when native adapter update is complete.
71
+ }
72
+
68
73
  /// <inheritdoc/>
69
74
  public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
70
75
  {
71
- using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
72
- adapterConfiguration.Call(FunctionSetDoNotSellOverride, (int)doNotSellType);
76
+ // Do nothing on Android, deprecated.
73
77
  }
74
78
  }
75
79
  }
@@ -1,3 +1,4 @@
1
+ using System;
1
2
  using Chartboost.Mediation.Adapters;
2
3
 
3
4
  namespace Chartboost.Mediation.Pangle.Common
@@ -13,10 +14,18 @@ namespace Chartboost.Mediation.Pangle.Common
13
14
  /// </summary>
14
15
  public void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent);
15
16
 
17
+ /// <summary>
18
+ /// Indicates whether the user agrees to the delivery of personalized ads. If not passed, it is assumed to be agreed
19
+ /// </summary>
20
+ /// <param name="paConsentType"></param>
21
+ // ReSharper disable once InconsistentNaming
22
+ public void SetPAConsentOverride(PanglePAConsentType paConsentType);
23
+
16
24
  /// <summary>
17
25
  /// Use to manually set the do not sell flag on the Pangle SDK.
18
26
  /// This is generally unnecessary as the Mediation SDK will set the consent flags automatically based on the latest consent info.
19
27
  /// </summary>
28
+ [Obsolete("This method is no longer supported and will be removed in a future release. Use SetPAConsentOverride instead.")]
20
29
  public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType);
21
30
  }
22
31
  }
@@ -1,6 +1,10 @@
1
1
  // ReSharper disable once CheckNamespace
2
+
3
+ using System;
4
+
2
5
  namespace Chartboost.Mediation.Pangle
3
6
  {
7
+ [Obsolete("This enum is no longer supported and will be removed in a future release.")]
4
8
  public enum PangleDoNotSellType
5
9
  {
6
10
  PangleDoNotSellTypeDefault = -1,
@@ -0,0 +1,15 @@
1
+ namespace Chartboost.Mediation.Pangle.Common
2
+ {
3
+ public enum PanglePAConsentType
4
+ {
5
+ /// <summary>
6
+ /// User doesn't grant consent
7
+ /// </summary>
8
+ PanglePAConsentTypeNoConsent = 0,
9
+
10
+ /// <summary>
11
+ /// User has granted the consent
12
+ /// </summary>
13
+ PanglePAConsentTypeConsent = 1
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: f3e52c1b0eed42c5b4c0424c09fdc630
3
+ timeCreated: 1765297843
@@ -21,6 +21,9 @@ namespace Chartboost.Mediation.Pangle.Default
21
21
  public void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)
22
22
  => LogController.Log($"{nameof(SetGDPRConsentOverride)} does nothing on {nameof(PangleDefault)}", LogLevel.Info);
23
23
 
24
+ public void SetPAConsentOverride(PanglePAConsentType paConsentType)
25
+ => LogController.Log($"{nameof(SetPAConsentOverride)} does nothing on {nameof(PangleDefault)}", LogLevel.Info);
26
+
24
27
  /// <inheritdoc/>
25
28
  public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
26
29
  => LogController.Log($"{nameof(SetDoNotSellOverride)} does nothing on {nameof(PangleDefault)}", LogLevel.Info);
@@ -1,3 +1,4 @@
1
+ using System;
1
2
  using Chartboost.Mediation.Adapters;
2
3
  using Chartboost.Mediation.Pangle.Common;
3
4
  using Chartboost.Mediation.Pangle.Default;
@@ -12,7 +13,7 @@ namespace Chartboost.Mediation.Pangle
12
13
  /// <summary>
13
14
  /// The partner adapter Unity version.
14
15
  /// </summary>
15
- public const string AdapterUnityVersion = "5.0.8";
16
+ public const string AdapterUnityVersion = "5.1.0";
16
17
 
17
18
  /// <inheritdoc cref="IPartnerAdapterConfiguration.AdapterNativeVersion"/>
18
19
  public static string AdapterNativeVersion => Instance.AdapterNativeVersion;
@@ -29,8 +30,14 @@ namespace Chartboost.Mediation.Pangle
29
30
  /// <inheritdoc cref="IPangleAdapter.SetGDPRConsentOverride"/>
30
31
  public static void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)
31
32
  => Instance.SetGDPRConsentOverride(gdprConsent);
33
+
34
+ /// <inheritdoc cref="IPangleAdapter.SetPAConsentOverride"/>
35
+ // ReSharper disable once InconsistentNaming
36
+ public static void SetPAConsentOverride(PanglePAConsentType paConsentType)
37
+ => Instance.SetPAConsentOverride(paConsentType);
32
38
 
33
39
  /// <inheritdoc cref="IPangleAdapter.SetDoNotSellOverride"/>
40
+ [Obsolete("This method is no longer supported and will be removed in a future release. Use SetPAConsentOverride instead.")]
34
41
  public static void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
35
42
  => Instance.SetDoNotSellOverride(doNotSellType);
36
43
  }
@@ -32,14 +32,19 @@ namespace Chartboost.Mediation.Pangle.IOS
32
32
  => _CBMPangleAdapterSetGDPRConsentOverride((int)gdprConsent);
33
33
 
34
34
  /// <inheritdoc/>
35
+ public void SetPAConsentOverride(PanglePAConsentType paConsentType)
36
+ => _CBMPangleAdapterSetPAConsentOverride((int)paConsentType);
37
+
35
38
  public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
36
- => _CBMPangleAdapterSetDoNotSellOverride((int)doNotSellType);
39
+ {
40
+ // Do nothing on iOS, deprecated.
41
+ }
37
42
 
38
43
  [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterAdapterVersion();
39
44
  [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterPartnerSDKVersion();
40
45
  [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterPartnerId();
41
46
  [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterPartnerDisplayName();
42
47
  [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMPangleAdapterSetGDPRConsentOverride(int gdprConsent);
43
- [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMPangleAdapterSetDoNotSellOverride(int doNotSellType);
48
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMPangleAdapterSetPAConsentOverride(int gdprConsent);
44
49
  }
45
50
  }
@@ -26,8 +26,8 @@ extern "C" {
26
26
  [PangleAdapterConfiguration setGDPRConsentOverride:(PAGGDPRConsentType)gdprConsent];
27
27
  }
28
28
 
29
- void _CBMPangleAdapterSetDoNotSellOverride(int doNotSellType)
29
+ void _CBMPangleAdapterSetPAConsentOverride(int paConsent)
30
30
  {
31
- [PangleAdapterConfiguration setDoNotSellOverride:(PAGDoNotSellType)doNotSellType];
31
+ [PangleAdapterConfiguration setPAConsentTypeOverride:(PAGPAConsentType)paConsent];
32
32
  }
33
33
  }
@@ -1,5 +1,6 @@
1
1
  using Chartboost.Logging;
2
2
  using Chartboost.Mediation.Pangle;
3
+ using Chartboost.Mediation.Pangle.Common;
3
4
  using Chartboost.Tests.Runtime;
4
5
  using NUnit.Framework;
5
6
 
@@ -23,7 +24,7 @@ namespace Chartboost.Tests
23
24
  public void PartnerIdentifier()
24
25
  => TestUtilities.TestStringGetter(() => PangleAdapter.PartnerIdentifier);
25
26
 
26
-
27
+ [Test]
27
28
  public void PartnerDisplayName()
28
29
  => TestUtilities.TestStringGetter(() => PangleAdapter.PartnerDisplayName);
29
30
 
@@ -39,6 +40,16 @@ namespace Chartboost.Tests
39
40
  public void SetGDPRConsentDefault()
40
41
  => PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentTypeDefault);
41
42
 
43
+ [Test, Order(0)]
44
+ // ReSharper disable once InconsistentNaming
45
+ public void SetPAConsentOverrideConsent()
46
+ => PangleAdapter.SetPAConsentOverride(PanglePAConsentType.PanglePAConsentTypeConsent);
47
+
48
+ [Test, Order(0)]
49
+ // ReSharper disable once InconsistentNaming
50
+ public void SetPAConsentOverrideNoConsent()
51
+ => PangleAdapter.SetPAConsentOverride(PanglePAConsentType.PanglePAConsentTypeNoConsent);
52
+
42
53
  [Test, Order(0)]
43
54
  public void SetDoNotSellTypeSell()
44
55
  => PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleGDoNotSellTypeSell);
package/package.json CHANGED
@@ -1,19 +1,27 @@
1
1
  {
2
2
  "name": "com.chartboost.mediation.unity.adapter.pangle",
3
- "version": "5.0.8",
3
+ "version": "5.1.0",
4
+ "license": "MIT",
4
5
  "displayName": "Chartboost Mediation Adapter - Pangle",
5
6
  "description": "The Chartboost Mediation Unity SDK Adapter for Pangle.",
6
7
  "unity": "2022.3",
7
8
  "documentationUrl": "https://docs.chartboost.com/en/mediation/integrate/unity/get-started/",
8
- "changelogUrl": "https://docs.chartboost.com/en/mediation/integrate/unity/changelog/",
9
+ "changelogUrl": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle/blob/main/CHANGELOG.md",
9
10
  "licensesUrl": "https://docs.chartboost.com/en/legal/",
10
11
  "dependencies": {
11
- "com.chartboost.mediation" : "5.0.0",
12
+ "com.chartboost.mediation": "5.0.0",
12
13
  "com.chartboost.unity.threading": "1.0.1",
13
14
  "com.chartboost.unity.utilities": "1.0.1",
14
15
  "com.chartboost.unity.logging": "1.0.0"
15
16
  },
16
- "keywords": ["Chartboost", "Mediation", "Adapter", "Unity", "Pangle"],
17
+ "keywords": [
18
+ "Chartboost",
19
+ "Mediation",
20
+ "Adapter",
21
+ "Unity",
22
+ "Pangle"
23
+ ],
24
+ "homepage": "https://chartboost.com",
17
25
  "author": {
18
26
  "name": "Chartboost",
19
27
  "email": "sales@chartboost.com",
@@ -21,7 +29,7 @@
21
29
  },
22
30
  "repository": {
23
31
  "type": "git",
24
- "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle.git"
32
+ "url": "git+https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle.git"
25
33
  },
26
34
  "bugs": {
27
35
  "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle/issues",