com.chartboost.mediation.unity.adapter.verve 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.
- package/CHANGELOG.md +21 -0
- package/CHANGELOG.md.meta +7 -0
- package/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec +23 -0
- package/Chartboost.CSharp.Mediation.Unity.Adapter.Verve.nuspec.meta +7 -0
- package/Editor/VerveAdapterDependencies.xml +19 -0
- package/Editor/VerveAdapterDependencies.xml.meta +7 -0
- package/Editor.meta +8 -0
- package/LICENSE.md +9 -0
- package/LICENSE.md.meta +7 -0
- package/README.md +99 -0
- package/README.md.meta +7 -0
- package/Runtime/Android/AssemblyInfo.cs +3 -0
- package/Runtime/Android/AssemblyInfo.cs.meta +3 -0
- package/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef +26 -0
- package/Runtime/Android/Chartboost.Mediation.Verve.Android.asmdef.meta +7 -0
- package/Runtime/Android/VerveAdapter.cs +104 -0
- package/Runtime/Android/VerveAdapter.cs.meta +11 -0
- package/Runtime/Android.meta +8 -0
- package/Runtime/Verve/AssemblyInfo.cs +16 -0
- package/Runtime/Verve/AssemblyInfo.cs.meta +3 -0
- package/Runtime/Verve/Chartboost.Mediation.Verve.asmdef +21 -0
- package/Runtime/Verve/Chartboost.Mediation.Verve.asmdef.meta +7 -0
- package/Runtime/Verve/Common/IVerveAdapter.cs +20 -0
- package/Runtime/Verve/Common/IVerveAdapter.cs.meta +11 -0
- package/Runtime/Verve/Common.meta +8 -0
- package/Runtime/Verve/Default/VerveDefault.cs +25 -0
- package/Runtime/Verve/Default/VerveDefault.cs.meta +11 -0
- package/Runtime/Verve/Default.meta +8 -0
- package/Runtime/Verve/VerveAdapter.cs +43 -0
- package/Runtime/Verve/VerveAdapter.cs.meta +11 -0
- package/Runtime/Verve.meta +8 -0
- package/Runtime/iOS/AssemblyInfo.cs +3 -0
- package/Runtime/iOS/AssemblyInfo.cs.meta +3 -0
- package/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef +26 -0
- package/Runtime/iOS/Chartboost.Mediation.Verve.IOS.asmdef.meta +7 -0
- package/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm +42 -0
- package/Runtime/iOS/Plugins/iOS/CBMVerveUnityBridge.mm.meta +86 -0
- package/Runtime/iOS/Plugins/iOS.meta +8 -0
- package/Runtime/iOS/Plugins.meta +8 -0
- package/Runtime/iOS/VerveAdapter.cs +53 -0
- package/Runtime/iOS/VerveAdapter.cs.meta +11 -0
- package/Runtime/iOS.meta +8 -0
- package/Runtime.meta +8 -0
- package/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef +26 -0
- package/Tests/Editor/Chartboost.Mediation.Verve.Tests.Editor.asmdef.meta +7 -0
- package/Tests/Editor/VersionValidator.cs +21 -0
- package/Tests/Editor/VersionValidator.cs.meta +3 -0
- package/Tests/Editor.meta +8 -0
- package/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef +29 -0
- package/Tests/Runtime/Chartboost.Mediation.Verve.Tests.Runtime.asmdef.meta +7 -0
- package/Tests/Runtime/VerveAdapterTests.cs +38 -0
- package/Tests/Runtime/VerveAdapterTests.cs.meta +11 -0
- package/Tests/Runtime.meta +8 -0
- package/Tests.meta +8 -0
- package/package.json +31 -0
- package/package.json.meta +7 -0
- package/rsync.sh +17 -0
- package/rsync.sh.meta +7 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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 - Verve Adapter.
|
|
7
|
+
|
|
8
|
+
#Added
|
|
9
|
+
- Support for the following `Verve` dependencies. Notice adapter dependencies are optimistic and any patches and hot-fixes will be automatically picked up.:
|
|
10
|
+
* Android: `com.chartboost:chartboost-mediation-adapter-verve:5.3.0.+`
|
|
11
|
+
* iOS: `ChartboostMediationAdapterVerve ~> 5.3.0.0`
|
|
12
|
+
|
|
13
|
+
- `VerveAdapter.cs` with Configuration Properties for `Verve`.
|
|
14
|
+
- The following properties have been added in `VerveAdapter.cs`
|
|
15
|
+
* `string AdapterUnityVersion`
|
|
16
|
+
* `string AdapterNativeVersion`
|
|
17
|
+
* `string PartnerSDKVersion`
|
|
18
|
+
* `string PartnerIdentifier`
|
|
19
|
+
* `string PartnerDisplayName`
|
|
20
|
+
* `bool TestMode`
|
|
21
|
+
* `bool VerboseLogging`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<package>
|
|
3
|
+
<metadata>
|
|
4
|
+
<id>Chartboost.CSharp.Mediation.Unity.Adapter.Verve</id>
|
|
5
|
+
<version>5.0.0</version>
|
|
6
|
+
<title>Chartboost Mediation Adapter - Verve</title>
|
|
7
|
+
<description>The Chartboost Mediation Unity SDK Adapter for Verve.</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, Verve, cs</tags>
|
|
15
|
+
<repository type="git" url="https://github.com/ChartBoost/chartboost-mediation-unity-adapter-verve.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,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<dependencies>
|
|
3
|
+
<androidPackages>
|
|
4
|
+
<!-- Android Adapter -->
|
|
5
|
+
<androidPackage spec="com.chartboost:chartboost-mediation-adapter-verve:5.3.0.+"/>
|
|
6
|
+
|
|
7
|
+
<!-- Verve Android Repositories -->
|
|
8
|
+
<repositories>
|
|
9
|
+
<repository>https://verve.jfrog.io/artifactory/verve-gradle-release</repository>
|
|
10
|
+
</repositories>
|
|
11
|
+
</androidPackages>
|
|
12
|
+
<iosPods>
|
|
13
|
+
<!-- iOS Adapter -->
|
|
14
|
+
<iosPod name="ChartboostMediationAdapterVerve" version="~> 5.3.0.0"/>
|
|
15
|
+
|
|
16
|
+
<!-- Partner iOS SDK-->
|
|
17
|
+
<iosPod name="HyBid" version="~> 3.0.0" addToAllTargets="true"/>
|
|
18
|
+
</iosPods>
|
|
19
|
+
</dependencies>
|
package/Editor.meta
ADDED
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.
|
package/LICENSE.md.meta
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Chartboost Mediation Unity SDK - Verve 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.verve/Editor/VerveAdapterDependencies.xml`.
|
|
6
|
+
|
|
7
|
+
# Installation
|
|
8
|
+
|
|
9
|
+
## Using the public [npm registry](https://www.npmjs.com/search?q=com.chartboost.mediation.unity.adapter.verve)
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"com.chartboost.mediation.unity.adapter.verve": "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.Verve)
|
|
29
|
+
|
|
30
|
+
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.
|
|
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.Verve` 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.Verve` package. Choose the appropriate version and install.
|
|
43
|
+
|
|
44
|
+
# AndroidManifest.xml Permissions
|
|
45
|
+
|
|
46
|
+
The following permissions must be added in the `AndroidManifest.xml` file:
|
|
47
|
+
|
|
48
|
+
```xml
|
|
49
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
50
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
```xml
|
|
56
|
+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
57
|
+
|
|
58
|
+
<!-- For location use one of the following permissions -->
|
|
59
|
+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
60
|
+
<!-- or -->
|
|
61
|
+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
# Usage
|
|
65
|
+
The following code block exemplifies usage of the `VerveAdapter.cs` configuration class.
|
|
66
|
+
|
|
67
|
+
## IPartnerAdapterConfiguration Properties
|
|
68
|
+
|
|
69
|
+
```csharp
|
|
70
|
+
|
|
71
|
+
// AdapterUnityVersion - The partner adapter Unity version, e.g: 5.0.0
|
|
72
|
+
Debug.Log($"Adapter Unity Version: {VerveAdapter.AdapterUnityVersion}");
|
|
73
|
+
|
|
74
|
+
// AdapterNativeVersion - The partner adapter version, e.g: 5.3.0.2.0
|
|
75
|
+
Debug.Log($"Adapter Native Version: {VerveAdapter.AdapterNativeVersion}");
|
|
76
|
+
|
|
77
|
+
// PartnerSDKVersion - The partner SDK version, e.g: 3.0.2
|
|
78
|
+
Debug.Log($"Partner SDK Version: {VerveAdapter.PartnerSDKVersion}");
|
|
79
|
+
|
|
80
|
+
// PartnerIdentifier - The partner ID for internal uses, e.g: verve
|
|
81
|
+
Debug.Log($"Partner Identifier: {VerveAdapter.PartnerIdentifier}");
|
|
82
|
+
|
|
83
|
+
// PartnerDisplayName - The partner name for external uses, e.g: Verve
|
|
84
|
+
Debug.Log($"Partner Display Name: {VerveAdapter.PartnerDisplayName}");
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Test Mode
|
|
88
|
+
To enable test mode for the Verve adapter, the following property has been made available:
|
|
89
|
+
|
|
90
|
+
```csharp
|
|
91
|
+
VerveAdapter.TestMode = true;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Verbose Logging
|
|
95
|
+
To enable verbose logging for the Verve adapter, the following property has been made available:
|
|
96
|
+
|
|
97
|
+
```csharp
|
|
98
|
+
VerveAdapter.VerboseLogging = true;
|
|
99
|
+
```
|
package/README.md.meta
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Verve.Android",
|
|
3
|
+
"rootNamespace": "Chartboost.Mediation.Verve.Android",
|
|
4
|
+
"references": [
|
|
5
|
+
"Chartboost.Threading",
|
|
6
|
+
"Chartboost.Logging",
|
|
7
|
+
"Chartboost.Mediation.Verve",
|
|
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,104 @@
|
|
|
1
|
+
using Chartboost.Constants;
|
|
2
|
+
using Chartboost.Mediation.Verve.Common;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace Chartboost.Mediation.Verve.Android
|
|
6
|
+
{
|
|
7
|
+
internal sealed class VerveAdapter : IVerveAdapter
|
|
8
|
+
{
|
|
9
|
+
private const string VerveAdapterConfiguration = "com.chartboost.mediation.verveadapter.VerveAdapterConfiguration";
|
|
10
|
+
private const string FunctionGetTestModeEnabled = "getTestModeEnabled";
|
|
11
|
+
private const string FunctionSetTestModeEnabled = "setTestModeEnabled";
|
|
12
|
+
|
|
13
|
+
private const string VerveLoggerLevel = "net.pubnative.lite.sdk.utils.Logger$Level";
|
|
14
|
+
private const string EnumVerveLogLevelVerbose = "verbose";
|
|
15
|
+
private const string EnumVerveLogLevelNone = "none";
|
|
16
|
+
|
|
17
|
+
[RuntimeInitializeOnLoadMethod]
|
|
18
|
+
private static void RegisterInstance()
|
|
19
|
+
{
|
|
20
|
+
if (Application.isEditor)
|
|
21
|
+
return;
|
|
22
|
+
Verve.VerveAdapter.Instance = new VerveAdapter();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/// <inheritdoc/>
|
|
26
|
+
public string AdapterNativeVersion
|
|
27
|
+
{
|
|
28
|
+
get
|
|
29
|
+
{
|
|
30
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
31
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetAdapterVersion);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/// <inheritdoc/>
|
|
36
|
+
public string PartnerSDKVersion
|
|
37
|
+
{
|
|
38
|
+
get
|
|
39
|
+
{
|
|
40
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
41
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerSdkVersion);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/// <inheritdoc/>
|
|
46
|
+
public string PartnerIdentifier
|
|
47
|
+
{
|
|
48
|
+
get
|
|
49
|
+
{
|
|
50
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
51
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerId);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/// <inheritdoc/>
|
|
56
|
+
public string PartnerDisplayName
|
|
57
|
+
{
|
|
58
|
+
get
|
|
59
|
+
{
|
|
60
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
61
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerDisplayName);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/// <inheritdoc/>
|
|
66
|
+
public bool TestMode
|
|
67
|
+
{
|
|
68
|
+
get
|
|
69
|
+
{
|
|
70
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
71
|
+
return adapterConfiguration.Call<bool>(FunctionGetTestModeEnabled);
|
|
72
|
+
}
|
|
73
|
+
set
|
|
74
|
+
{
|
|
75
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
76
|
+
adapterConfiguration.Call(FunctionSetTestModeEnabled, value);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/// <inheritdoc/>
|
|
81
|
+
public bool VerboseLogging
|
|
82
|
+
{
|
|
83
|
+
get
|
|
84
|
+
{
|
|
85
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
86
|
+
using var nativeLogLevel = adapterConfiguration.Call<AndroidJavaObject>(SharedAndroidConstants.FunctionGetLogLevel);
|
|
87
|
+
|
|
88
|
+
var logLevelAsString = nativeLogLevel.Call<string>(SharedAndroidConstants.FunctionToString);
|
|
89
|
+
return logLevelAsString switch
|
|
90
|
+
{
|
|
91
|
+
EnumVerveLogLevelVerbose => true,
|
|
92
|
+
_ => false
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
set
|
|
96
|
+
{
|
|
97
|
+
using var adapterConfiguration = new AndroidJavaObject(VerveAdapterConfiguration);
|
|
98
|
+
using var loggerLevelClass = new AndroidJavaClass(VerveLoggerLevel);
|
|
99
|
+
using var enumValue = loggerLevelClass.GetStatic<AndroidJavaObject>(value ? EnumVerveLogLevelVerbose : EnumVerveLogLevelNone);
|
|
100
|
+
adapterConfiguration.Call(SharedAndroidConstants.FunctionSetLogLevel, enumValue);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
using System.Runtime.CompilerServices;
|
|
2
|
+
using Chartboost.Mediation.Verve;
|
|
3
|
+
using UnityEngine.Scripting;
|
|
4
|
+
|
|
5
|
+
[assembly: AlwaysLinkAssembly]
|
|
6
|
+
[assembly: InternalsVisibleTo(AssemblyInfo.VerveAssemblyInfoAndroid)]
|
|
7
|
+
[assembly: InternalsVisibleTo(AssemblyInfo.VerveAssemblyInfoIOS)]
|
|
8
|
+
|
|
9
|
+
namespace Chartboost.Mediation.Verve
|
|
10
|
+
{
|
|
11
|
+
internal class AssemblyInfo
|
|
12
|
+
{
|
|
13
|
+
public const string VerveAssemblyInfoAndroid = "Chartboost.Mediation.Verve.Android";
|
|
14
|
+
public const string VerveAssemblyInfoIOS = "Chartboost.Mediation.Verve.IOS";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Verve",
|
|
3
|
+
"rootNamespace": "Chartboost.Mediation.Verve",
|
|
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,20 @@
|
|
|
1
|
+
using Chartboost.Mediation.Adapters;
|
|
2
|
+
|
|
3
|
+
namespace Chartboost.Mediation.Verve.Common
|
|
4
|
+
{
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// The Chartboost Mediation Verve adapter.
|
|
7
|
+
/// </summary>
|
|
8
|
+
internal interface IVerveAdapter : IPartnerAdapterConfiguration
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
/// Init flag for starting up Verve SDK in test mode.
|
|
12
|
+
/// </summary>
|
|
13
|
+
public bool TestMode { get; set; }
|
|
14
|
+
|
|
15
|
+
/// <summary>
|
|
16
|
+
/// Enable/disable logging for the Verve Ads SDK.
|
|
17
|
+
/// </summary>
|
|
18
|
+
public bool VerboseLogging { get; set; }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
using Chartboost.Mediation.Verve.Common;
|
|
2
|
+
|
|
3
|
+
namespace Chartboost.Mediation.Verve.Default
|
|
4
|
+
{
|
|
5
|
+
internal class VerveDefault : IVerveAdapter
|
|
6
|
+
{
|
|
7
|
+
/// <inheritdoc/>
|
|
8
|
+
public string AdapterNativeVersion => VerveAdapter.AdapterUnityVersion;
|
|
9
|
+
|
|
10
|
+
/// <inheritdoc/>
|
|
11
|
+
public string PartnerSDKVersion => VerveAdapter.AdapterUnityVersion;
|
|
12
|
+
|
|
13
|
+
/// <inheritdoc/>
|
|
14
|
+
public string PartnerIdentifier => "verve";
|
|
15
|
+
|
|
16
|
+
/// <inheritdoc/>
|
|
17
|
+
public string PartnerDisplayName => "Verve";
|
|
18
|
+
|
|
19
|
+
/// <inheritdoc/>
|
|
20
|
+
public bool TestMode { get; set; }
|
|
21
|
+
|
|
22
|
+
/// <inheritdoc/>
|
|
23
|
+
public bool VerboseLogging { get; set; }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
using Chartboost.Mediation.Adapters;
|
|
2
|
+
using Chartboost.Mediation.Verve.Common;
|
|
3
|
+
using Chartboost.Mediation.Verve.Default;
|
|
4
|
+
|
|
5
|
+
namespace Chartboost.Mediation.Verve
|
|
6
|
+
{
|
|
7
|
+
/// <inheritdoc cref="IVerveAdapter"/>
|
|
8
|
+
public static class VerveAdapter
|
|
9
|
+
{
|
|
10
|
+
internal static IVerveAdapter Instance = new VerveDefault();
|
|
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="IVerveAdapter.TestMode"/>
|
|
30
|
+
public static bool TestMode
|
|
31
|
+
{
|
|
32
|
+
get => Instance.TestMode;
|
|
33
|
+
set => Instance.TestMode = value;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/// <inheritdoc cref="IVerveAdapter.VerboseLogging"/>
|
|
37
|
+
public static bool VerboseLogging
|
|
38
|
+
{
|
|
39
|
+
get => Instance.VerboseLogging;
|
|
40
|
+
set => Instance.VerboseLogging = value;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Verve.IOS",
|
|
3
|
+
"rootNamespace": "Chartboost.Mediation.Verve.IOS",
|
|
4
|
+
"references": [
|
|
5
|
+
"Chartboost.Threading",
|
|
6
|
+
"Chartboost.Logging",
|
|
7
|
+
"Chartboost.Mediation.Verve",
|
|
8
|
+
"Chartboost.Mediation",
|
|
9
|
+
"Chartboost.Utilities.IOS",
|
|
10
|
+
"Chartboost.Utilities"
|
|
11
|
+
],
|
|
12
|
+
"includePlatforms": [
|
|
13
|
+
"Editor",
|
|
14
|
+
"iOS"
|
|
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,42 @@
|
|
|
1
|
+
#import "CBMDelegates.h"
|
|
2
|
+
#import "ChartboostUnityUtilities.h"
|
|
3
|
+
#import <HyBid/HyBid.h>
|
|
4
|
+
#import <ChartboostMediationAdapterVerve/ChartboostMediationAdapterVerve-Swift.h>
|
|
5
|
+
|
|
6
|
+
extern "C" {
|
|
7
|
+
|
|
8
|
+
const char * _CBMVerveAdapterAdapterVersion(){
|
|
9
|
+
return toCStringOrNull([VerveAdapterConfiguration adapterVersion]);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const char * _CBMVerveAdapterPartnerSDKVersion(){
|
|
13
|
+
return toCStringOrNull([VerveAdapterConfiguration partnerSDKVersion]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const char * _CBMVerveAdapterPartnerId(){
|
|
17
|
+
return toCStringOrNull([VerveAdapterConfiguration partnerID]);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const char * _CBMVerveAdapterPartnerDisplayName(){
|
|
21
|
+
return toCStringOrNull([VerveAdapterConfiguration partnerDisplayName]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
BOOL _CBMVerveAdapterGetTestMode() {
|
|
25
|
+
return [VerveAdapterConfiguration testMode];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
void _CBMVerveAdapterSetTestMode(BOOL testMode) {
|
|
29
|
+
return [VerveAdapterConfiguration setTestMode:testMode];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
BOOL _CBMVerveAdapterGetVerboseLogging(){
|
|
33
|
+
return [VerveAdapterConfiguration logLevel] == VerveLogLevelDebug;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void _CBMVerveAdapterSetVerboseLogging(BOOL verboseLogging){
|
|
37
|
+
if (verboseLogging)
|
|
38
|
+
[VerveAdapterConfiguration setLogLevel:VerveLogLevelDebug];
|
|
39
|
+
else
|
|
40
|
+
[VerveAdapterConfiguration setLogLevel:VerveLogLevelDisabled];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: aadf3b285635f4dd0b7040f369002885
|
|
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
|
+
Exclude Android: 1
|
|
20
|
+
Exclude Editor: 1
|
|
21
|
+
Exclude Linux64: 1
|
|
22
|
+
Exclude OSXUniversal: 1
|
|
23
|
+
Exclude Win: 1
|
|
24
|
+
Exclude Win64: 1
|
|
25
|
+
Exclude iOS: 0
|
|
26
|
+
- first:
|
|
27
|
+
Android: Android
|
|
28
|
+
second:
|
|
29
|
+
enabled: 0
|
|
30
|
+
settings:
|
|
31
|
+
AndroidSharedLibraryType: Executable
|
|
32
|
+
CPU: ARMv7
|
|
33
|
+
- first:
|
|
34
|
+
Any:
|
|
35
|
+
second:
|
|
36
|
+
enabled: 0
|
|
37
|
+
settings: {}
|
|
38
|
+
- first:
|
|
39
|
+
Editor: Editor
|
|
40
|
+
second:
|
|
41
|
+
enabled: 0
|
|
42
|
+
settings:
|
|
43
|
+
CPU: AnyCPU
|
|
44
|
+
DefaultValueInitialized: true
|
|
45
|
+
OS: AnyOS
|
|
46
|
+
- first:
|
|
47
|
+
Standalone: Linux64
|
|
48
|
+
second:
|
|
49
|
+
enabled: 0
|
|
50
|
+
settings:
|
|
51
|
+
CPU: AnyCPU
|
|
52
|
+
- first:
|
|
53
|
+
Standalone: OSXUniversal
|
|
54
|
+
second:
|
|
55
|
+
enabled: 0
|
|
56
|
+
settings:
|
|
57
|
+
CPU: AnyCPU
|
|
58
|
+
- first:
|
|
59
|
+
Standalone: Win
|
|
60
|
+
second:
|
|
61
|
+
enabled: 0
|
|
62
|
+
settings:
|
|
63
|
+
CPU: AnyCPU
|
|
64
|
+
- first:
|
|
65
|
+
Standalone: Win64
|
|
66
|
+
second:
|
|
67
|
+
enabled: 0
|
|
68
|
+
settings:
|
|
69
|
+
CPU: AnyCPU
|
|
70
|
+
- first:
|
|
71
|
+
iPhone: iOS
|
|
72
|
+
second:
|
|
73
|
+
enabled: 1
|
|
74
|
+
settings:
|
|
75
|
+
AddToEmbeddedBinaries: false
|
|
76
|
+
CPU: AnyCPU
|
|
77
|
+
CompileFlags:
|
|
78
|
+
FrameworkDependencies: CoreLocation;
|
|
79
|
+
- first:
|
|
80
|
+
tvOS: tvOS
|
|
81
|
+
second:
|
|
82
|
+
enabled: 1
|
|
83
|
+
settings: {}
|
|
84
|
+
userData:
|
|
85
|
+
assetBundleName:
|
|
86
|
+
assetBundleVariant:
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
using System.Runtime.InteropServices;
|
|
2
|
+
using Chartboost.Constants;
|
|
3
|
+
using Chartboost.Mediation.Verve.Common;
|
|
4
|
+
using UnityEngine;
|
|
5
|
+
|
|
6
|
+
namespace Chartboost.Mediation.Verve.IOS
|
|
7
|
+
{
|
|
8
|
+
internal sealed class VerveAdapter : IVerveAdapter
|
|
9
|
+
{
|
|
10
|
+
[RuntimeInitializeOnLoadMethod]
|
|
11
|
+
private static void RegisterInstance()
|
|
12
|
+
{
|
|
13
|
+
if (Application.isEditor)
|
|
14
|
+
return;
|
|
15
|
+
Verve.VerveAdapter.Instance = new VerveAdapter();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/// <inheritdoc/>
|
|
19
|
+
public string AdapterNativeVersion => _CBMVerveAdapterAdapterVersion();
|
|
20
|
+
|
|
21
|
+
/// <inheritdoc/>
|
|
22
|
+
public string PartnerSDKVersion => _CBMVerveAdapterPartnerSDKVersion();
|
|
23
|
+
|
|
24
|
+
/// <inheritdoc/>
|
|
25
|
+
public string PartnerIdentifier => _CBMVerveAdapterPartnerId();
|
|
26
|
+
|
|
27
|
+
/// <inheritdoc/>
|
|
28
|
+
public string PartnerDisplayName => _CBMVerveAdapterPartnerDisplayName();
|
|
29
|
+
|
|
30
|
+
/// <inheritdoc/>
|
|
31
|
+
public bool TestMode
|
|
32
|
+
{
|
|
33
|
+
get => _CBMVerveAdapterGetTestMode();
|
|
34
|
+
set => _CBMVerveAdapterSetTestMode(value);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/// <inheritdoc/>
|
|
38
|
+
public bool VerboseLogging
|
|
39
|
+
{
|
|
40
|
+
get => _CBMVerveAdapterGetVerboseLogging();
|
|
41
|
+
set => _CBMVerveAdapterSetVerboseLogging(value);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterAdapterVersion();
|
|
45
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterPartnerSDKVersion();
|
|
46
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterPartnerId();
|
|
47
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMVerveAdapterPartnerDisplayName();
|
|
48
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMVerveAdapterGetTestMode();
|
|
49
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMVerveAdapterSetTestMode(bool testMode);
|
|
50
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern bool _CBMVerveAdapterGetVerboseLogging();
|
|
51
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMVerveAdapterSetVerboseLogging(bool verboseLogging);
|
|
52
|
+
}
|
|
53
|
+
}
|
package/Runtime/iOS.meta
ADDED
package/Runtime.meta
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Verve.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.Verve"
|
|
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,21 @@
|
|
|
1
|
+
using Chartboost.Editor;
|
|
2
|
+
using Chartboost.Logging;
|
|
3
|
+
using Chartboost.Mediation.Verve;
|
|
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.verve";
|
|
11
|
+
private const string NuGetPackageName = "Chartboost.CSharp.Mediation.Unity.Adapter.Verve";
|
|
12
|
+
|
|
13
|
+
[SetUp]
|
|
14
|
+
public void SetUp()
|
|
15
|
+
=> LogController.LoggingLevel = LogLevel.Debug;
|
|
16
|
+
|
|
17
|
+
[Test]
|
|
18
|
+
public void ValidateVersion()
|
|
19
|
+
=> VersionCheck.ValidateVersions(UnityPackageManagerPackageName, NuGetPackageName, VerveAdapter.AdapterUnityVersion);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Verve.Tests.Runtime",
|
|
3
|
+
"rootNamespace": "Chartboost.Tests",
|
|
4
|
+
"references": [
|
|
5
|
+
"UnityEngine.TestRunner",
|
|
6
|
+
"UnityEditor.TestRunner",
|
|
7
|
+
"Chartboost.Utilities",
|
|
8
|
+
"Chartboost.Mediation.Verve",
|
|
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,38 @@
|
|
|
1
|
+
using Chartboost.Logging;
|
|
2
|
+
using Chartboost.Mediation.Verve;
|
|
3
|
+
using Chartboost.Tests.Runtime;
|
|
4
|
+
using NUnit.Framework;
|
|
5
|
+
|
|
6
|
+
namespace Chartboost.Tests
|
|
7
|
+
{
|
|
8
|
+
internal class VerveAdapterTests
|
|
9
|
+
{
|
|
10
|
+
[SetUp]
|
|
11
|
+
public void SetUp()
|
|
12
|
+
=> LogController.LoggingLevel = LogLevel.Debug;
|
|
13
|
+
|
|
14
|
+
[Test]
|
|
15
|
+
public void AdapterNativeVersion()
|
|
16
|
+
=> TestUtilities.TestStringGetter(() => VerveAdapter.AdapterNativeVersion);
|
|
17
|
+
|
|
18
|
+
[Test]
|
|
19
|
+
public void PartnerSDKVersion()
|
|
20
|
+
=> TestUtilities.TestStringGetter(() => VerveAdapter.PartnerSDKVersion);
|
|
21
|
+
|
|
22
|
+
[Test]
|
|
23
|
+
public void PartnerIdentifier()
|
|
24
|
+
=> TestUtilities.TestStringGetter(() => VerveAdapter.PartnerIdentifier);
|
|
25
|
+
|
|
26
|
+
[Test]
|
|
27
|
+
public void PartnerDisplayName()
|
|
28
|
+
=> TestUtilities.TestStringGetter(() => VerveAdapter.PartnerDisplayName);
|
|
29
|
+
|
|
30
|
+
[Test]
|
|
31
|
+
public void TestMode()
|
|
32
|
+
=> TestUtilities.TestBooleanAccessor(() => VerveAdapter.TestMode, value => VerveAdapter.TestMode = value);
|
|
33
|
+
|
|
34
|
+
[Test]
|
|
35
|
+
public void VerboseLogging()
|
|
36
|
+
=> TestUtilities.TestBooleanAccessor(() => VerveAdapter.VerboseLogging, value => VerveAdapter.VerboseLogging = value);
|
|
37
|
+
}
|
|
38
|
+
}
|
package/Tests.meta
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "com.chartboost.mediation.unity.adapter.verve",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"displayName": "Chartboost Mediation Adapter - Verve",
|
|
5
|
+
"description": "The Chartboost Mediation Unity SDK Adapter for Verve.",
|
|
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", "Verve"],
|
|
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-verve.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-verve/issues",
|
|
28
|
+
"email": "helium-service@chartboost.com"
|
|
29
|
+
},
|
|
30
|
+
"hideInEditor": false
|
|
31
|
+
}
|
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.verve/ "${PUBLIC_REPOSITORY_PATH}/"
|
|
17
|
+
|