com.chartboost.mediation.unity.adapter.mintegral 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 +20 -0
  2. package/CHANGELOG.md.meta +7 -0
  3. package/Chartboost.CSharp.Mediation.Unity.Adapter.Mintegral.nuspec +23 -0
  4. package/Chartboost.CSharp.Mediation.Unity.Adapter.Mintegral.nuspec.meta +7 -0
  5. package/Editor/MintegralAdapterDependencies.xml +19 -0
  6. package/Editor/MintegralAdapterDependencies.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 +72 -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.Mintegral.Android.asmdef +26 -0
  15. package/Runtime/Android/Chartboost.Mediation.Mintegral.Android.asmdef.meta +7 -0
  16. package/Runtime/Android/MintegralAdapter.cs +76 -0
  17. package/Runtime/Android/MintegralAdapter.cs.meta +11 -0
  18. package/Runtime/Android.meta +8 -0
  19. package/Runtime/Mintegral/AssemblyInfo.cs +16 -0
  20. package/Runtime/Mintegral/AssemblyInfo.cs.meta +3 -0
  21. package/Runtime/Mintegral/Chartboost.Mediation.Mintegral.asmdef +21 -0
  22. package/Runtime/Mintegral/Chartboost.Mediation.Mintegral.asmdef.meta +7 -0
  23. package/Runtime/Mintegral/Common/IMintegralAdapter.cs +15 -0
  24. package/Runtime/Mintegral/Common/IMintegralAdapter.cs.meta +11 -0
  25. package/Runtime/Mintegral/Common.meta +8 -0
  26. package/Runtime/Mintegral/Default/MintegralDefault.cs +22 -0
  27. package/Runtime/Mintegral/Default/MintegralDefault.cs.meta +11 -0
  28. package/Runtime/Mintegral/Default.meta +8 -0
  29. package/Runtime/Mintegral/MintegralAdapter.cs +36 -0
  30. package/Runtime/Mintegral/MintegralAdapter.cs.meta +11 -0
  31. package/Runtime/Mintegral.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.Mintegral.IOS.asmdef +25 -0
  35. package/Runtime/iOS/Chartboost.Mediation.Mintegral.IOS.asmdef.meta +7 -0
  36. package/Runtime/iOS/MintegralAdapter.cs +44 -0
  37. package/Runtime/iOS/MintegralAdapter.cs.meta +11 -0
  38. package/Runtime/iOS/Plugins/iOS/CBMMintegralUnityBridge.mm +30 -0
  39. package/Runtime/iOS/Plugins/iOS/CBMMintegralUnityBridge.mm.meta +37 -0
  40. package/Runtime/iOS/Plugins/iOS.meta +8 -0
  41. package/Runtime/iOS/Plugins.meta +8 -0
  42. package/Runtime/iOS.meta +8 -0
  43. package/Runtime.meta +8 -0
  44. package/Tests/Editor/Chartboost.Mediation.Mintegral.Tests.Editor.asmdef +26 -0
  45. package/Tests/Editor/Chartboost.Mediation.Mintegral.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.Mintegral.Tests.Runtime.asmdef +29 -0
  50. package/Tests/Runtime/Chartboost.Mediation.Mintegral.Tests.Runtime.asmdef.meta +7 -0
  51. package/Tests/Runtime/MintegralAdapterTests.cs +34 -0
  52. package/Tests/Runtime/MintegralAdapterTests.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,20 @@
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 - Mintegral Adapter.
7
+
8
+ #Added
9
+ - Support for the following `Mintegral` dependencies. Notice adapter dependencies are optimistic and any patches and hot-fixes will be automatically picked up.:
10
+ * Android: `com.chartboost:chartboost-mediation-adapter-mintegral:5.16.7+`
11
+ * iOS: `ChartboostMediationAdapterMintegral ~> 5.7.6.0`
12
+
13
+ - `MintegralAdapter.cs` with Configuration Properties for `Mintegral`.
14
+ - The following properties have been added in `MintegralAdapter.cs`
15
+ * `string AdapterUnityVersion`
16
+ * `string AdapterNativeVersion`
17
+ * `string PartnerSDKVersion`
18
+ * `string PartnerIdentifier`
19
+ * `string PartnerDisplayName`
20
+ * `bool MuteAudio`
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 08d42a7baa4ab49ba9f056c34cacd49d
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.Mintegral</id>
5
+ <version>5.0.0</version>
6
+ <title>Chartboost Mediation Adapter - Mintegral</title>
7
+ <description>The Chartboost Mediation Unity SDK Adapter for Mintegral.</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, Mintegral, cs</tags>
15
+ <repository type="git" url="https://github.com/ChartBoost/chartboost-mediation-unity-adapter-mintegral.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: 7dcbdcd9de3ef405ea6338ff674b5c6a
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <dependencies>
3
+ <androidPackages>
4
+ <!-- Android Adapter -->
5
+ <androidPackage spec="com.chartboost:chartboost-mediation-adapter-mintegral:5.16.7.+"/>
6
+
7
+ <!-- Mintegral Android Repositories -->
8
+ <repositories>
9
+ <repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea</repository>
10
+ </repositories>
11
+ </androidPackages>
12
+ <iosPods>
13
+ <!-- iOS Adapter -->
14
+ <iosPod name="ChartboostMediationAdapterMintegral" version="~> 5.7.6.0"/>
15
+
16
+ <!-- Partner iOS SDK-->
17
+ <iosPod name="MintegralAdSDK" version="~> 7.6.0" addToAllTargets="false"/>
18
+ </iosPods>
19
+ </dependencies>
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 9f6f6feee275b469691d8cea964f01d4
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Editor.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 74d38943f2f9b4c9ca58d35282a34960
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: 652019333e504452fa3b95d79ed46f34
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # Chartboost Mediation Unity SDK - Mintegral 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.mintegral/Editor/MintegralAdapterDependencies.xml`.
6
+
7
+ # Installation
8
+
9
+ ## Using the public [npm registry](https://www.npmjs.com/search?q=com.chartboost.mediation.unity.adapter.mintegral)
10
+
11
+ In order to add the Chartboost Mediation Unity SDK - Mintegral 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.mintegral": "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.Mintegral)
29
+
30
+ To add the Chartboost Mediation Unity SDK - Mintegral 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.Mintegral` 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.Mintegral` package. Choose the appropriate version and install.
43
+
44
+ # Usage
45
+ The following code block exemplifies usage of the `MintegralAdapter.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: {MintegralAdapter.AdapterUnityVersion}");
53
+
54
+ // AdapterNativeVersion - The partner adapter version, e.g: 5.16.7.71.0
55
+ Debug.Log($"Adapter Native Version: {MintegralAdapter.AdapterNativeVersion}");
56
+
57
+ // PartnerSDKVersion - The partner SDK version, e.g: 16.7.71
58
+ Debug.Log($"Partner SDK Version: {MintegralAdapter.PartnerSDKVersion}");
59
+
60
+ // PartnerIdentifier - The partner ID for internal uses, e.g: mintegral
61
+ Debug.Log($"Partner Identifier: {MintegralAdapter.PartnerIdentifier}");
62
+
63
+ // PartnerDisplayName - The partner name for external uses, e.g: Mintegral
64
+ Debug.Log($"Partner Display Name: {MintegralAdapter.PartnerDisplayName}");
65
+ ```
66
+
67
+ ## Mute Audio
68
+ To mute the audio from videos for the Mintegral adapter, the following property has been made available:
69
+
70
+ ```csharp
71
+ MintegralAdapter.MuteAudio = true;
72
+ ```
package/README.md.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 4a0aa639a12044368afae8475570e458
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: cd0298c96e2124c84abafa4d944a9719
3
+ timeCreated: 1684175795
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Chartboost.Mediation.Mintegral.Android",
3
+ "rootNamespace": "Chartboost.Mediation.Mintegral.Android",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Mediation.Mintegral",
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: c7a271917d57a4f3d827105c1201e090
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,76 @@
1
+ using Chartboost.Constants;
2
+ using Chartboost.Mediation.Mintegral.Common;
3
+ using UnityEngine;
4
+
5
+ namespace Chartboost.Mediation.Mintegral.Android
6
+ {
7
+ internal sealed class MintegralAdapter : IMintegralAdapter
8
+ {
9
+ private const string MintegralAdapterConfiguration = "com.chartboost.mediation.mintegraladapter.MintegralAdapterConfiguration";
10
+ private const string FunctionGetMute = "getMute";
11
+ private const string FunctionSetMute = "setMute";
12
+
13
+ [RuntimeInitializeOnLoadMethod]
14
+ private static void RegisterInstance()
15
+ {
16
+ if (Application.isEditor)
17
+ return;
18
+ Mintegral.MintegralAdapter.Instance = new MintegralAdapter();
19
+ }
20
+
21
+ /// <inheritdoc/>
22
+ public string AdapterNativeVersion
23
+ {
24
+ get
25
+ {
26
+ using var adapterConfiguration = new AndroidJavaObject(MintegralAdapterConfiguration);
27
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetAdapterVersion);
28
+ }
29
+ }
30
+
31
+ /// <inheritdoc/>
32
+ public string PartnerSDKVersion
33
+ {
34
+ get
35
+ {
36
+ using var adapterConfiguration = new AndroidJavaObject(MintegralAdapterConfiguration);
37
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerSdkVersion);
38
+ }
39
+ }
40
+
41
+ /// <inheritdoc/>
42
+ public string PartnerIdentifier
43
+ {
44
+ get
45
+ {
46
+ using var adapterConfiguration = new AndroidJavaObject(MintegralAdapterConfiguration);
47
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerId);
48
+ }
49
+ }
50
+
51
+ /// <inheritdoc/>
52
+ public string PartnerDisplayName
53
+ {
54
+ get
55
+ {
56
+ using var adapterConfiguration = new AndroidJavaObject(MintegralAdapterConfiguration);
57
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerDisplayName);
58
+ }
59
+ }
60
+
61
+ /// <inheritdoc/>
62
+ public bool MuteAudio
63
+ {
64
+ get
65
+ {
66
+ using var adapterConfiguration = new AndroidJavaObject(MintegralAdapterConfiguration);
67
+ return adapterConfiguration.Call<bool>(FunctionGetMute);
68
+ }
69
+ set
70
+ {
71
+ using var adapterConfiguration = new AndroidJavaObject(MintegralAdapterConfiguration);
72
+ adapterConfiguration.Call(FunctionSetMute, value);
73
+ }
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: c6dace20fdb02449c909777a2faa8c79
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: b95a1254e08cb4b2c85d6a8b56ddd4c2
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.Mintegral;
3
+ using UnityEngine.Scripting;
4
+
5
+ [assembly: AlwaysLinkAssembly]
6
+ [assembly: InternalsVisibleTo(AssemblyInfo.MintegralAssemblyInfoAndroid)]
7
+ [assembly: InternalsVisibleTo(AssemblyInfo.MintegralAssemblyInfoIOS)]
8
+
9
+ namespace Chartboost.Mediation.Mintegral
10
+ {
11
+ internal class AssemblyInfo
12
+ {
13
+ public const string MintegralAssemblyInfoAndroid = "Chartboost.Mediation.Mintegral.Android";
14
+ public const string MintegralAssemblyInfoIOS = "Chartboost.Mediation.Mintegral.IOS";
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 1c18ec9a5d4ac420eaa3cc77f8522238
3
+ timeCreated: 1684175795
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "Chartboost.Mediation.Mintegral",
3
+ "rootNamespace": "Chartboost.Mediation.Mintegral",
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: e1c2c513abd4c47b0a286ba02c0d3af5
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,15 @@
1
+ using Chartboost.Mediation.Adapters;
2
+
3
+ namespace Chartboost.Mediation.Mintegral.Common
4
+ {
5
+ /// <summary>
6
+ /// The Chartboost Mediation Mintegral adapter.
7
+ /// </summary>
8
+ internal interface IMintegralAdapter : IPartnerAdapterConfiguration
9
+ {
10
+ /// <summary>
11
+ /// Enable/disable Mintegral's mute setting.
12
+ /// </summary>
13
+ public bool MuteAudio { get; set; }
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 0288a1db4b52b4dd0bf2b5f898fc9f40
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: a0ef5f68e510440ef88988f6eddbc1d8
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,22 @@
1
+ using Chartboost.Mediation.Mintegral.Common;
2
+
3
+ namespace Chartboost.Mediation.Mintegral.Default
4
+ {
5
+ internal class MintegralDefault : IMintegralAdapter
6
+ {
7
+ /// <inheritdoc/>
8
+ public string AdapterNativeVersion => MintegralAdapter.AdapterUnityVersion;
9
+
10
+ /// <inheritdoc/>
11
+ public string PartnerSDKVersion => MintegralAdapter.AdapterUnityVersion;
12
+
13
+ /// <inheritdoc/>
14
+ public string PartnerIdentifier => "mintegral";
15
+
16
+ /// <inheritdoc/>
17
+ public string PartnerDisplayName => "Mintegral";
18
+
19
+ /// <inheritdoc/>
20
+ public bool MuteAudio { get; set; }
21
+ }
22
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 74c1660a04ba34dcc8951ca21c55cf61
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: 351bb9ac6b9874c6c9e58a1aa361eef3
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,36 @@
1
+ using Chartboost.Mediation.Adapters;
2
+ using Chartboost.Mediation.Mintegral.Common;
3
+ using Chartboost.Mediation.Mintegral.Default;
4
+
5
+ namespace Chartboost.Mediation.Mintegral
6
+ {
7
+ /// <inheritdoc cref="IMintegralAdapter"/>
8
+ public static class MintegralAdapter
9
+ {
10
+ internal static IMintegralAdapter Instance = new MintegralDefault();
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="IMintegralAdapter.MuteAudio"/>
30
+ public static bool MuteAudio
31
+ {
32
+ get => Instance.MuteAudio;
33
+ set => Instance.MuteAudio = value;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: df555cfffb92749558ab1549632716f6
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: af6603dafd5664f8bb77f73a56afc601
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: 46517b721cf544b1696b0fd81b7fb98e
3
+ timeCreated: 1684175795
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "Chartboost.Mediation.Mintegral.IOS",
3
+ "rootNamespace": "Chartboost.Mediation.Mintegral.IOS",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Mediation.Mintegral",
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: 840c42775460a4d9f9d7f314f662268c
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,44 @@
1
+ using System.Runtime.InteropServices;
2
+ using Chartboost.Constants;
3
+ using Chartboost.Mediation.Mintegral.Common;
4
+ using UnityEngine;
5
+
6
+ namespace Chartboost.Mediation.Mintegral.IOS
7
+ {
8
+ internal sealed class MintegralAdapter : IMintegralAdapter
9
+ {
10
+ [RuntimeInitializeOnLoadMethod]
11
+ private static void RegisterInstance()
12
+ {
13
+ if (Application.isEditor)
14
+ return;
15
+ Mintegral.MintegralAdapter.Instance = new MintegralAdapter();
16
+ }
17
+
18
+ /// <inheritdoc/>
19
+ public string AdapterNativeVersion => _CBMMintegralAdapterAdapterVersion();
20
+
21
+ /// <inheritdoc/>
22
+ public string PartnerSDKVersion => _CBMMintegralAdapterPartnerSDKVersion();
23
+
24
+ /// <inheritdoc/>
25
+ public string PartnerIdentifier => _CBMMintegralAdapterPartnerId();
26
+
27
+ /// <inheritdoc/>
28
+ public string PartnerDisplayName => _CBMMintegralAdapterPartnerDisplayName();
29
+
30
+ /// <inheritdoc/>
31
+ public bool MuteAudio
32
+ {
33
+ get => _CBMMintegralAdapterGetMuteAudio();
34
+ set => _CBMMintegralAdapterSetMuteAudio(value);
35
+ }
36
+
37
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMintegralAdapterAdapterVersion();
38
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMintegralAdapterPartnerSDKVersion();
39
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMintegralAdapterPartnerId();
40
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMintegralAdapterPartnerDisplayName();
41
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMMintegralAdapterGetMuteAudio();
42
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMMintegralAdapterSetMuteAudio(bool muteAudio);
43
+ }
44
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: e6289dc022e164b16af04f417fb1ee3a
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,30 @@
1
+ #import "CBMDelegates.h"
2
+ #import "ChartboostUnityUtilities.h"
3
+ #import <ChartboostMediationAdapterMintegral/ChartboostMediationAdapterMintegral-Swift.h>
4
+
5
+ extern "C" {
6
+
7
+ const char * _CBMMintegralAdapterAdapterVersion(){
8
+ return toCStringOrNull([MintegralAdapterConfiguration adapterVersion]);
9
+ }
10
+
11
+ const char * _CBMMintegralAdapterPartnerSDKVersion(){
12
+ return toCStringOrNull([MintegralAdapterConfiguration partnerSDKVersion]);
13
+ }
14
+
15
+ const char * _CBMMintegralAdapterPartnerId(){
16
+ return toCStringOrNull([MintegralAdapterConfiguration partnerID]);
17
+ }
18
+
19
+ const char * _CBMMintegralAdapterPartnerDisplayName(){
20
+ return toCStringOrNull([MintegralAdapterConfiguration partnerDisplayName]);
21
+ }
22
+
23
+ BOOL _CBMMintegralAdapterGetMuteAudio(){
24
+ return [MintegralAdapterConfiguration isMuted];
25
+ }
26
+
27
+ void _CBMMintegralAdapterSetMuteAudio(BOOL muteAudio){
28
+ [MintegralAdapterConfiguration setIsMuted:muteAudio];
29
+ }
30
+ }
@@ -0,0 +1,37 @@
1
+ fileFormatVersion: 2
2
+ guid: 82cf9ccedc6694677ae1a707b91baed8
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: 601100062e0b34c11b435f7f30fd3152
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 3511fba82605f4e5081c5ac345d4d25b
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 7a3dcbacd5c284281a9bbef5500a5d74
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: a921fe3da67bd480097ee8ad2177fbc1
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Chartboost.Mediation.Mintegral.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.Mintegral"
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: 1768b3aa10dab4c9eabc98c4025ea161
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.Mintegral;
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.mintegral";
11
+ private const string NuGetPackageName = "Chartboost.CSharp.Mediation.Unity.Adapter.Mintegral";
12
+
13
+ [SetUp]
14
+ public void SetUp()
15
+ => LogController.LoggingLevel = LogLevel.Debug;
16
+
17
+ [Test]
18
+ public void ValidateVersion()
19
+ => VersionCheck.ValidateVersions(UnityPackageManagerPackageName, NuGetPackageName, MintegralAdapter.AdapterUnityVersion);
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 9305fe3779f05413ba077e75c823a76f
3
+ timeCreated: 1710897732
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 73934cc4798b548518a6e06e25141828
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "Chartboost.Mediation.Mintegral.Tests.Runtime",
3
+ "rootNamespace": "Chartboost.Tests",
4
+ "references": [
5
+ "UnityEngine.TestRunner",
6
+ "UnityEditor.TestRunner",
7
+ "Chartboost.Utilities",
8
+ "Chartboost.Mediation.Mintegral",
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: 1e2c9840d56134f4084eb1d4a4f704c1
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,34 @@
1
+ using Chartboost.Logging;
2
+ using Chartboost.Mediation.Mintegral;
3
+ using Chartboost.Tests.Runtime;
4
+ using NUnit.Framework;
5
+
6
+ namespace Chartboost.Tests
7
+ {
8
+ internal class MintegralAdapterTests
9
+ {
10
+ [SetUp]
11
+ public void SetUp()
12
+ => LogController.LoggingLevel = LogLevel.Debug;
13
+
14
+ [Test]
15
+ public void AdapterNativeVersion()
16
+ => TestUtilities.TestStringGetter(() => MintegralAdapter.AdapterNativeVersion);
17
+
18
+ [Test]
19
+ public void PartnerSDKVersion()
20
+ => TestUtilities.TestStringGetter(() => MintegralAdapter.PartnerSDKVersion);
21
+
22
+ [Test]
23
+ public void PartnerIdentifier()
24
+ => TestUtilities.TestStringGetter(() => MintegralAdapter.PartnerIdentifier);
25
+
26
+ [Test]
27
+ public void PartnerDisplayName()
28
+ => TestUtilities.TestStringGetter(() => MintegralAdapter.PartnerDisplayName);
29
+
30
+ [Test]
31
+ public void MuteAudio() =>
32
+ TestUtilities.TestBooleanAccessor(() => MintegralAdapter.MuteAudio, value => MintegralAdapter.MuteAudio = value);
33
+ }
34
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 15defe0cf08194bc48fd29abbd14e843
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: f1d90321aa1f044d2bb507ad4b72a8f8
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: 0b6b3e3bec4ac449fab1e82042a892d7
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.mintegral",
3
+ "version": "5.0.0",
4
+ "displayName": "Chartboost Mediation Adapter - Mintegral",
5
+ "description": "The Chartboost Mediation Unity SDK Adapter for Mintegral.",
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", "Mintegral"],
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-mintegral.git"
25
+ },
26
+ "bugs": {
27
+ "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-mintegral/issues",
28
+ "email": "helium-service@chartboost.com"
29
+ },
30
+ "hideInEditor": false
31
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 02924079b25a54efa941f989ace9225e
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.mintegral/ "${PUBLIC_REPOSITORY_PATH}/"
17
+
package/rsync.sh.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 6b94d9872118243e5bfaa9fbf3dd3e28
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: