com.chartboost.mediation.unity.adapter.unity-ads 5.0.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/CHANGELOG.md.meta +7 -0
  3. package/Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds.nuspec +23 -0
  4. package/Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds.nuspec.meta +7 -0
  5. package/Editor/UnityAdsAdapterDependencies.xml +14 -0
  6. package/Editor/UnityAdsAdapterDependencies.xml.meta +7 -0
  7. package/Editor.meta +8 -0
  8. package/LICENSE.md +9 -0
  9. package/LICENSE.md.meta +7 -0
  10. package/README.md +96 -0
  11. package/README.md.meta +7 -0
  12. package/Runtime/Android/AssemblyInfo.cs +3 -0
  13. package/Runtime/Android/AssemblyInfo.cs.meta +3 -0
  14. package/Runtime/Android/Chartboost.Mediation.UnityAds.Android.asmdef +26 -0
  15. package/Runtime/Android/Chartboost.Mediation.UnityAds.Android.asmdef.meta +7 -0
  16. package/Runtime/Android/UnityAdsAdapter.cs +95 -0
  17. package/Runtime/Android/UnityAdsAdapter.cs.meta +11 -0
  18. package/Runtime/Android.meta +8 -0
  19. package/Runtime/Unity Ads/AssemblyInfo.cs +16 -0
  20. package/Runtime/Unity Ads/AssemblyInfo.cs.meta +3 -0
  21. package/Runtime/Unity Ads/Chartboost.Mediation.Pangle.asmdef +21 -0
  22. package/Runtime/Unity Ads/Chartboost.Mediation.Pangle.asmdef.meta +7 -0
  23. package/Runtime/Unity Ads/Common/IUnityAdsAdapter.cs +31 -0
  24. package/Runtime/Unity Ads/Common/IUnityAdsAdapter.cs.meta +11 -0
  25. package/Runtime/Unity Ads/Common.meta +8 -0
  26. package/Runtime/Unity Ads/Default/UnityAdsDefault.cs +31 -0
  27. package/Runtime/Unity Ads/Default/UnityAdsDefault.cs.meta +11 -0
  28. package/Runtime/Unity Ads/Default.meta +8 -0
  29. package/Runtime/Unity Ads/UnityAdsAdapter.cs +44 -0
  30. package/Runtime/Unity Ads/UnityAdsAdapter.cs.meta +11 -0
  31. package/Runtime/Unity Ads.meta +8 -0
  32. package/Runtime/iOS/AssemblyInfo.cs +3 -0
  33. package/Runtime/iOS/AssemblyInfo.cs.meta +3 -0
  34. package/Runtime/iOS/Chartboost.Mediation.UnityAds.IOS.asmdef +25 -0
  35. package/Runtime/iOS/Chartboost.Mediation.UnityAds.IOS.asmdef.meta +7 -0
  36. package/Runtime/iOS/Plugins/iOS/CBMUnityAdsUnityBridge.mm +38 -0
  37. package/Runtime/iOS/Plugins/iOS/CBMUnityAdsUnityBridge.mm.meta +37 -0
  38. package/Runtime/iOS/Plugins/iOS.meta +8 -0
  39. package/Runtime/iOS/Plugins.meta +8 -0
  40. package/Runtime/iOS/UnityAdsAdapter.cs +54 -0
  41. package/Runtime/iOS/UnityAdsAdapter.cs.meta +11 -0
  42. package/Runtime/iOS.meta +8 -0
  43. package/Runtime.meta +8 -0
  44. package/Tests/Editor/Chartboost.Mediation.UnityAds.Tests.Editor.asmdef +26 -0
  45. package/Tests/Editor/Chartboost.Mediation.UnityAds.Tests.Editor.asmdef.meta +7 -0
  46. package/Tests/Editor/VersionValidator.cs +21 -0
  47. package/Tests/Editor/VersionValidator.cs.meta +3 -0
  48. package/Tests/Editor.meta +8 -0
  49. package/Tests/Runtime/Chartboost.Mediation.Pangle.Tests.Runtime.asmdef +29 -0
  50. package/Tests/Runtime/Chartboost.Mediation.Pangle.Tests.Runtime.asmdef.meta +7 -0
  51. package/Tests/Runtime/UnityAdsAdapterTests.cs +50 -0
  52. package/Tests/Runtime/UnityAdsAdapterTests.cs.meta +11 -0
  53. package/Tests/Runtime.meta +8 -0
  54. package/Tests.meta +8 -0
  55. package/package.json +31 -0
  56. package/package.json.meta +7 -0
  57. package/rsync.sh +17 -0
  58. package/rsync.sh.meta +7 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ # Changelog
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
+
4
+ ### Version 5.0.0 *(2024-08-08)*
5
+
6
+ First version of the Chartboost Mediation Unity SDK - Unity Ads Adapter.
7
+
8
+ #Added
9
+ - Support for the following `Unity Ads` dependencies. Notice adapter dependencies are optimistic and any patches and hot-fixes will be automatically picked up.:
10
+ * Android: `com.chartboost:chartboost-mediation-adapter-unity-ads:5.4.12.+`
11
+ * iOS: `ChartboostMediationAdapterUnityAds ~> 5.4.12.0`
12
+
13
+ - `UnityAdsAdapter.cs` with Configuration Properties for `Unity Ads`.
14
+ - The following properties have been added in `UnityAdsAdapter.cs`
15
+ * `string AdapterUnityVersion`
16
+ * `string AdapterNativeVersion`
17
+ * `string PartnerSDKVersion`
18
+ * `string PartnerIdentifier`
19
+ * `string PartnerDisplayName`
20
+ * `bool TestMode`
21
+
22
+ - The following methods have been added in `UnityAdsAdapter.cs`
23
+ * `void SetGDPRConsentOverride(bool gdprStatus)`
24
+ * `void SetPrivacyConsentOverride(bool consentStatus)`
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: bcd4e9485e6b14961ab29293469b0dcf
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <package>
3
+ <metadata>
4
+ <id>Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds</id>
5
+ <version>5.0.0</version>
6
+ <title>Chartboost Mediation Adapter - Unity Ads</title>
7
+ <description>The Chartboost Mediation Unity SDK Adapter for Unity Ads.</description>
8
+ <authors>Chartboost</authors>
9
+ <owners>Chartboost</owners>
10
+ <license type="file">LICENSE.md</license>
11
+ <readme>README.md</readme>
12
+ <projectUrl>https://www.chartboost.com/products/mediation/</projectUrl>
13
+ <copyright>Copyright 2024</copyright>
14
+ <tags>Chartboost, Ads, Mediation, Unity, Adapter, Unity Ads, cs</tags>
15
+ <repository type="git" url="https://github.com/ChartBoost/chartboost-mediation-unity-adapter-unity-ads.git"/>
16
+ <dependencies>
17
+ <dependency id="Chartboost.CSharp.Mediation.Unity" version="5.0.0" />
18
+ <dependency id="Chartboost.CSharp.Threading.Unity" version="1.0.1" />
19
+ <dependency id="Chartboost.CSharp.Utilities.Unity" version="1.0.1" />
20
+ <dependency id="Chartboost.CSharp.Logging.Unity" version="1.0.0" />
21
+ </dependencies>
22
+ </metadata>
23
+ </package>
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 949471a1a3e2c4a71b5deaa06fa0e5a2
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <dependencies>
3
+ <androidPackages>
4
+ <!-- Android Adapter -->
5
+ <androidPackage spec="com.chartboost:chartboost-mediation-adapter-unity-ads:5.4.12.+"/>
6
+ </androidPackages>
7
+ <iosPods>
8
+ <!-- iOS Adapter -->
9
+ <iosPod name="ChartboostMediationAdapterUnityAds" version="~> 5.4.12.0"/>
10
+
11
+ <!-- Partner iOS SDK-->
12
+ <iosPod name="UnityAds" version="~> 4.12.0" addToAllTargets="false"/>
13
+ </iosPods>
14
+ </dependencies>
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 956d8bf8f6afa4fe89cc717ab1fc0415
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Editor.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: f0ab4aa2dc67241e89362ee8e1aab4cf
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright 2024 Chartboost Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: fb68244c8049e41ae96f670153551d9a
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ # Chartboost Mediation Unity SDK - UnityAds Adapter
2
+
3
+ Provides a list of externally configurable properties pertaining to the partner SDK that can be retrieved and set by publishers.
4
+
5
+ Dependencies for the adapter are now embedded in the package, and can be found at `com.chartboost.mediation.unity.adapter.unity-ads/Editor/UnityAdsAdapterDependencies.xml`.
6
+
7
+ # Installation
8
+
9
+ ## Using the public [npm registry](https://www.npmjs.com/search?q=com.chartboost.mediation.unity.adapter.unity-ads)
10
+
11
+ In order to add the Chartboost Mediation Unity SDK - UnityAds Adapter to your project using the npm package, add the following to your Unity Project's ***manifest.json*** file. The scoped registry section is required in order to fetch packages from the NpmJS registry.
12
+
13
+ ```json
14
+ "dependencies": {
15
+ "com.chartboost.mediation.unity.adapter.unity-ads": "5.0.0",
16
+ ...
17
+ },
18
+ "scopedRegistries": [
19
+ {
20
+ "name": "NpmJS",
21
+ "url": "https://registry.npmjs.org",
22
+ "scopes": [
23
+ "com.chartboost"
24
+ ]
25
+ }
26
+ ]
27
+ ```
28
+ ## Using the public [NuGet package](https://www.nuget.org/packages/Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds)
29
+
30
+ To add the Chartboost Mediation Unity SDK - UnityAds Adapter to your project using the NuGet package, you will first need to add the [NugetForUnity](https://github.com/GlitchEnzo/NuGetForUnity) package into your Unity Project.
31
+
32
+ This can be done by adding the following to your Unity Project's ***manifest.json***
33
+
34
+ ```json
35
+ "dependencies": {
36
+ "com.github-glitchenzo.nugetforunity": "https://github.com/GlitchEnzo/NuGetForUnity.git?path=/src/NuGetForUnity",
37
+ ...
38
+ },
39
+ ```
40
+
41
+ Once <code>NugetForUnity</code> is installed, search for `Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds` in the search bar of Nuget Explorer window(Nuget -> Manage Nuget Packages).
42
+ You should be able to see the `Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds` package. Choose the appropriate version and install.
43
+
44
+ # Usage
45
+ The following code block exemplifies usage of the `UnityAdsAdapter.cs` configuration class.
46
+
47
+ ## IPartnerAdapterConfiguration Properties
48
+
49
+ ```csharp
50
+
51
+ // AdapterUnityVersion - The partner adapter Unity version, e.g: 5.0.0
52
+ Debug.Log($"Adapter Unity Version: {UnityAdsAdapter.AdapterUnityVersion}");
53
+
54
+ // AdapterNativeVersion - The partner adapter version, e.g: 5.4.12.0.0
55
+ Debug.Log($"Adapter Native Version: {UnityAdsAdapter.AdapterNativeVersion}");
56
+
57
+ // PartnerSDKVersion - The partner SDK version, e.g: 4.12.0
58
+ Debug.Log($"Partner SDK Version: {UnityAdsAdapter.PartnerSDKVersion}");
59
+
60
+ // PartnerIdentifier - The partner ID for internal uses, e.g: unity
61
+ Debug.Log($"Partner Identifier: {UnityAdsAdapter.PartnerIdentifier}");
62
+
63
+ // PartnerDisplayName - The partner name for external uses, e.g: Unity Ads
64
+ Debug.Log($"Partner Display Name: {UnityAdsAdapter.PartnerDisplayName}");
65
+ ```
66
+
67
+ ## Test Mode
68
+ To enable test mode for the UnityAds adapter, the following property has been made available:
69
+
70
+ ```csharp
71
+ UnityAdsAdapter.TestMode = true;
72
+ ```
73
+
74
+ ## Set GDPR Consent Override
75
+ Use to manually set the consent status on the Unity Ads SDK.This is generally unnecessary as the Mediation SDK will set the consent status.automatically based on the latest consent info.
76
+
77
+ ```csharp
78
+ // Consent
79
+ UnityAdsAdapter.SetGDPRConsentOverride(true);
80
+
81
+
82
+ // No Consent
83
+ UnityAdsAdapter.SetGDPRConsentOverride(false);
84
+ ```
85
+
86
+ ## Set Privacy Consent Override
87
+
88
+ Use to manually set the consent status on the Unity Ads SDK. This is generally unnecessary as the Mediation SDK will set the consent status automatically based on the latest consent info.
89
+
90
+ ```csharp
91
+ // Consent
92
+ UnityAdsAdapter.SetPrivacyConsentOverride(true);
93
+
94
+ // No Consent
95
+ UnityAdsAdapter.SetPrivacyConsentOverride(false);
96
+ ```
package/README.md.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: dc61bdca88c864591b416f746521e930
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,3 @@
1
+ using UnityEngine.Scripting;
2
+
3
+ [assembly: AlwaysLinkAssembly]
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 7f53f122044ee43e8b8c71a6ba0c8905
3
+ timeCreated: 1684175795
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Chartboost.Mediation.UnityAds.Android",
3
+ "rootNamespace": "Chartboost.Mediation.UnityAds.Android",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Mediation.UnityAds",
8
+ "Chartboost.Mediation",
9
+ "Chartboost.Mediation.Android",
10
+ "Chartboost.Utilities.Android"
11
+ ],
12
+ "includePlatforms": [
13
+ "Android",
14
+ "Editor"
15
+ ],
16
+ "excludePlatforms": [],
17
+ "allowUnsafeCode": false,
18
+ "overrideReferences": false,
19
+ "precompiledReferences": [
20
+ ""
21
+ ],
22
+ "autoReferenced": true,
23
+ "defineConstraints": [],
24
+ "versionDefines": [],
25
+ "noEngineReferences": false
26
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 8c10197f9ad714671b421c8740401543
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,95 @@
1
+ using Chartboost.Constants;
2
+ using Chartboost.Mediation.UnityAds.Common;
3
+ using UnityEngine;
4
+
5
+ namespace Chartboost.Mediation.UnityAds.Android
6
+ {
7
+ internal partial class UnityAdsAdapter : IUnityAdsAdapter
8
+ {
9
+ private const string UnityAdsAdapterConfiguration = "com.chartboost.mediation.unityadsadapter.UnityAdsAdapterConfiguration";
10
+ private const string FunctionGetDebugMode = "getDebugMode";
11
+ private const string FunctionSetDebugMode = "setDebugMode";
12
+ private const string FunctionSetGdprConsentOverride = "setGdprConsentOverride";
13
+ private const string FunctionSetPrivacyConsentOverride = "setPrivacyConsentOverride";
14
+
15
+ [RuntimeInitializeOnLoadMethod]
16
+ private static void RegisterInstance()
17
+ {
18
+ if (Application.isEditor)
19
+ return;
20
+ UnityAds.UnityAdsAdapter.Instance = new UnityAdsAdapter();
21
+ }
22
+
23
+ /// <inheritdoc/>
24
+ public string AdapterNativeVersion
25
+ {
26
+ get
27
+ {
28
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
29
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetAdapterVersion);
30
+ }
31
+ }
32
+
33
+ /// <inheritdoc/>
34
+ public string PartnerSDKVersion
35
+ {
36
+ get
37
+ {
38
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
39
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerSdkVersion);
40
+ }
41
+ }
42
+
43
+ /// <inheritdoc/>
44
+ public string PartnerIdentifier
45
+ {
46
+ get
47
+ {
48
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
49
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerId);
50
+ }
51
+ }
52
+
53
+ /// <inheritdoc/>
54
+ public string PartnerDisplayName
55
+ {
56
+ get
57
+ {
58
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
59
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerDisplayName);
60
+ }
61
+ }
62
+
63
+ /// <inheritdoc/>
64
+ public bool TestMode
65
+ {
66
+ get
67
+ {
68
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
69
+ return adapterConfiguration.Call<bool>(FunctionGetDebugMode);
70
+ }
71
+ set
72
+ {
73
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
74
+ adapterConfiguration.Call(FunctionSetDebugMode, value);
75
+ }
76
+ }
77
+
78
+ /// <inheritdoc/>
79
+ public void SetGDPRConsentOverride(bool gdprStatus)
80
+ {
81
+
82
+ using var currentActivity = SharedAndroidConstants.UnityPlayerCurrentActivity();
83
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
84
+ adapterConfiguration.Call(FunctionSetGdprConsentOverride, currentActivity, gdprStatus);
85
+ }
86
+
87
+ /// <inheritdoc/>
88
+ public void SetPrivacyConsentOverride(bool consentStatus)
89
+ {
90
+ using var currentActivity = SharedAndroidConstants.UnityPlayerCurrentActivity();
91
+ using var adapterConfiguration = new AndroidJavaObject(UnityAdsAdapterConfiguration);
92
+ adapterConfiguration.Call(FunctionSetPrivacyConsentOverride, currentActivity, consentStatus);
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 20fa3abfd25fb4cf391b731d453f04b6
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: ad21020832e0e40a69dc33b44b8f4838
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,16 @@
1
+ using System.Runtime.CompilerServices;
2
+ using Chartboost.Mediation.UnityAds;
3
+ using UnityEngine.Scripting;
4
+
5
+ [assembly: AlwaysLinkAssembly]
6
+ [assembly: InternalsVisibleTo(AssemblyInfo.UnityAdsAssemblyInfoAndroid)]
7
+ [assembly: InternalsVisibleTo(AssemblyInfo.UnityAdsAssemblyInfoIOS)]
8
+
9
+ namespace Chartboost.Mediation.UnityAds
10
+ {
11
+ internal class AssemblyInfo
12
+ {
13
+ public const string UnityAdsAssemblyInfoAndroid = "Chartboost.Mediation.UnityAds.Android";
14
+ public const string UnityAdsAssemblyInfoIOS = "Chartboost.Mediation.UnityAds.IOS";
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: a7f1012224d8e4a9dab2b38d4144dbd4
3
+ timeCreated: 1684175795
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "Chartboost.Mediation.UnityAds",
3
+ "rootNamespace": "Chartboost.Mediation.UnityAds",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Utilities",
8
+ "Chartboost.Mediation"
9
+ ],
10
+ "includePlatforms": [],
11
+ "excludePlatforms": [],
12
+ "allowUnsafeCode": false,
13
+ "overrideReferences": false,
14
+ "precompiledReferences": [
15
+ ""
16
+ ],
17
+ "autoReferenced": true,
18
+ "defineConstraints": [],
19
+ "versionDefines": [],
20
+ "noEngineReferences": false
21
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: e7e4cccf6a0c44a19861b7ed0e789cf0
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,31 @@
1
+ using Chartboost.Mediation.Adapters;
2
+
3
+ namespace Chartboost.Mediation.UnityAds.Common
4
+ {
5
+ /// <summary>
6
+ /// The Chartboost Mediation UnityAds adapter.
7
+ /// </summary>
8
+ internal interface IUnityAdsAdapter : IPartnerAdapterConfiguration
9
+ {
10
+ /// <summary>
11
+ /// Enable/disable Unity Ads's test mode. Remember to set this to false in production.
12
+ /// </summary>
13
+ public bool TestMode { get; set; }
14
+
15
+
16
+ /// <summary>
17
+ /// Use to manually set the consent status on the Unity Ads SDK.
18
+ /// This is generally unnecessary as the Mediation SDK will set the consent status automatically based on the latest consent info.
19
+ /// </summary>
20
+ public void SetGDPRConsentOverride(bool gdprStatus);
21
+
22
+
23
+ /// <summary>
24
+ /// Use to manually set the consent status on the Unity Ads SDK.
25
+ /// This is generally unnecessary as the Mediation SDK will set the consent status automatically based on the latest consent info.
26
+ /// <br/>
27
+ /// Based off <a href="https://docs.unity.com/ads/en-us/manual/CCPACompliance">Unity's Documentation</a>.
28
+ /// </summary>
29
+ public void SetPrivacyConsentOverride(bool consentStatus);
30
+ }
31
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 3ec0ebb8eefe643659fa94f551ed1067
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: e41e4b57d211749069c2d4e583a8b8e0
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,31 @@
1
+ using Chartboost.Logging;
2
+ using Chartboost.Mediation.UnityAds.Common;
3
+
4
+ namespace Chartboost.Mediation.UnityAds.Default
5
+ {
6
+ internal class UnityAdsDefault : IUnityAdsAdapter
7
+ {
8
+ /// <inheritdoc/>
9
+ public string AdapterNativeVersion => UnityAdsAdapter.AdapterUnityVersion;
10
+
11
+ /// <inheritdoc/>
12
+ public string PartnerSDKVersion => UnityAdsAdapter.AdapterUnityVersion;
13
+
14
+ /// <inheritdoc/>
15
+ public string PartnerIdentifier => "unity";
16
+
17
+ /// <inheritdoc/>
18
+ public string PartnerDisplayName => "UnityAds";
19
+
20
+ /// <inheritdoc/>
21
+ public bool TestMode { get; set; }
22
+
23
+ /// <inheritdoc/>
24
+ public void SetGDPRConsentOverride(bool gdprStatus)
25
+ => LogController.Log($"{nameof(SetGDPRConsentOverride)} does nothing on {nameof(UnityAdsDefault)}", LogLevel.Info);
26
+
27
+ /// <inheritdoc/>
28
+ public void SetPrivacyConsentOverride(bool consentStatus)
29
+ => LogController.Log($"{nameof(SetGDPRConsentOverride)} does nothing on {nameof(UnityAdsDefault)}", LogLevel.Info);
30
+ }
31
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: f80ecc9ec152947c9a56e0b8d254e21c
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 04cd93fb5842b4c2db818f2c827ff9b5
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,44 @@
1
+ using Chartboost.Mediation.Adapters;
2
+ using Chartboost.Mediation.UnityAds.Common;
3
+ using Chartboost.Mediation.UnityAds.Default;
4
+
5
+ namespace Chartboost.Mediation.UnityAds
6
+ {
7
+ /// <inheritdoc cref="IUnityAdsAdapter"/>
8
+ public sealed class UnityAdsAdapter
9
+ {
10
+ internal static IUnityAdsAdapter Instance = new UnityAdsDefault();
11
+
12
+ /// <summary>
13
+ /// The partner adapter Unity version.
14
+ /// </summary>
15
+ public const string AdapterUnityVersion = "5.0.0";
16
+
17
+ /// <inheritdoc cref="IPartnerAdapterConfiguration.AdapterNativeVersion"/>
18
+ public static string AdapterNativeVersion => Instance.AdapterNativeVersion;
19
+
20
+ /// <inheritdoc cref="IPartnerAdapterConfiguration.PartnerSDKVersion"/>
21
+ public static string PartnerSDKVersion => Instance.PartnerSDKVersion;
22
+
23
+ /// <inheritdoc cref="IPartnerAdapterConfiguration.PartnerIdentifier"/>
24
+ public static string PartnerIdentifier => Instance.PartnerIdentifier;
25
+
26
+ /// <inheritdoc cref="IPartnerAdapterConfiguration.PartnerDisplayName"/>
27
+ public static string PartnerDisplayName => Instance.PartnerDisplayName;
28
+
29
+ /// <inheritdoc cref="IUnityAdsAdapter.TestMode"/>
30
+ public static bool TestMode
31
+ {
32
+ get => Instance.TestMode;
33
+ set => Instance.TestMode = value;
34
+ }
35
+
36
+ /// <inheritdoc cref="IUnityAdsAdapter.SetGDPRConsentOverride"/>
37
+ public static void SetGDPRConsentOverride(bool gdprStatus)
38
+ => Instance.SetGDPRConsentOverride(gdprStatus);
39
+
40
+ /// <inheritdoc cref="IUnityAdsAdapter.SetPrivacyConsentOverride"/>
41
+ public static void SetPrivacyConsentOverride(bool consentStatus)
42
+ => Instance.SetPrivacyConsentOverride(consentStatus);
43
+ }
44
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 02193c43b42924b98aecc876d593375c
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 6ad285b13495b447bb296b8f3e0f450b
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,3 @@
1
+ using UnityEngine.Scripting;
2
+
3
+ [assembly: AlwaysLinkAssembly]
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 52c0b3b529e9b4ba5bb8ee416c71a854
3
+ timeCreated: 1684175795
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "Chartboost.Mediation.UnityAds.IOS",
3
+ "rootNamespace": "Chartboost.Mediation.UnityAds.IOS",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Mediation.UnityAds",
8
+ "Chartboost.Mediation",
9
+ "Chartboost.Utilities.IOS"
10
+ ],
11
+ "includePlatforms": [
12
+ "Editor",
13
+ "iOS"
14
+ ],
15
+ "excludePlatforms": [],
16
+ "allowUnsafeCode": false,
17
+ "overrideReferences": false,
18
+ "precompiledReferences": [
19
+ ""
20
+ ],
21
+ "autoReferenced": true,
22
+ "defineConstraints": [],
23
+ "versionDefines": [],
24
+ "noEngineReferences": false
25
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 06e29c142b7bb425485c788b08257f1d
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,38 @@
1
+ #import "CBMDelegates.h"
2
+ #import "ChartboostUnityUtilities.h"
3
+ #import <ChartboostMediationAdapterUnityAds/ChartboostMediationAdapterUnityAds-Swift.h>
4
+
5
+ extern "C" {
6
+
7
+ const char * _CBMUnityAdsAdapterAdapterVersion(){
8
+ return toCStringOrNull([UnityAdsAdapterConfiguration adapterVersion]);
9
+ }
10
+
11
+ const char * _CBMUnityAdsAdapterPartnerSDKVersion(){
12
+ return toCStringOrNull([UnityAdsAdapterConfiguration partnerSDKVersion]);
13
+ }
14
+
15
+ const char * _CBMUnityAdsAdapterPartnerId(){
16
+ return toCStringOrNull([UnityAdsAdapterConfiguration partnerID]);
17
+ }
18
+
19
+ const char * _CBMUnityAdsAdapterPartnerDisplayName(){
20
+ return toCStringOrNull([UnityAdsAdapterConfiguration partnerDisplayName]);
21
+ }
22
+
23
+ BOOL _CBMUnityAdsAdapterGetTestMode(){
24
+ return [UnityAdsAdapterConfiguration debugMode];
25
+ }
26
+
27
+ void _CBMUnityAdsAdapterSetTestMode(BOOL testMode){
28
+ [UnityAdsAdapterConfiguration setDebugMode:testMode];
29
+ }
30
+
31
+ void _CBMUnityAdsAdapterSetGDPRConsentOverride(BOOL gdprStatus){
32
+ [UnityAdsAdapterConfiguration setGDPRConsentOverride:gdprStatus];
33
+ }
34
+
35
+ void _CBMUnityAdsAdapterSetPrivacyConsentOverride(BOOL consentStatus){
36
+ [UnityAdsAdapterConfiguration setPrivacyConsentOverride:consentStatus];
37
+ }
38
+ }
@@ -0,0 +1,37 @@
1
+ fileFormatVersion: 2
2
+ guid: 48f36647707c84f30bb9936e0922171c
3
+ PluginImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ iconMap: {}
7
+ executionOrder: {}
8
+ defineConstraints: []
9
+ isPreloaded: 0
10
+ isOverridable: 1
11
+ isExplicitlyReferenced: 0
12
+ validateReferences: 1
13
+ platformData:
14
+ - first:
15
+ Any:
16
+ second:
17
+ enabled: 0
18
+ settings: {}
19
+ - first:
20
+ Editor: Editor
21
+ second:
22
+ enabled: 0
23
+ settings:
24
+ DefaultValueInitialized: true
25
+ - first:
26
+ iPhone: iOS
27
+ second:
28
+ enabled: 1
29
+ settings: {}
30
+ - first:
31
+ tvOS: tvOS
32
+ second:
33
+ enabled: 1
34
+ settings: {}
35
+ userData:
36
+ assetBundleName:
37
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: f0c77261d97f542548a7c490a342abca
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: b496b1a2070e846da8cb0d8b859d0997
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,54 @@
1
+ using System.Runtime.InteropServices;
2
+ using Chartboost.Constants;
3
+ using Chartboost.Mediation.UnityAds.Common;
4
+ using UnityEngine;
5
+
6
+ namespace Chartboost.Mediation.UnityAds.IOS
7
+ {
8
+ internal class UnityAdsAdapter : IUnityAdsAdapter
9
+ {
10
+ [RuntimeInitializeOnLoadMethod]
11
+ private static void RegisterInstance()
12
+ {
13
+ if (Application.isEditor)
14
+ return;
15
+ UnityAds.UnityAdsAdapter.Instance = new UnityAdsAdapter();
16
+ }
17
+
18
+ /// <inheritdoc/>
19
+ public string AdapterNativeVersion => _CBMUnityAdsAdapterAdapterVersion();
20
+
21
+ /// <inheritdoc/>
22
+ public string PartnerSDKVersion => _CBMUnityAdsAdapterPartnerSDKVersion();
23
+
24
+ /// <inheritdoc/>
25
+ public string PartnerIdentifier => _CBMUnityAdsAdapterPartnerId();
26
+
27
+ /// <inheritdoc/>
28
+ public string PartnerDisplayName => _CBMUnityAdsAdapterPartnerDisplayName();
29
+
30
+ /// <inheritdoc/>
31
+ public bool TestMode
32
+ {
33
+ get => _CBMUnityAdsAdapterGetTestMode();
34
+ set => _CBMUnityAdsAdapterSetTestMode(value);
35
+ }
36
+
37
+ /// <inheritdoc/>
38
+ public void SetGDPRConsentOverride(bool gdprStatus)
39
+ => _CBMUnityAdsAdapterSetGDPRConsentOverride(gdprStatus);
40
+
41
+ /// <inheritdoc/>
42
+ public void SetPrivacyConsentOverride(bool consentStatus)
43
+ => _CBMUnityAdsAdapterSetPrivacyConsentOverride(consentStatus);
44
+
45
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMUnityAdsAdapterAdapterVersion();
46
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMUnityAdsAdapterPartnerSDKVersion();
47
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMUnityAdsAdapterPartnerId();
48
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMUnityAdsAdapterPartnerDisplayName();
49
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMUnityAdsAdapterGetTestMode();
50
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMUnityAdsAdapterSetTestMode(bool testMode);
51
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMUnityAdsAdapterSetGDPRConsentOverride(bool gdprStatus);
52
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMUnityAdsAdapterSetPrivacyConsentOverride(bool consentStatus);
53
+ }
54
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: dd2b286a06ff8457da6d58a4abcb6626
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: e47851988d43d43b6834fd376df3e435
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/Runtime.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 7fc04e1a6bc0441cf82eafe5f965c6c6
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Chartboost.Mediation.UnityAds.Tests.Editor",
3
+ "rootNamespace": "Chartboost.Tests.Editor",
4
+ "references": [
5
+ "UnityEngine.TestRunner",
6
+ "UnityEditor.TestRunner",
7
+ "Chartboost.Utilities.Editor",
8
+ "Chartboost.Logging",
9
+ "Chartboost.Mediation.UnityAds"
10
+ ],
11
+ "includePlatforms": [
12
+ "Editor"
13
+ ],
14
+ "excludePlatforms": [],
15
+ "allowUnsafeCode": false,
16
+ "overrideReferences": true,
17
+ "precompiledReferences": [
18
+ "nunit.framework.dll"
19
+ ],
20
+ "autoReferenced": false,
21
+ "defineConstraints": [
22
+ "UNITY_INCLUDE_TESTS"
23
+ ],
24
+ "versionDefines": [],
25
+ "noEngineReferences": false
26
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: d5520b471fad74cb2a36dec1dd7cb61f
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,21 @@
1
+ using Chartboost.Editor;
2
+ using Chartboost.Logging;
3
+ using Chartboost.Mediation.UnityAds;
4
+ using NUnit.Framework;
5
+
6
+ namespace Chartboost.Tests.Editor
7
+ {
8
+ internal class VersionValidator
9
+ {
10
+ private const string UnityPackageManagerPackageName = "com.chartboost.mediation.unity.adapter.unity-ads";
11
+ private const string NuGetPackageName = "Chartboost.CSharp.Mediation.Unity.Adapter.UnityAds";
12
+
13
+ [SetUp]
14
+ public void SetUp()
15
+ => LogController.LoggingLevel = LogLevel.Debug;
16
+
17
+ [Test]
18
+ public void ValidateVersion()
19
+ => VersionCheck.ValidateVersions(UnityPackageManagerPackageName, NuGetPackageName, UnityAdsAdapter.AdapterUnityVersion);
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: f6f4719e25d61421d9664b3a9f0b5fc5
3
+ timeCreated: 1710897732
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 33b199ed15a0b4342979c9b284bc140c
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "Chartboost.Mediation.UnityAds.Tests.Runtime",
3
+ "rootNamespace": "Chartboost.Tests",
4
+ "references": [
5
+ "UnityEngine.TestRunner",
6
+ "UnityEditor.TestRunner",
7
+ "Chartboost.Utilities",
8
+ "Chartboost.Mediation.UnityAds",
9
+ "Chartboost.Logging",
10
+ "Chartboost.Utilities.Tests.Runtime"
11
+ ],
12
+ "includePlatforms": [
13
+ "Android",
14
+ "Editor",
15
+ "iOS"
16
+ ],
17
+ "excludePlatforms": [],
18
+ "allowUnsafeCode": false,
19
+ "overrideReferences": true,
20
+ "precompiledReferences": [
21
+ "nunit.framework.dll"
22
+ ],
23
+ "autoReferenced": false,
24
+ "defineConstraints": [
25
+ "UNITY_INCLUDE_TESTS"
26
+ ],
27
+ "versionDefines": [],
28
+ "noEngineReferences": false
29
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 42298d3e9081740f99cf5a9662445983
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,50 @@
1
+ using Chartboost.Logging;
2
+ using Chartboost.Mediation.UnityAds;
3
+ using Chartboost.Tests.Runtime;
4
+ using NUnit.Framework;
5
+
6
+ namespace Chartboost.Tests
7
+ {
8
+ internal class UnityAdsAdapterTests
9
+ {
10
+ [SetUp]
11
+ public void SetUp()
12
+ => LogController.LoggingLevel = LogLevel.Debug;
13
+
14
+ [Test]
15
+ public void AdapterNativeVersion()
16
+ => TestUtilities.TestStringGetter(() => UnityAdsAdapter.AdapterNativeVersion);
17
+
18
+ [Test]
19
+ public void PartnerSDKVersion()
20
+ => TestUtilities.TestStringGetter(() => UnityAdsAdapter.PartnerSDKVersion);
21
+
22
+ [Test]
23
+ public void PartnerIdentifier()
24
+ => TestUtilities.TestStringGetter(() => UnityAdsAdapter.PartnerIdentifier);
25
+
26
+ [Test]
27
+ public void PartnerDisplayName()
28
+ => TestUtilities.TestStringGetter(() => UnityAdsAdapter.PartnerDisplayName);
29
+
30
+ [Test]
31
+ public void TestMode()
32
+ => TestUtilities.TestBooleanAccessor(() => UnityAdsAdapter.TestMode, value => UnityAdsAdapter.TestMode = value);
33
+
34
+ [Test, Order(0)]
35
+ public void SetGDPRConsentTrue()
36
+ => UnityAdsAdapter.SetGDPRConsentOverride(true);
37
+
38
+ [Test, Order(1)]
39
+ public void SetGDPRConsentFalse()
40
+ => UnityAdsAdapter.SetGDPRConsentOverride(false);
41
+
42
+ [Test, Order(0)]
43
+ public void SetPrivacyConsentTrue()
44
+ => UnityAdsAdapter.SetPrivacyConsentOverride(true);
45
+
46
+ [Test, Order(1)]
47
+ public void SetPrivacyConsentFalse()
48
+ => UnityAdsAdapter.SetPrivacyConsentOverride(false);
49
+ }
50
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: bcb0383de9d7b46db85afbeb1c97a4fe
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: b224c74bcdea74249bb30a461cce7b77
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/Tests.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 1b34cfb0372654dc5b7334567cf886b7
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "com.chartboost.mediation.unity.adapter.unity-ads",
3
+ "version": "5.0.0",
4
+ "displayName": "Chartboost Mediation Adapter - Unity Ads",
5
+ "description": "The Chartboost Mediation Unity SDK Adapter for Unity Ads.",
6
+ "unity": "2022.3",
7
+ "documentationUrl": "https://docs.chartboost.com/en/mediation/integrate/unity/get-started/",
8
+ "changelogUrl": "https://docs.chartboost.com/en/mediation/integrate/unity/changelog/",
9
+ "licensesUrl": "https://docs.chartboost.com/en/legal/",
10
+ "dependencies": {
11
+ "com.chartboost.mediation" : "5.0.0",
12
+ "com.chartboost.unity.threading": "1.0.1",
13
+ "com.chartboost.unity.utilities": "1.0.1",
14
+ "com.chartboost.unity.logging": "1.0.0"
15
+ },
16
+ "keywords": ["Chartboost", "Mediation", "Adapter", "Unity", "Unity Ads"],
17
+ "author": {
18
+ "name": "Chartboost",
19
+ "email": "sales@chartboost.com",
20
+ "url": "https://www.chartboost.com/products/mediation/"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-unity-ads.git"
25
+ },
26
+ "bugs": {
27
+ "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-unity-ads/issues",
28
+ "email": "helium-service@chartboost.com"
29
+ },
30
+ "hideInEditor": false
31
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 6a2798fa425dc44e9937e68c968f6fa2
3
+ PackageManifestImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/rsync.sh ADDED
@@ -0,0 +1,17 @@
1
+ #!/bin/bash
2
+
3
+ # Check if PUBLIC_REPOSITORY_PATH is not set or is empty
4
+ if [ -z "${PUBLIC_REPOSITORY_PATH}" ]; then
5
+ echo "The \$PUBLIC_REPOSITORY_PATH variable is unset or empty. Assigning default value 'Public'."
6
+ PUBLIC_REPOSITORY_PATH=Public
7
+ fi
8
+
9
+ # Ensure the directory exists
10
+ mkdir -p "${PUBLIC_REPOSITORY_PATH}"
11
+
12
+ # com.chartboost.core
13
+ rsync -av --progress --verbose --delete \
14
+ --exclude='.git' \
15
+ --exclude='rsync*' \
16
+ com.chartboost.mediation.adapters/com.chartboost.mediation.unity.adapter.unity-ads/ "${PUBLIC_REPOSITORY_PATH}/"
17
+
package/rsync.sh.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: f692118f1a4494f82ba4b4523921e1e4
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: