com.chartboost.mediation.unity.adapter.mobilefuse 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.MobileFuse.nuspec +23 -0
  4. package/Chartboost.CSharp.Mediation.Unity.Adapter.MobileFuse.nuspec.meta +7 -0
  5. package/Editor/MobileFuseAdapterDependencies.xml +14 -0
  6. package/Editor/MobileFuseAdapterDependencies.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.MobileFuse.Android.asmdef +26 -0
  15. package/Runtime/Android/Chartboost.Mediation.MobileFuse.Android.asmdef.meta +7 -0
  16. package/Runtime/Android/MobileFuseAdapter.cs +74 -0
  17. package/Runtime/Android/MobileFuseAdapter.cs.meta +11 -0
  18. package/Runtime/Android.meta +8 -0
  19. package/Runtime/MobileFuse/AssemblyInfo.cs +16 -0
  20. package/Runtime/MobileFuse/AssemblyInfo.cs.meta +3 -0
  21. package/Runtime/MobileFuse/Chartboost.Mediation.MobileFuse.asmdef +21 -0
  22. package/Runtime/MobileFuse/Chartboost.Mediation.MobileFuse.asmdef.meta +7 -0
  23. package/Runtime/MobileFuse/Common/IMobileFuseAdapter.cs +15 -0
  24. package/Runtime/MobileFuse/Common/IMobileFuseAdapter.cs.meta +11 -0
  25. package/Runtime/MobileFuse/Common.meta +8 -0
  26. package/Runtime/MobileFuse/Default/MobileFuseDefault.cs +22 -0
  27. package/Runtime/MobileFuse/Default/MobileFuseDefault.cs.meta +11 -0
  28. package/Runtime/MobileFuse/Default.meta +8 -0
  29. package/Runtime/MobileFuse/MobileFuseAdapter.cs +36 -0
  30. package/Runtime/MobileFuse/MobileFuseAdapter.cs.meta +11 -0
  31. package/Runtime/MobileFuse.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.MobileFuse.IOS.asmdef +25 -0
  35. package/Runtime/iOS/Chartboost.Mediation.MobileFuse.IOS.asmdef.meta +7 -0
  36. package/Runtime/iOS/MobileFuseAdapter.cs +44 -0
  37. package/Runtime/iOS/MobileFuseAdapter.cs.meta +11 -0
  38. package/Runtime/iOS/Plugins/iOS/CBMMobileFuseUnityBridge.mm +30 -0
  39. package/Runtime/iOS/Plugins/iOS/CBMMobileFuseUnityBridge.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.MobileFuse.Tests.Editor.asmdef +26 -0
  45. package/Tests/Editor/Chartboost.Mediation.MobileFuse.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.MobileFuse.Tests.Runtime.asmdef +29 -0
  50. package/Tests/Runtime/Chartboost.Mediation.MobileFuse.Tests.Runtime.asmdef.meta +7 -0
  51. package/Tests/Runtime/MobileFuseAdapterTests.cs +34 -0
  52. package/Tests/Runtime/MobileFuseAdapterTests.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 - MobileFuse Adapter.
7
+
8
+ #Added
9
+ - Support for the following `MobileFuse` dependencies. Notice adapter dependencies are optimistic and any patches and hot-fixes will be automatically picked up.:
10
+ * Android: `com.chartboost:chartboost-mediation-adapter-mobilefuse:5.1.7.+`
11
+ * iOS: `ChartboostMediationAdapterMobileFuse ~> 5.1.7.0`
12
+
13
+ - `MobileFuseAdapter.cs` with Configuration Properties for `MobileFuse`.
14
+ - The following properties have been added in `MobileFuseAdapter.cs`
15
+ * `string AdapterUnityVersion`
16
+ * `string AdapterNativeVersion`
17
+ * `string PartnerSDKVersion`
18
+ * `string PartnerIdentifier`
19
+ * `string PartnerDisplayName`
20
+ * `bool TestMode`
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 563531f2764c74a28aa5d193202ad3ed
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.MobileFuse</id>
5
+ <version>5.0.0</version>
6
+ <title>Chartboost Mediation Adapter - MobileFuse</title>
7
+ <description>The Chartboost Mediation Unity SDK Adapter for MobileFuse.</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, MobileFuse, cs</tags>
15
+ <repository type="git" url="https://github.com/ChartBoost/chartboost-mediation-unity-adapter-mobilefuse.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: e8335a04ae6f641938e6b1f771650aae
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-mobilefuse:5.1.7.+"/>
6
+ </androidPackages>
7
+ <iosPods>
8
+ <!-- iOS Adapter -->
9
+ <iosPod name="ChartboostMediationAdapterMobileFuse" version="~> 5.1.7.0"/>
10
+
11
+ <!-- Partner iOS SDK-->
12
+ <iosPod name="MobileFuseSDK" version="~> 1.7.0" addToAllTargets="true"/>
13
+ </iosPods>
14
+ </dependencies>
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 7039f3ad2a66d4228a983904f564a36e
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Editor.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 4261639c9cda544fca39c28ce8c3ea7a
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: 4216430cb67f24311acf7912c248efcb
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # Chartboost Mediation Unity SDK - MobileFuse 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.mobilefuse/Editor/MobileFuseAdapterDependencies.xml`.
6
+
7
+ # Installation
8
+
9
+ ## Using the public [npm registry](https://www.npmjs.com/search?q=com.chartboost.mediation.unity.adapter.mobilefuse)
10
+
11
+ In order to add the Chartboost Mediation Unity SDK - MobileFuse 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.mobilefuse": "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.MobileFuse)
29
+
30
+ To add the Chartboost Mediation Unity SDK - MobileFuse 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.MobileFuse` 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.MobileFuse` package. Choose the appropriate version and install.
43
+
44
+ # Usage
45
+ The following code block exemplifies usage of the `MobileFuseAdapter.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: {MobileFuseAdapter.AdapterUnityVersion}");
53
+
54
+ // AdapterNativeVersion - The partner adapter version, e.g: 5.1.7.5.0
55
+ Debug.Log($"Adapter Native Version: {MobileFuseAdapter.AdapterNativeVersion}");
56
+
57
+ // PartnerSDKVersion - The partner SDK version, e.g: 1.7.5
58
+ Debug.Log($"Partner SDK Version: {MobileFuseAdapter.PartnerSDKVersion}");
59
+
60
+ // PartnerIdentifier - The partner ID for internal uses, e.g: mobilefuse
61
+ Debug.Log($"Partner Identifier: {MobileFuseAdapter.PartnerIdentifier}");
62
+
63
+ // PartnerDisplayName - The partner name for external uses, e.g: MobileFuse
64
+ Debug.Log($"Partner Display Name: {MobileFuseAdapter.PartnerDisplayName}");
65
+ ```
66
+
67
+ ## Test Mode
68
+ To enable test mode for the MobileFuse adapter, the following property has been made available:
69
+
70
+ ```csharp
71
+ MobileFuseAdapter.TestMode = true;
72
+ ```
package/README.md.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 522ca5fd3b6034872ae729f28e364877
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: 3bcaeaa68e9f34c2d81cfa2ebe67a7e5
3
+ timeCreated: 1684175795
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Chartboost.Mediation.MobileFuse.Android",
3
+ "rootNamespace": "Chartboost.Mediation.MobileFuse.Android",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Mediation.MobileFuse",
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: 9d379d1d6157545f29d2559b7772ba17
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,74 @@
1
+ using Chartboost.Constants;
2
+ using Chartboost.Mediation.MobileFuse.Common;
3
+ using UnityEngine;
4
+
5
+ namespace Chartboost.Mediation.MobileFuse.Android
6
+ {
7
+ internal sealed class MobileFuseAdapter : IMobileFuseAdapter
8
+ {
9
+ private const string MobileFuseAdapterConfiguration = "com.chartboost.mediation.mobilefuseadapter.MobileFuseAdapterConfiguration";
10
+
11
+ [RuntimeInitializeOnLoadMethod]
12
+ private static void RegisterInstance()
13
+ {
14
+ if (Application.isEditor)
15
+ return;
16
+ MobileFuse.MobileFuseAdapter.Instance = new MobileFuseAdapter();
17
+ }
18
+
19
+ /// <inheritdoc/>
20
+ public string AdapterNativeVersion
21
+ {
22
+ get
23
+ {
24
+ using var adapterConfiguration = new AndroidJavaObject(MobileFuseAdapterConfiguration);
25
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetAdapterVersion);
26
+ }
27
+ }
28
+
29
+ /// <inheritdoc/>
30
+ public string PartnerSDKVersion
31
+ {
32
+ get
33
+ {
34
+ using var adapterConfiguration = new AndroidJavaObject(MobileFuseAdapterConfiguration);
35
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerSdkVersion);
36
+ }
37
+ }
38
+
39
+ /// <inheritdoc/>
40
+ public string PartnerIdentifier
41
+ {
42
+ get
43
+ {
44
+ using var adapterConfiguration = new AndroidJavaObject(MobileFuseAdapterConfiguration);
45
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerId);
46
+ }
47
+ }
48
+
49
+ /// <inheritdoc/>
50
+ public string PartnerDisplayName
51
+ {
52
+ get
53
+ {
54
+ using var adapterConfiguration = new AndroidJavaObject(MobileFuseAdapterConfiguration);
55
+ return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerDisplayName);
56
+ }
57
+ }
58
+
59
+ /// <inheritdoc/>
60
+ public bool TestMode
61
+ {
62
+ get
63
+ {
64
+ using var adapterConfiguration = new AndroidJavaObject(MobileFuseAdapterConfiguration);
65
+ return adapterConfiguration.Call<bool>(SharedAndroidConstants.FunctionGetTestMode);
66
+ }
67
+ set
68
+ {
69
+ using var adapterConfiguration = new AndroidJavaObject(MobileFuseAdapterConfiguration);
70
+ adapterConfiguration.Call(SharedAndroidConstants.FunctionSetTestMode, value);
71
+ }
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: d6a6f9b9aea6b4e28afab6b1eb70c8e6
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: 3cd3020f191f9450dad232f6c3be7075
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.MobileFuse;
3
+ using UnityEngine.Scripting;
4
+
5
+ [assembly: AlwaysLinkAssembly]
6
+ [assembly: InternalsVisibleTo(AssemblyInfo.MobileFuseAssemblyInfoAndroid)]
7
+ [assembly: InternalsVisibleTo(AssemblyInfo.MobileFuseAssemblyInfoIOS)]
8
+
9
+ namespace Chartboost.Mediation.MobileFuse
10
+ {
11
+ internal class AssemblyInfo
12
+ {
13
+ public const string MobileFuseAssemblyInfoAndroid = "Chartboost.Mediation.MobileFuse.Android";
14
+ public const string MobileFuseAssemblyInfoIOS = "Chartboost.Mediation.MobileFuse.IOS";
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 557b553a81e43436d894c30102acb502
3
+ timeCreated: 1684175795
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "Chartboost.Mediation.MobileFuse",
3
+ "rootNamespace": "Chartboost.Mediation.MobileFuse",
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: 6110b2b1e974b44f09c545d9b24956b4
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,15 @@
1
+ using Chartboost.Mediation.Adapters;
2
+
3
+ namespace Chartboost.Mediation.MobileFuse.Common
4
+ {
5
+ /// <summary>
6
+ /// The Chartboost Mediation MobileFuse adapter.
7
+ /// </summary>
8
+ internal interface IMobileFuseAdapter : IPartnerAdapterConfiguration
9
+ {
10
+ /// <summary>
11
+ /// Enable/disable MobileFuse's test mode. Remember to set this to false in production.
12
+ /// </summary>
13
+ public bool TestMode { get; set; }
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b7ac897cedfa24347b42d7cd1aa6fea8
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: ce0373fa97fed4b82b4f4300cc42772a
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,22 @@
1
+ using Chartboost.Mediation.MobileFuse.Common;
2
+
3
+ namespace Chartboost.Mediation.MobileFuse.Default
4
+ {
5
+ internal class MobileFuseDefault : IMobileFuseAdapter
6
+ {
7
+ /// <inheritdoc/>
8
+ public string AdapterNativeVersion => MobileFuseAdapter.AdapterUnityVersion;
9
+
10
+ /// <inheritdoc/>
11
+ public string PartnerSDKVersion => MobileFuseAdapter.AdapterUnityVersion;
12
+
13
+ /// <inheritdoc/>
14
+ public string PartnerIdentifier => "mobilefuse";
15
+
16
+ /// <inheritdoc/>
17
+ public string PartnerDisplayName => "MobileFuse";
18
+
19
+ /// <inheritdoc/>
20
+ public bool TestMode { get; set; }
21
+ }
22
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 532360222b0ee4538b2615d90ec6fb5c
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: 6f117bb04f11840a9a7b6e73027ceb9b
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.MobileFuse.Common;
3
+ using Chartboost.Mediation.MobileFuse.Default;
4
+
5
+ namespace Chartboost.Mediation.MobileFuse
6
+ {
7
+ /// <inheritdoc cref="IMobileFuseAdapter"/>
8
+ public static class MobileFuseAdapter
9
+ {
10
+ internal static IMobileFuseAdapter Instance = new MobileFuseDefault();
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="IMobileFuseAdapter.TestMode"/>
30
+ public static bool TestMode
31
+ {
32
+ get => Instance.TestMode;
33
+ set => Instance.TestMode = value;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1bd5a507cf3c54ed7969f2e9405a2141
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: e4e9272cf95f14c16afad68f421c38b3
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: ab18569a1e05e4fbb876d493de39863e
3
+ timeCreated: 1684175795
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "Chartboost.Mediation.MobileFuse.IOS",
3
+ "rootNamespace": "Chartboost.Mediation.MobileFuse.IOS",
4
+ "references": [
5
+ "Chartboost.Threading",
6
+ "Chartboost.Logging",
7
+ "Chartboost.Mediation.MobileFuse",
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: ce31f932e959b48f286c070e7710f02b
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.MobileFuse.Common;
4
+ using UnityEngine;
5
+
6
+ namespace Chartboost.Mediation.MobileFuse.IOS
7
+ {
8
+ internal sealed class MobileFuseAdapter : IMobileFuseAdapter
9
+ {
10
+ [RuntimeInitializeOnLoadMethod]
11
+ private static void RegisterInstance()
12
+ {
13
+ if (Application.isEditor)
14
+ return;
15
+ MobileFuse.MobileFuseAdapter.Instance = new MobileFuseAdapter();
16
+ }
17
+
18
+ /// <inheritdoc/>
19
+ public string AdapterNativeVersion => _CBMMobileFuseAdapterAdapterVersion();
20
+
21
+ /// <inheritdoc/>
22
+ public string PartnerSDKVersion => _CBMMobileFuseAdapterPartnerSDKVersion();
23
+
24
+ /// <inheritdoc/>
25
+ public string PartnerIdentifier => _CBMMobileFuseAdapterPartnerId();
26
+
27
+ /// <inheritdoc/>
28
+ public string PartnerDisplayName => _CBMMobileFuseAdapterPartnerDisplayName();
29
+
30
+ /// <inheritdoc/>
31
+ public bool TestMode
32
+ {
33
+ get => _CBMMobileFuseAdapterGetTestMode();
34
+ set => _CBMMobileFuseAdapterSetTestMode(value);
35
+ }
36
+
37
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMobileFuseAdapterAdapterVersion();
38
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMobileFuseAdapterPartnerSDKVersion();
39
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMobileFuseAdapterPartnerId();
40
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMMobileFuseAdapterPartnerDisplayName();
41
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMMobileFuseAdapterGetTestMode();
42
+ [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMMobileFuseAdapterSetTestMode(bool testMode);
43
+ }
44
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 5ea8279075d064702b6531c4bf67cfb7
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 <ChartboostMediationAdapterMobileFuse/ChartboostMediationAdapterMobileFuse-Swift.h>
4
+
5
+ extern "C" {
6
+
7
+ const char * _CBMMobileFuseAdapterAdapterVersion(){
8
+ return toCStringOrNull([MobileFuseAdapterConfiguration adapterVersion]);
9
+ }
10
+
11
+ const char * _CBMMobileFuseAdapterPartnerSDKVersion(){
12
+ return toCStringOrNull([MobileFuseAdapterConfiguration partnerSDKVersion]);
13
+ }
14
+
15
+ const char * _CBMMobileFuseAdapterPartnerId(){
16
+ return toCStringOrNull([MobileFuseAdapterConfiguration partnerID]);
17
+ }
18
+
19
+ const char * _CBMMobileFuseAdapterPartnerDisplayName(){
20
+ return toCStringOrNull([MobileFuseAdapterConfiguration partnerDisplayName]);
21
+ }
22
+
23
+ BOOL _CBMMobileFuseAdapterGetTestMode(){
24
+ return [MobileFuseAdapterConfiguration testMode];
25
+ }
26
+
27
+ void _CBMMobileFuseAdapterSetTestMode(BOOL testMode){
28
+ [MobileFuseAdapterConfiguration setTestMode:testMode];
29
+ }
30
+ }
@@ -0,0 +1,37 @@
1
+ fileFormatVersion: 2
2
+ guid: e6ed0cc1ce53c4b8d8d3a36859c19f9e
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: 35e3a3ac894214353adb6ef888f0f6e5
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 83944285666104f948920a92ecc50f76
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 6387286a53fe74bc6b24c5c19cbb1d9c
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: 0584e3c0c8b7d468baa659fb7abc1b51
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Chartboost.Mediation.MobileFuse.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.MobileFuse"
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: ca8c8f5db4aa8438fb3ba315ce6bc13a
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.MobileFuse;
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.mobilefuse";
11
+ private const string NuGetPackageName = "Chartboost.CSharp.Mediation.Unity.Adapter.MobileFuse";
12
+
13
+ [SetUp]
14
+ public void SetUp()
15
+ => LogController.LoggingLevel = LogLevel.Debug;
16
+
17
+ [Test]
18
+ public void ValidateVersion()
19
+ => VersionCheck.ValidateVersions(UnityPackageManagerPackageName, NuGetPackageName, MobileFuseAdapter.AdapterUnityVersion);
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 5fd0132a846f548ca98796025b01a032
3
+ timeCreated: 1710897732
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 76496041644e24337ae089284a8dee29
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "Chartboost.Mediation.MobileFuse.Tests.Runtime",
3
+ "rootNamespace": "Chartboost.Tests",
4
+ "references": [
5
+ "UnityEngine.TestRunner",
6
+ "UnityEditor.TestRunner",
7
+ "Chartboost.Utilities",
8
+ "Chartboost.Mediation.MobileFuse",
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: 7183b15b693284617bcfefdce82c8e58
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,34 @@
1
+ using Chartboost.Logging;
2
+ using Chartboost.Mediation.MobileFuse;
3
+ using Chartboost.Tests.Runtime;
4
+ using NUnit.Framework;
5
+
6
+ namespace Chartboost.Tests
7
+ {
8
+ internal class MobileFuseAdapterTests
9
+ {
10
+ [SetUp]
11
+ public void SetUp()
12
+ => LogController.LoggingLevel = LogLevel.Debug;
13
+
14
+ [Test]
15
+ public void AdapterNativeVersion()
16
+ => TestUtilities.TestStringGetter(() => MobileFuseAdapter.AdapterNativeVersion);
17
+
18
+ [Test]
19
+ public void PartnerSDKVersion()
20
+ => TestUtilities.TestStringGetter(() => MobileFuseAdapter.PartnerSDKVersion);
21
+
22
+ [Test]
23
+ public void PartnerIdentifier()
24
+ => TestUtilities.TestStringGetter(() => MobileFuseAdapter.PartnerIdentifier);
25
+
26
+ [Test]
27
+ public void PartnerDisplayName()
28
+ => TestUtilities.TestStringGetter(() => MobileFuseAdapter.PartnerDisplayName);
29
+
30
+ [Test]
31
+ public void TestMode() =>
32
+ TestUtilities.TestBooleanAccessor(() => MobileFuseAdapter.TestMode, value => MobileFuseAdapter.TestMode = value);
33
+ }
34
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: a23e820ec9d19453bb4ab50ff304dd1a
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: 0a15f901ea4854ef89ba1aa7f56783cb
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: 44320283e03bb40baba6446df18334e4
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.mobilefuse",
3
+ "version": "5.0.0",
4
+ "displayName": "Chartboost Mediation Adapter - MobileFuse",
5
+ "description": "The Chartboost Mediation Unity SDK Adapter for MobileFuse.",
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", "MobileFuse"],
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-mobilefuse.git"
25
+ },
26
+ "bugs": {
27
+ "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-mobilefuse/issues",
28
+ "email": "helium-service@chartboost.com"
29
+ },
30
+ "hideInEditor": false
31
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 2bb4db8090b5c4684b31424994fb1972
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.mobilefuse/ "${PUBLIC_REPOSITORY_PATH}/"
17
+
package/rsync.sh.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: fa0343c9ffd264ab88fcaf0c31666047
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: