From 22101c27cfb9f12ec8af9cb060430e2c6a7c9794 Mon Sep 17 00:00:00 2001 From: helium-service Date: Thu, 8 Aug 2024 21:19:42 +0000 Subject: [PATCH] Syncing changes from private repository --- CHANGELOG.md | 21 ++++ CHANGELOG.md.meta | 7 ++ ...Sharp.Mediation.Unity.Adapter.Verve.nuspec | 23 ++++ ....Mediation.Unity.Adapter.Verve.nuspec.meta | 7 ++ Editor.meta | 8 ++ Editor/VerveAdapterDependencies.xml | 19 ++++ Editor/VerveAdapterDependencies.xml.meta | 7 ++ LICENSE.md | 9 ++ LICENSE.md.meta | 7 ++ README.md | 100 ++++++++++++++++- README.md.meta | 7 ++ Runtime.meta | 8 ++ Runtime/Android.meta | 8 ++ Runtime/Android/AssemblyInfo.cs | 3 + Runtime/Android/AssemblyInfo.cs.meta | 3 + .../Chartboost.Mediation.Verve.Android.asmdef | 26 +++++ ...tboost.Mediation.Verve.Android.asmdef.meta | 7 ++ Runtime/Android/VerveAdapter.cs | 104 ++++++++++++++++++ Runtime/Android/VerveAdapter.cs.meta | 11 ++ Runtime/Verve.meta | 8 ++ Runtime/Verve/AssemblyInfo.cs | 16 +++ Runtime/Verve/AssemblyInfo.cs.meta | 3 + .../Verve/Chartboost.Mediation.Verve.asmdef | 21 ++++ .../Chartboost.Mediation.Verve.asmdef.meta | 7 ++ Runtime/Verve/Common.meta | 8 ++ Runtime/Verve/Common/IVerveAdapter.cs | 20 ++++ Runtime/Verve/Common/IVerveAdapter.cs.meta | 11 ++ Runtime/Verve/Default.meta | 8 ++ Runtime/Verve/Default/VerveDefault.cs | 25 +++++ Runtime/Verve/Default/VerveDefault.cs.meta | 11 ++ Runtime/Verve/VerveAdapter.cs | 43 ++++++++ Runtime/Verve/VerveAdapter.cs.meta | 11 ++ Runtime/iOS.meta | 8 ++ Runtime/iOS/AssemblyInfo.cs | 3 + Runtime/iOS/AssemblyInfo.cs.meta | 3 + .../iOS/Chartboost.Mediation.Verve.IOS.asmdef | 26 +++++ ...Chartboost.Mediation.Verve.IOS.asmdef.meta | 7 ++ Runtime/iOS/Plugins.meta | 8 ++ Runtime/iOS/Plugins/iOS.meta | 8 ++ .../iOS/Plugins/iOS/CBMVerveUnityBridge.mm | 42 +++++++ .../Plugins/iOS/CBMVerveUnityBridge.mm.meta | 86 +++++++++++++++ Runtime/iOS/VerveAdapter.cs | 53 +++++++++ Runtime/iOS/VerveAdapter.cs.meta | 11 ++ Tests.meta | 8 ++ Tests/Editor.meta | 8 ++ ...tboost.Mediation.Verve.Tests.Editor.asmdef | 26 +++++ ...t.Mediation.Verve.Tests.Editor.asmdef.meta | 7 ++ Tests/Editor/VersionValidator.cs | 21 ++++ Tests/Editor/VersionValidator.cs.meta | 3 + Tests/Runtime.meta | 8 ++ ...boost.Mediation.Verve.Tests.Runtime.asmdef | 29 +++++ ....Mediation.Verve.Tests.Runtime.asmdef.meta | 7 ++ Tests/Runtime/VerveAdapterTests.cs | 38 +++++++ Tests/Runtime/VerveAdapterTests.cs.meta | 11 ++ package.json | 31 ++++++ package.json.meta | 7 ++ 56 files changed, 1035 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md create mode 100644 CHANGELOG.md.meta create mode 100644 Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec create mode 100644 Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec.meta create mode 100644 Editor.meta create mode 100644 Editor/VerveAdapterDependencies.xml create mode 100644 Editor/VerveAdapterDependencies.xml.meta create mode 100644 LICENSE.md create mode 100644 LICENSE.md.meta create mode 100644 README.md.meta create mode 100644 Runtime.meta create mode 100644 Runtime/Android.meta create mode 100644 Runtime/Android/AssemblyInfo.cs create mode 100644 Runtime/Android/AssemblyInfo.cs.meta create mode 100644 Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef create mode 100644 Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef.meta create mode 100644 Runtime/Android/VerveAdapter.cs create mode 100644 Runtime/Android/VerveAdapter.cs.meta create mode 100644 Runtime/Verve.meta create mode 100644 Runtime/Verve/AssemblyInfo.cs create mode 100644 Runtime/Verve/AssemblyInfo.cs.meta create mode 100644 Runtime/Verve/Chartboost.Mediation.Verve.asmdef create mode 100644 Runtime/Verve/Chartboost.Mediation.Verve.asmdef.meta create mode 100644 Runtime/Verve/Common.meta create mode 100644 Runtime/Verve/Common/IVerveAdapter.cs create mode 100644 Runtime/Verve/Common/IVerveAdapter.cs.meta create mode 100644 Runtime/Verve/Default.meta create mode 100644 Runtime/Verve/Default/VerveDefault.cs create mode 100644 Runtime/Verve/Default/VerveDefault.cs.meta create mode 100644 Runtime/Verve/VerveAdapter.cs create mode 100644 Runtime/Verve/VerveAdapter.cs.meta create mode 100644 Runtime/iOS.meta create mode 100644 Runtime/iOS/AssemblyInfo.cs create mode 100644 Runtime/iOS/AssemblyInfo.cs.meta create mode 100644 Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef create mode 100644 Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef.meta create mode 100644 Runtime/iOS/Plugins.meta create mode 100644 Runtime/iOS/Plugins/iOS.meta create mode 100644 Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm create mode 100644 Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm.meta create mode 100644 Runtime/iOS/VerveAdapter.cs create mode 100644 Runtime/iOS/VerveAdapter.cs.meta create mode 100644 Tests.meta create mode 100644 Tests/Editor.meta create mode 100644 Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef create mode 100644 Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef.meta create mode 100644 Tests/Editor/VersionValidator.cs create mode 100644 Tests/Editor/VersionValidator.cs.meta create mode 100644 Tests/Runtime.meta create mode 100644 Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef create mode 100644 Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef.meta create mode 100644 Tests/Runtime/VerveAdapterTests.cs create mode 100644 Tests/Runtime/VerveAdapterTests.cs.meta create mode 100644 package.json create mode 100644 package.json.meta diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..f0abb52 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Changelog +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). + +### Version 5.0.0 *(2024-08-08)* + +First version of the Chartboost Mediation Unity SDK - Verve Adapter. + +#Added +- Support for the following `Verve` dependencies. Notice adapter dependencies are optimistic and any patches and hot-fixes will be automatically picked up.: + * Android: `com.chartboost:chartboost-mediation-adapter-verve:5.3.0.+` + * iOS: `ChartboostMediationAdapterVerve ~> 5.3.0.0` + +- `VerveAdapter.cs` with Configuration Properties for `Verve`. +- The following properties have been added in `VerveAdapter.cs` + * `string AdapterUnityVersion` + * `string AdapterNativeVersion` + * `string PartnerSDKVersion` + * `string PartnerIdentifier` + * `string PartnerDisplayName` + * `bool TestMode` + * `bool VerboseLogging` \ No newline at end of file diff --git a/CHANGELOG.md.meta b/CHANGELOG.md.meta new file mode 100644 index 0000000..bc7c8c7 --- /dev/null +++ b/CHANGELOG.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d9b500bde772443fc8f179023530154e +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec b/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec new file mode 100644 index 0000000..cd396f4 --- /dev/null +++ b/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec @@ -0,0 +1,23 @@ + + + + Chartboost.CSharp.Mediation.Unity.Adapter.Verve + 5.0.0 + Chartboost Mediation Adapter - Verve + The Chartboost Mediation Unity SDK Adapter for Verve. + Chartboost + Chartboost + LICENSE.md + README.md + https://www.chartboost.com/products/mediation/ + Copyright 2024 + Chartboost, Ads, Mediation, Unity, Adapter, Verve, cs + + + + + + + + + diff --git a/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec.meta b/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec.meta new file mode 100644 index 0000000..a396e48 --- /dev/null +++ b/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: dc44cfe84c3ad49e6b87434377a52f7e +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor.meta b/Editor.meta new file mode 100644 index 0000000..80ee3bc --- /dev/null +++ b/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8f981bc9b800845458633d57be49269a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/VerveAdapterDependencies.xml b/Editor/VerveAdapterDependencies.xml new file mode 100644 index 0000000..1e134c6 --- /dev/null +++ b/Editor/VerveAdapterDependencies.xml @@ -0,0 +1,19 @@ + + + + + + + + + https://verve.jfrog.io/artifactory/verve-gradle-release + + + + + + + + + + diff --git a/Editor/VerveAdapterDependencies.xml.meta b/Editor/VerveAdapterDependencies.xml.meta new file mode 100644 index 0000000..01fb5dd --- /dev/null +++ b/Editor/VerveAdapterDependencies.xml.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5a58f24a1b3544d7899bcf080136758b +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..926856a --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +MIT License + +Copyright 2024 Chartboost Inc. + +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: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +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. \ No newline at end of file diff --git a/LICENSE.md.meta b/LICENSE.md.meta new file mode 100644 index 0000000..f4bd4f1 --- /dev/null +++ b/LICENSE.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6b21a6192ce834df8b5db4cd9dc7e1b7 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/README.md b/README.md index bdfc39b..91ff9f9 100644 --- a/README.md +++ b/README.md @@ -1 +1,99 @@ -# chartboost-mediation-unity-adapter-verve \ No newline at end of file +# Chartboost Mediation Unity SDK - Verve Adapter + +Provides a list of externally configurable properties pertaining to the partner SDK that can be retrieved and set by publishers. + +Dependencies for the adapter are now embedded in the package, and can be found at `com.chartboost.mediation.unity.adapter.verve/Editor/VerveAdapterDependencies.xml`. + +# Installation + +## Using the public [npm registry](https://www.npmjs.com/search?q=com.chartboost.mediation.unity.adapter.verve) + +In order to add the Chartboost Mediation Unity SDK - Verve 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. + +```json +"dependencies": { + "com.chartboost.mediation.unity.adapter.verve": "5.0.0", + ... +}, +"scopedRegistries": [ +{ + "name": "NpmJS", + "url": "https://registry.npmjs.org", + "scopes": [ + "com.chartboost" + ] +} +] +``` +## Using the public [NuGet package](https://www.nuget.org/packages/Chartboost.CSharp.Mediation.Unity.Adapter.Verve) + +To add the Chartboost Mediation Unity SDK - Verve 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. + +This can be done by adding the following to your Unity Project's ***manifest.json*** + +```json + "dependencies": { + "com.github-glitchenzo.nugetforunity": "https://github.com/GlitchEnzo/NuGetForUnity.git?path=/src/NuGetForUnity", + ... + }, +``` + +Once NugetForUnity is installed, search for `Chartboost.CSharp.Mediation.Unity.Adapter.Verve` in the search bar of Nuget Explorer window(Nuget -> Manage Nuget Packages). +You should be able to see the `Chartboost.CSharp.Mediation.Unity.Adapter.Verve` package. Choose the appropriate version and install. + +# AndroidManifest.xml Permissions + +The following permissions must be added in the `AndroidManifest.xml` file: + +```xml + + +``` + +For improved targeting and therefore higher eCPMs you can add this other permissions but keep in mind that the user needs to approve them explicitly on Android versions 6 or higher. + +```xml + + + + + + +``` + +# Usage +The following code block exemplifies usage of the `VerveAdapter.cs` configuration class. + +## IPartnerAdapterConfiguration Properties + +```csharp + +// AdapterUnityVersion - The partner adapter Unity version, e.g: 5.0.0 +Debug.Log($"Adapter Unity Version: {VerveAdapter.AdapterUnityVersion}"); + +// AdapterNativeVersion - The partner adapter version, e.g: 5.3.0.2.0 +Debug.Log($"Adapter Native Version: {VerveAdapter.AdapterNativeVersion}"); + +// PartnerSDKVersion - The partner SDK version, e.g: 3.0.2 +Debug.Log($"Partner SDK Version: {VerveAdapter.PartnerSDKVersion}"); + +// PartnerIdentifier - The partner ID for internal uses, e.g: verve +Debug.Log($"Partner Identifier: {VerveAdapter.PartnerIdentifier}"); + +// PartnerDisplayName - The partner name for external uses, e.g: Verve +Debug.Log($"Partner Display Name: {VerveAdapter.PartnerDisplayName}"); +``` + +## Test Mode +To enable test mode for the Verve adapter, the following property has been made available: + +```csharp +VerveAdapter.TestMode = true; +``` + +## Verbose Logging +To enable verbose logging for the Verve adapter, the following property has been made available: + +```csharp +VerveAdapter.VerboseLogging = true; +``` \ No newline at end of file diff --git a/README.md.meta b/README.md.meta new file mode 100644 index 0000000..9292574 --- /dev/null +++ b/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6ecf24bdef49442b2a76794ac00590a2 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime.meta b/Runtime.meta new file mode 100644 index 0000000..2c4eb5d --- /dev/null +++ b/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 52835990fb5ea4435b4f7b4519925d63 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Android.meta b/Runtime/Android.meta new file mode 100644 index 0000000..37fea63 --- /dev/null +++ b/Runtime/Android.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c8032940e9ce6496891f9a344726dca4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Android/AssemblyInfo.cs b/Runtime/Android/AssemblyInfo.cs new file mode 100644 index 0000000..5324eb2 --- /dev/null +++ b/Runtime/Android/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using UnityEngine.Scripting; + +[assembly: AlwaysLinkAssembly] diff --git a/Runtime/Android/AssemblyInfo.cs.meta b/Runtime/Android/AssemblyInfo.cs.meta new file mode 100644 index 0000000..52c0215 --- /dev/null +++ b/Runtime/Android/AssemblyInfo.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: f12d265d7d84e4b42b5cb6164147284e +timeCreated: 1684175795 \ No newline at end of file diff --git a/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef b/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef new file mode 100644 index 0000000..674aaf9 --- /dev/null +++ b/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef @@ -0,0 +1,26 @@ +{ + "name": "Chartboost.Mediation.Verve.Android", + "rootNamespace": "Chartboost.Mediation.Verve.Android", + "references": [ + "Chartboost.Threading", + "Chartboost.Logging", + "Chartboost.Mediation.Verve", + "Chartboost.Mediation", + "Chartboost.Mediation.Android", + "Chartboost.Utilities.Android" + ], + "includePlatforms": [ + "Android", + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [ + "" + ], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef.meta b/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef.meta new file mode 100644 index 0000000..65f3f64 --- /dev/null +++ b/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 55d79387b924a4d1ebaee4d16d1634dd +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Android/VerveAdapter.cs b/Runtime/Android/VerveAdapter.cs new file mode 100644 index 0000000..001470f --- /dev/null +++ b/Runtime/Android/VerveAdapter.cs @@ -0,0 +1,104 @@ +using Chartboost.Constants; +using Chartboost.Mediation.Verve.Common; +using UnityEngine; + +namespace Chartboost.Mediation.Verve.Android +{ + internal sealed class VerveAdapter : IVerveAdapter + { + private const string VerveAdapterConfiguration = "com.chartboost.mediation.verveadapter.VerveAdapterConfiguration"; + private const string FunctionGetTestModeEnabled = "getTestModeEnabled"; + private const string FunctionSetTestModeEnabled = "setTestModeEnabled"; + + private const string VerveLoggerLevel = "net.pubnative.lite.sdk.utils.Logger$Level"; + private const string EnumVerveLogLevelVerbose = "verbose"; + private const string EnumVerveLogLevelNone = "none"; + + [RuntimeInitializeOnLoadMethod] + private static void RegisterInstance() + { + if (Application.isEditor) + return; + Verve.VerveAdapter.Instance = new VerveAdapter(); + } + + /// + public string AdapterNativeVersion + { + get + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + return adapterConfiguration.Call(SharedAndroidConstants.FunctionGetAdapterVersion); + } + } + + /// + public string PartnerSDKVersion + { + get + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + return adapterConfiguration.Call(SharedAndroidConstants.FunctionGetPartnerSdkVersion); + } + } + + /// + public string PartnerIdentifier + { + get + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + return adapterConfiguration.Call(SharedAndroidConstants.FunctionGetPartnerId); + } + } + + /// + public string PartnerDisplayName + { + get + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + return adapterConfiguration.Call(SharedAndroidConstants.FunctionGetPartnerDisplayName); + } + } + + /// + public bool TestMode + { + get + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + return adapterConfiguration.Call(FunctionGetTestModeEnabled); + } + set + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + adapterConfiguration.Call(FunctionSetTestModeEnabled, value); + } + } + + /// + public bool VerboseLogging + { + get + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + using var nativeLogLevel = adapterConfiguration.Call(SharedAndroidConstants.FunctionGetLogLevel); + + var logLevelAsString = nativeLogLevel.Call(SharedAndroidConstants.FunctionToString); + return logLevelAsString switch + { + EnumVerveLogLevelVerbose => true, + _ => false + }; + } + set + { + using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration); + using var loggerLevelClass = new AndroidJavaClass(VerveLoggerLevel); + using var enumValue = loggerLevelClass.GetStatic(value ? EnumVerveLogLevelVerbose : EnumVerveLogLevelNone); + adapterConfiguration.Call(SharedAndroidConstants.FunctionSetLogLevel, enumValue); + } + } + } +} diff --git a/Runtime/Android/VerveAdapter.cs.meta b/Runtime/Android/VerveAdapter.cs.meta new file mode 100644 index 0000000..3296749 --- /dev/null +++ b/Runtime/Android/VerveAdapter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b07c1b44bf3564266bc25e2e4ac67586 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve.meta b/Runtime/Verve.meta new file mode 100644 index 0000000..9f95041 --- /dev/null +++ b/Runtime/Verve.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e9f916f135da8489dac391f70137b00a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve/AssemblyInfo.cs b/Runtime/Verve/AssemblyInfo.cs new file mode 100644 index 0000000..de4e466 --- /dev/null +++ b/Runtime/Verve/AssemblyInfo.cs @@ -0,0 +1,16 @@ +using System.Runtime.CompilerServices; +using Chartboost.Mediation.Verve; +using UnityEngine.Scripting; + +[assembly: AlwaysLinkAssembly] +[assembly: InternalsVisibleTo(AssemblyInfo.VerveAssemblyInfoAndroid)] +[assembly: InternalsVisibleTo(AssemblyInfo.VerveAssemblyInfoIOS)] + +namespace Chartboost.Mediation.Verve +{ + internal class AssemblyInfo + { + public const string VerveAssemblyInfoAndroid = "Chartboost.Mediation.Verve.Android"; + public const string VerveAssemblyInfoIOS = "Chartboost.Mediation.Verve.IOS"; + } +} diff --git a/Runtime/Verve/AssemblyInfo.cs.meta b/Runtime/Verve/AssemblyInfo.cs.meta new file mode 100644 index 0000000..08ca6f3 --- /dev/null +++ b/Runtime/Verve/AssemblyInfo.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 28a46f308188c4454b2acd3b5bb8afa1 +timeCreated: 1684175795 \ No newline at end of file diff --git a/Runtime/Verve/Chartboost.Mediation.Verve.asmdef b/Runtime/Verve/Chartboost.Mediation.Verve.asmdef new file mode 100644 index 0000000..6de837a --- /dev/null +++ b/Runtime/Verve/Chartboost.Mediation.Verve.asmdef @@ -0,0 +1,21 @@ +{ + "name": "Chartboost.Mediation.Verve", + "rootNamespace": "Chartboost.Mediation.Verve", + "references": [ + "Chartboost.Threading", + "Chartboost.Logging", + "Chartboost.Utilities", + "Chartboost.Mediation" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [ + "" + ], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Runtime/Verve/Chartboost.Mediation.Verve.asmdef.meta b/Runtime/Verve/Chartboost.Mediation.Verve.asmdef.meta new file mode 100644 index 0000000..37f6d84 --- /dev/null +++ b/Runtime/Verve/Chartboost.Mediation.Verve.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7f61fe8153599449885548a2a11fc1cc +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve/Common.meta b/Runtime/Verve/Common.meta new file mode 100644 index 0000000..c9b6f82 --- /dev/null +++ b/Runtime/Verve/Common.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: af2cdf63036ff47abb022feb07f91277 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve/Common/IVerveAdapter.cs b/Runtime/Verve/Common/IVerveAdapter.cs new file mode 100644 index 0000000..fedaf2b --- /dev/null +++ b/Runtime/Verve/Common/IVerveAdapter.cs @@ -0,0 +1,20 @@ +using Chartboost.Mediation.Adapters; + +namespace Chartboost.Mediation.Verve.Common +{ + /// + /// The Chartboost Mediation Verve adapter. + /// + internal interface IVerveAdapter : IPartnerAdapterConfiguration + { + /// + /// Init flag for starting up Verve SDK in test mode. + /// + public bool TestMode { get; set; } + + /// + /// Enable/disable logging for the Verve Ads SDK. + /// + public bool VerboseLogging { get; set; } + } +} diff --git a/Runtime/Verve/Common/IVerveAdapter.cs.meta b/Runtime/Verve/Common/IVerveAdapter.cs.meta new file mode 100644 index 0000000..e6904eb --- /dev/null +++ b/Runtime/Verve/Common/IVerveAdapter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d7d1bf69cb4043b6a7e1caa4a70877b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve/Default.meta b/Runtime/Verve/Default.meta new file mode 100644 index 0000000..179cd95 --- /dev/null +++ b/Runtime/Verve/Default.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c5d6a19fffd4f4410a3f74e6c5e57e80 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve/Default/VerveDefault.cs b/Runtime/Verve/Default/VerveDefault.cs new file mode 100644 index 0000000..87aaf6c --- /dev/null +++ b/Runtime/Verve/Default/VerveDefault.cs @@ -0,0 +1,25 @@ +using Chartboost.Mediation.Verve.Common; + +namespace Chartboost.Mediation.Verve.Default +{ + internal class VerveDefault : IVerveAdapter + { + /// + public string AdapterNativeVersion => VerveAdapter.AdapterUnityVersion; + + /// + public string PartnerSDKVersion => VerveAdapter.AdapterUnityVersion; + + /// + public string PartnerIdentifier => "verve"; + + /// + public string PartnerDisplayName => "Verve"; + + /// + public bool TestMode { get; set; } + + /// + public bool VerboseLogging { get; set; } + } +} diff --git a/Runtime/Verve/Default/VerveDefault.cs.meta b/Runtime/Verve/Default/VerveDefault.cs.meta new file mode 100644 index 0000000..2c490ea --- /dev/null +++ b/Runtime/Verve/Default/VerveDefault.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a263615b152a3467eb57d0f6681fbf51 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Verve/VerveAdapter.cs b/Runtime/Verve/VerveAdapter.cs new file mode 100644 index 0000000..73aa53c --- /dev/null +++ b/Runtime/Verve/VerveAdapter.cs @@ -0,0 +1,43 @@ +using Chartboost.Mediation.Adapters; +using Chartboost.Mediation.Verve.Common; +using Chartboost.Mediation.Verve.Default; + +namespace Chartboost.Mediation.Verve +{ + /// + public static class VerveAdapter + { + internal static IVerveAdapter Instance = new VerveDefault(); + + /// + /// The partner adapter Unity version. + /// + public const string AdapterUnityVersion = "5.0.0"; + + /// + public static string AdapterNativeVersion => Instance.AdapterNativeVersion; + + /// + public static string PartnerSDKVersion => Instance.PartnerSDKVersion; + + /// + public static string PartnerIdentifier => Instance.PartnerIdentifier; + + /// + public static string PartnerDisplayName => Instance.PartnerDisplayName; + + /// + public static bool TestMode + { + get => Instance.TestMode; + set => Instance.TestMode = value; + } + + /// + public static bool VerboseLogging + { + get => Instance.VerboseLogging; + set => Instance.VerboseLogging = value; + } + } +} diff --git a/Runtime/Verve/VerveAdapter.cs.meta b/Runtime/Verve/VerveAdapter.cs.meta new file mode 100644 index 0000000..d819a27 --- /dev/null +++ b/Runtime/Verve/VerveAdapter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 64982194b9a914ae0bbffd81f275bfb0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/iOS.meta b/Runtime/iOS.meta new file mode 100644 index 0000000..67b8367 --- /dev/null +++ b/Runtime/iOS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e336ba341b54a416589d98d59ff86e77 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/iOS/AssemblyInfo.cs b/Runtime/iOS/AssemblyInfo.cs new file mode 100644 index 0000000..5324eb2 --- /dev/null +++ b/Runtime/iOS/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using UnityEngine.Scripting; + +[assembly: AlwaysLinkAssembly] diff --git a/Runtime/iOS/AssemblyInfo.cs.meta b/Runtime/iOS/AssemblyInfo.cs.meta new file mode 100644 index 0000000..b5283e5 --- /dev/null +++ b/Runtime/iOS/AssemblyInfo.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 5c4f38bea2d9e4e13be7fc1fe4a41cb6 +timeCreated: 1684175795 \ No newline at end of file diff --git a/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef b/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef new file mode 100644 index 0000000..909d0c0 --- /dev/null +++ b/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef @@ -0,0 +1,26 @@ +{ + "name": "Chartboost.Mediation.Verve.IOS", + "rootNamespace": "Chartboost.Mediation.Verve.IOS", + "references": [ + "Chartboost.Threading", + "Chartboost.Logging", + "Chartboost.Mediation.Verve", + "Chartboost.Mediation", + "Chartboost.Utilities.IOS", + "Chartboost.Utilities" + ], + "includePlatforms": [ + "Editor", + "iOS" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [ + "" + ], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef.meta b/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef.meta new file mode 100644 index 0000000..baf486e --- /dev/null +++ b/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 228fcdf35e2e24de4a032617ef1f65ef +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/iOS/Plugins.meta b/Runtime/iOS/Plugins.meta new file mode 100644 index 0000000..b6e7f13 --- /dev/null +++ b/Runtime/iOS/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9da5e1413a8a44fdbbbfe3f05ad618c0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/iOS/Plugins/iOS.meta b/Runtime/iOS/Plugins/iOS.meta new file mode 100644 index 0000000..6aeb572 --- /dev/null +++ b/Runtime/iOS/Plugins/iOS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ae67125a16bbd45d9bb96258e7401d7c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm b/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm new file mode 100644 index 0000000..f415c42 --- /dev/null +++ b/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm @@ -0,0 +1,42 @@ +#import "CBMDelegates.h" +#import "ChartboostUnityUtilities.h" +#import +#import + +extern "C" { + + const char * _CBMVerveAdapterAdapterVersion(){ + return toCStringOrNull([VerveAdapterConfiguration adapterVersion]); + } + + const char * _CBMVerveAdapterPartnerSDKVersion(){ + return toCStringOrNull([VerveAdapterConfiguration partnerSDKVersion]); + } + + const char * _CBMVerveAdapterPartnerId(){ + return toCStringOrNull([VerveAdapterConfiguration partnerID]); + } + + const char * _CBMVerveAdapterPartnerDisplayName(){ + return toCStringOrNull([VerveAdapterConfiguration partnerDisplayName]); + } + + BOOL _CBMVerveAdapterGetTestMode() { + return [VerveAdapterConfiguration testMode]; + } + + void _CBMVerveAdapterSetTestMode(BOOL testMode) { + return [VerveAdapterConfiguration setTestMode:testMode]; + } + + BOOL _CBMVerveAdapterGetVerboseLogging(){ + return [VerveAdapterConfiguration logLevel] == VerveLogLevelDebug; + } + + void _CBMVerveAdapterSetVerboseLogging(BOOL verboseLogging){ + if (verboseLogging) + [VerveAdapterConfiguration setLogLevel:VerveLogLevelDebug]; + else + [VerveAdapterConfiguration setLogLevel:VerveLogLevelDisabled]; + } +} diff --git a/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm.meta b/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm.meta new file mode 100644 index 0000000..ab99443 --- /dev/null +++ b/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm.meta @@ -0,0 +1,86 @@ +fileFormatVersion: 2 +guid: aadf3b285635f4dd0b7040f369002885 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Android: 1 + Exclude Editor: 1 + Exclude Linux64: 1 + Exclude OSXUniversal: 1 + Exclude Win: 1 + Exclude Win64: 1 + Exclude iOS: 0 + - first: + Android: Android + second: + enabled: 0 + settings: + AndroidSharedLibraryType: Executable + CPU: ARMv7 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + iPhone: iOS + second: + enabled: 1 + settings: + AddToEmbeddedBinaries: false + CPU: AnyCPU + CompileFlags: + FrameworkDependencies: CoreLocation; + - first: + tvOS: tvOS + second: + enabled: 1 + settings: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/iOS/VerveAdapter.cs b/Runtime/iOS/VerveAdapter.cs new file mode 100644 index 0000000..e8946e1 --- /dev/null +++ b/Runtime/iOS/VerveAdapter.cs @@ -0,0 +1,53 @@ +using System.Runtime.InteropServices; +using Chartboost.Constants; +using Chartboost.Mediation.Verve.Common; +using UnityEngine; + +namespace Chartboost.Mediation.Verve.IOS +{ + internal sealed class VerveAdapter : IVerveAdapter + { + [RuntimeInitializeOnLoadMethod] + private static void RegisterInstance() + { + if (Application.isEditor) + return; + Verve.VerveAdapter.Instance = new VerveAdapter(); + } + + /// + public string AdapterNativeVersion => _CBMVerveAdapterAdapterVersion(); + + /// + public string PartnerSDKVersion => _CBMVerveAdapterPartnerSDKVersion(); + + /// + public string PartnerIdentifier => _CBMVerveAdapterPartnerId(); + + /// + public string PartnerDisplayName => _CBMVerveAdapterPartnerDisplayName(); + + /// + public bool TestMode + { + get => _CBMVerveAdapterGetTestMode(); + set => _CBMVerveAdapterSetTestMode(value); + } + + /// + public bool VerboseLogging + { + get => _CBMVerveAdapterGetVerboseLogging(); + set => _CBMVerveAdapterSetVerboseLogging(value); + } + + [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterAdapterVersion(); + [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterPartnerSDKVersion(); + [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterPartnerId(); + [DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterPartnerDisplayName(); + [DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMVerveAdapterGetTestMode(); + [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMVerveAdapterSetTestMode(bool testMode); + [DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMVerveAdapterGetVerboseLogging(); + [DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMVerveAdapterSetVerboseLogging(bool verboseLogging); + } +} diff --git a/Runtime/iOS/VerveAdapter.cs.meta b/Runtime/iOS/VerveAdapter.cs.meta new file mode 100644 index 0000000..5d02007 --- /dev/null +++ b/Runtime/iOS/VerveAdapter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac5164e58c15247f5a19e8c1876531cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests.meta b/Tests.meta new file mode 100644 index 0000000..2270a56 --- /dev/null +++ b/Tests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bf6d4e5eeb503416b94ee6ff52e9c735 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/Editor.meta b/Tests/Editor.meta new file mode 100644 index 0000000..2930460 --- /dev/null +++ b/Tests/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bc8600bc4ea7e4744be809b12c879af5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef b/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef new file mode 100644 index 0000000..da5ce3e --- /dev/null +++ b/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef @@ -0,0 +1,26 @@ +{ + "name": "Chartboost.Mediation.Verve.Tests.Editor", + "rootNamespace": "Chartboost.Tests.Editor", + "references": [ + "UnityEngine.TestRunner", + "UnityEditor.TestRunner", + "Chartboost.Utilities.Editor", + "Chartboost.Logging", + "Chartboost.Mediation.Verve" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll" + ], + "autoReferenced": false, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef.meta b/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef.meta new file mode 100644 index 0000000..582dcdd --- /dev/null +++ b/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4097687f96ce242728696fc8e9821143 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/Editor/VersionValidator.cs b/Tests/Editor/VersionValidator.cs new file mode 100644 index 0000000..1ffeaa6 --- /dev/null +++ b/Tests/Editor/VersionValidator.cs @@ -0,0 +1,21 @@ +using Chartboost.Editor; +using Chartboost.Logging; +using Chartboost.Mediation.Verve; +using NUnit.Framework; + +namespace Chartboost.Tests.Editor +{ + internal class VersionValidator + { + private const string UnityPackageManagerPackageName = "com.chartboost.mediation.unity.adapter.verve"; + private const string NuGetPackageName = "Chartboost.CSharp.Mediation.Unity.Adapter.Verve"; + + [SetUp] + public void SetUp() + => LogController.LoggingLevel = LogLevel.Debug; + + [Test] + public void ValidateVersion() + => VersionCheck.ValidateVersions(UnityPackageManagerPackageName, NuGetPackageName, VerveAdapter.AdapterUnityVersion); + } +} diff --git a/Tests/Editor/VersionValidator.cs.meta b/Tests/Editor/VersionValidator.cs.meta new file mode 100644 index 0000000..694e5ca --- /dev/null +++ b/Tests/Editor/VersionValidator.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: be60b2f02498a44b581dead21bb2f353 +timeCreated: 1710897732 \ No newline at end of file diff --git a/Tests/Runtime.meta b/Tests/Runtime.meta new file mode 100644 index 0000000..7c3c8c4 --- /dev/null +++ b/Tests/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3943d0c6ad5af44d9a0537635ee8ec12 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef b/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef new file mode 100644 index 0000000..317d461 --- /dev/null +++ b/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef @@ -0,0 +1,29 @@ +{ + "name": "Chartboost.Mediation.Verve.Tests.Runtime", + "rootNamespace": "Chartboost.Tests", + "references": [ + "UnityEngine.TestRunner", + "UnityEditor.TestRunner", + "Chartboost.Utilities", + "Chartboost.Mediation.Verve", + "Chartboost.Logging", + "Chartboost.Utilities.Tests.Runtime" + ], + "includePlatforms": [ + "Android", + "Editor", + "iOS" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll" + ], + "autoReferenced": false, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef.meta b/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef.meta new file mode 100644 index 0000000..2f07a08 --- /dev/null +++ b/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 53a6875a037e04cc9a3b59c9748892d2 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/Runtime/VerveAdapterTests.cs b/Tests/Runtime/VerveAdapterTests.cs new file mode 100644 index 0000000..9fcfb11 --- /dev/null +++ b/Tests/Runtime/VerveAdapterTests.cs @@ -0,0 +1,38 @@ +using Chartboost.Logging; +using Chartboost.Mediation.Verve; +using Chartboost.Tests.Runtime; +using NUnit.Framework; + +namespace Chartboost.Tests +{ + internal class VerveAdapterTests + { + [SetUp] + public void SetUp() + => LogController.LoggingLevel = LogLevel.Debug; + + [Test] + public void AdapterNativeVersion() + => TestUtilities.TestStringGetter(() => VerveAdapter.AdapterNativeVersion); + + [Test] + public void PartnerSDKVersion() + => TestUtilities.TestStringGetter(() => VerveAdapter.PartnerSDKVersion); + + [Test] + public void PartnerIdentifier() + => TestUtilities.TestStringGetter(() => VerveAdapter.PartnerIdentifier); + + [Test] + public void PartnerDisplayName() + => TestUtilities.TestStringGetter(() => VerveAdapter.PartnerDisplayName); + + [Test] + public void TestMode() + => TestUtilities.TestBooleanAccessor(() => VerveAdapter.TestMode, value => VerveAdapter.TestMode = value); + + [Test] + public void VerboseLogging() + => TestUtilities.TestBooleanAccessor(() => VerveAdapter.VerboseLogging, value => VerveAdapter.VerboseLogging = value); + } +} diff --git a/Tests/Runtime/VerveAdapterTests.cs.meta b/Tests/Runtime/VerveAdapterTests.cs.meta new file mode 100644 index 0000000..a6b89cf --- /dev/null +++ b/Tests/Runtime/VerveAdapterTests.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3be85313957144bd688363e351f63b1e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package.json b/package.json new file mode 100644 index 0000000..3300bde --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "com.chartboost.mediation.unity.adapter.verve", + "version": "5.0.0", + "displayName": "Chartboost Mediation Adapter - Verve", + "description": "The Chartboost Mediation Unity SDK Adapter for Verve.", + "unity": "2022.3", + "documentationUrl": "https://docs.chartboost.com/en/mediation/integrate/unity/get-started/", + "changelogUrl": "https://docs.chartboost.com/en/mediation/integrate/unity/changelog/", + "licensesUrl": "https://docs.chartboost.com/en/legal/", + "dependencies": { + "com.chartboost.mediation" : "5.0.0", + "com.chartboost.unity.threading": "1.0.1", + "com.chartboost.unity.utilities": "1.0.1", + "com.chartboost.unity.logging": "1.0.0" + }, + "keywords": ["Chartboost", "Mediation", "Adapter", "Unity", "Verve"], + "author": { + "name": "Chartboost", + "email": "sales@chartboost.com", + "url": "https://www.chartboost.com/products/mediation/" + }, + "repository": { + "type": "git", + "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-verve.git" + }, + "bugs": { + "url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-verve/issues", + "email": "helium-service@chartboost.com" + }, + "hideInEditor": false +} \ No newline at end of file diff --git a/package.json.meta b/package.json.meta new file mode 100644 index 0000000..ff3f957 --- /dev/null +++ b/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3e98e8f40d4e54daa9034df8701a5795 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: