com.chartboost.mediation.unity.adapter.pangle 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 +23 -0
- package/CHANGELOG.md.meta +7 -0
- package/Chartboost.CSharp.Mediation.Unity.Adapter.Pangle.nuspec +23 -0
- package/Chartboost.CSharp.Mediation.Unity.Adapter.Pangle.nuspec.meta +7 -0
- package/Editor/PangleAdapterDependencies.xml +19 -0
- package/Editor/PangleAdapterDependencies.xml.meta +7 -0
- package/Editor.meta +8 -0
- package/LICENSE.md +9 -0
- package/LICENSE.md.meta +7 -0
- package/README.md +104 -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.Pangle.Android.asmdef +26 -0
- package/Runtime/Android/Chartboost.Mediation.Pangle.Android.asmdef.meta +7 -0
- package/Runtime/Android/PangleAdapter.cs +75 -0
- package/Runtime/Android/PangleAdapter.cs.meta +11 -0
- package/Runtime/Android.meta +8 -0
- package/Runtime/Pangle/AssemblyInfo.cs +16 -0
- package/Runtime/Pangle/AssemblyInfo.cs.meta +3 -0
- package/Runtime/Pangle/Chartboost.Mediation.Pangle.asmdef +21 -0
- package/Runtime/Pangle/Chartboost.Mediation.Pangle.asmdef.meta +7 -0
- package/Runtime/Pangle/Common/IPangleAdapter.cs +22 -0
- package/Runtime/Pangle/Common/IPangleAdapter.cs.meta +11 -0
- package/Runtime/Pangle/Common/PangleDoNotSellType.cs +10 -0
- package/Runtime/Pangle/Common/PangleDoNotSellType.cs.meta +11 -0
- package/Runtime/Pangle/Common/PangleGDPRConsentType.cs +10 -0
- package/Runtime/Pangle/Common/PangleGDPRConsentType.cs.meta +11 -0
- package/Runtime/Pangle/Common.meta +8 -0
- package/Runtime/Pangle/Default/PangleDefault.cs +28 -0
- package/Runtime/Pangle/Default/PangleDefault.cs.meta +11 -0
- package/Runtime/Pangle/Default.meta +8 -0
- package/Runtime/Pangle/PangleAdapter.cs +37 -0
- package/Runtime/Pangle/PangleAdapter.cs.meta +11 -0
- package/Runtime/Pangle.meta +8 -0
- package/Runtime/iOS/AssemblyInfo.cs +3 -0
- package/Runtime/iOS/AssemblyInfo.cs.meta +3 -0
- package/Runtime/iOS/Chartboost.Mediation.Pangle.IOS.asmdef +25 -0
- package/Runtime/iOS/Chartboost.Mediation.Pangle.IOS.asmdef.meta +7 -0
- package/Runtime/iOS/PangleAdapter.cs +45 -0
- package/Runtime/iOS/PangleAdapter.cs.meta +11 -0
- package/Runtime/iOS/Plugins/iOS/CBMPangleUnityBridge.mm +33 -0
- package/Runtime/iOS/Plugins/iOS/CBMPangleUnityBridge.mm.meta +37 -0
- package/Runtime/iOS/Plugins/iOS.meta +8 -0
- package/Runtime/iOS/Plugins.meta +8 -0
- package/Runtime/iOS.meta +8 -0
- package/Runtime.meta +8 -0
- package/Tests/Editor/Chartboost.Mediation.Pangle.Tests.Editor.asmdef +26 -0
- package/Tests/Editor/Chartboost.Mediation.Pangle.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.Pangle.Tests.Runtime.asmdef +29 -0
- package/Tests/Runtime/Chartboost.Mediation.Pangle.Tests.Runtime.asmdef.meta +7 -0
- package/Tests/Runtime/PangleAdapterTests.cs +54 -0
- package/Tests/Runtime/PangleAdapterTests.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,23 @@
|
|
|
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 - Pangle Adapter.
|
|
7
|
+
|
|
8
|
+
#Added
|
|
9
|
+
- Support for the following `Pangle` dependencies. Notice adapter dependencies are optimistic and any patches and hot-fixes will be automatically picked up.:
|
|
10
|
+
* Android: `com.chartboost:chartboost-mediation-adapter-pangle:5.6.1.+`
|
|
11
|
+
* iOS: `ChartboostMediationAdapterPangle ~> 5.6.0.0.0`
|
|
12
|
+
|
|
13
|
+
- `PangleAdapter.cs` with Configuration Properties for `Pangle`.
|
|
14
|
+
- The following properties have been added in `PangleAdapter.cs`
|
|
15
|
+
* `string AdapterUnityVersion`
|
|
16
|
+
* `string AdapterNativeVersion`
|
|
17
|
+
* `string PartnerSDKVersion`
|
|
18
|
+
* `string PartnerIdentifier`
|
|
19
|
+
* `string PartnerDisplayName`
|
|
20
|
+
|
|
21
|
+
- The following methods have been added in `PangleAdapter.cs`
|
|
22
|
+
* `void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)`
|
|
23
|
+
* `void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<package>
|
|
3
|
+
<metadata>
|
|
4
|
+
<id>Chartboost.CSharp.Mediation.Unity.Adapter.Pangle</id>
|
|
5
|
+
<version>5.0.0</version>
|
|
6
|
+
<title>Chartboost Mediation Adapter - Pangle</title>
|
|
7
|
+
<description>The Chartboost Mediation Unity SDK Adapter for Pangle.</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, Pangle, cs</tags>
|
|
15
|
+
<repository type="git" url="https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle.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-pangle:5.6.1.+"/>
|
|
6
|
+
|
|
7
|
+
<!-- Pangle Android Repositories -->
|
|
8
|
+
<repositories>
|
|
9
|
+
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
|
10
|
+
</repositories>
|
|
11
|
+
</androidPackages>
|
|
12
|
+
<iosPods>
|
|
13
|
+
<!-- iOS Adapter -->
|
|
14
|
+
<iosPod name="ChartboostMediationAdapterPangle" version="~> 5.6.0.0.0"/>
|
|
15
|
+
|
|
16
|
+
<!-- Partner iOS SDK-->
|
|
17
|
+
<iosPod name="Ads-Global" version="~> 6.0.0.0" addToAllTargets="false"/>
|
|
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,104 @@
|
|
|
1
|
+
# Chartboost Mediation Unity SDK - Pangle 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.pangle/Editor/PangleAdapterDependencies.xml`.
|
|
6
|
+
|
|
7
|
+
# Installation
|
|
8
|
+
|
|
9
|
+
## Using the public [npm registry](https://www.npmjs.com/search?q=com.chartboost.mediation.unity.adapter.pangle)
|
|
10
|
+
|
|
11
|
+
In order to add the Chartboost Mediation Unity SDK - Pangle 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.pangle": "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.Pangle)
|
|
29
|
+
|
|
30
|
+
To add the Chartboost Mediation Unity SDK - Pangle 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.Pangle` 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.Pangle` package. Choose the appropriate version and install.
|
|
43
|
+
|
|
44
|
+
# AndroidManifest.xml Permissions
|
|
45
|
+
|
|
46
|
+
Add the required permissions to your app's `AndroidManifest.xml` file, as shown below.
|
|
47
|
+
|
|
48
|
+
```xml
|
|
49
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
50
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
# Usage
|
|
54
|
+
The following code block exemplifies usage of the `PangleAdapter.cs` configuration class.
|
|
55
|
+
|
|
56
|
+
## IPartnerAdapterConfiguration Properties
|
|
57
|
+
|
|
58
|
+
```csharp
|
|
59
|
+
|
|
60
|
+
// AdapterUnityVersion - The partner adapter Unity version, e.g: 5.0.0
|
|
61
|
+
Debug.Log($"Adapter Unity Version: {PangleAdapter.AdapterUnityVersion}");
|
|
62
|
+
|
|
63
|
+
// AdapterNativeVersion - The partner adapter version, e.g: 5.6.0.0.8.0
|
|
64
|
+
Debug.Log($"Adapter Native Version: {PangleAdapter.AdapterNativeVersion}");
|
|
65
|
+
|
|
66
|
+
// PartnerSDKVersion - The partner SDK version, e.g: 6.0.0.8
|
|
67
|
+
Debug.Log($"Partner SDK Version: {PangleAdapter.PartnerSDKVersion}");
|
|
68
|
+
|
|
69
|
+
// PartnerIdentifier - The partner ID for internal uses, e.g: pangle
|
|
70
|
+
Debug.Log($"Partner Identifier: {PangleAdapter.PartnerIdentifier}");
|
|
71
|
+
|
|
72
|
+
// PartnerDisplayName - The partner name for external uses, e.g: Pangle
|
|
73
|
+
Debug.Log($"Partner Display Name: {PangleAdapter.PartnerDisplayName}");
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Set GDPR Consent Override
|
|
77
|
+
|
|
78
|
+
Use to manually set the consent status on the Pangle SDK. This is generally unnecessary as the Mediation SDK will set the consent status automatically based on the latest consent info.
|
|
79
|
+
|
|
80
|
+
```csharp
|
|
81
|
+
// Consent
|
|
82
|
+
PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentConsent);
|
|
83
|
+
|
|
84
|
+
// No Consent
|
|
85
|
+
PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentNoConsent);
|
|
86
|
+
|
|
87
|
+
// Default
|
|
88
|
+
PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentTypeDefault);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Set Do Not Sell Override
|
|
92
|
+
Use to manually set the do not sell flag on the Pangle SDK. This is generally unnecessary as the Mediation SDK will set the consent flags automatically based on the latest consent info.
|
|
93
|
+
|
|
94
|
+
```csharp
|
|
95
|
+
// Sell
|
|
96
|
+
PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleGDoNotSellTypeSell);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
// Not Sell
|
|
100
|
+
PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleDoNotSellTypeNotSell);
|
|
101
|
+
|
|
102
|
+
// Default
|
|
103
|
+
PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleDoNotSellTypeDefault);
|
|
104
|
+
```
|
package/README.md.meta
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Pangle.Android",
|
|
3
|
+
"rootNamespace": "Chartboost.Mediation.Pangle.Android",
|
|
4
|
+
"references": [
|
|
5
|
+
"Chartboost.Threading",
|
|
6
|
+
"Chartboost.Logging",
|
|
7
|
+
"Chartboost.Mediation.Pangle",
|
|
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,75 @@
|
|
|
1
|
+
using Chartboost.Constants;
|
|
2
|
+
using Chartboost.Mediation.Pangle.Common;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace Chartboost.Mediation.Pangle.Android
|
|
6
|
+
{
|
|
7
|
+
internal partial class PangleAdapter : IPangleAdapter
|
|
8
|
+
{
|
|
9
|
+
private const string PangleAdapterConfiguration = "com.chartboost.mediation.pangleadapter.PangleAdapterConfiguration";
|
|
10
|
+
private const string FunctionSetGdprConsentOverride = "setGdprConsentOverride";
|
|
11
|
+
private const string FunctionSetDoNotSellOverride = "setDoNotSellOverride";
|
|
12
|
+
|
|
13
|
+
[RuntimeInitializeOnLoadMethod]
|
|
14
|
+
private static void RegisterInstance()
|
|
15
|
+
{
|
|
16
|
+
if (Application.isEditor)
|
|
17
|
+
return;
|
|
18
|
+
Pangle.PangleAdapter.Instance = new PangleAdapter();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/// <inheritdoc/>
|
|
22
|
+
public string AdapterNativeVersion
|
|
23
|
+
{
|
|
24
|
+
get
|
|
25
|
+
{
|
|
26
|
+
using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
|
|
27
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetAdapterVersion);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/// <inheritdoc/>
|
|
32
|
+
public string PartnerSDKVersion
|
|
33
|
+
{
|
|
34
|
+
get
|
|
35
|
+
{
|
|
36
|
+
using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
|
|
37
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerSdkVersion);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/// <inheritdoc/>
|
|
42
|
+
public string PartnerIdentifier
|
|
43
|
+
{
|
|
44
|
+
get
|
|
45
|
+
{
|
|
46
|
+
using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
|
|
47
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerId);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/// <inheritdoc/>
|
|
52
|
+
public string PartnerDisplayName
|
|
53
|
+
{
|
|
54
|
+
get
|
|
55
|
+
{
|
|
56
|
+
using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
|
|
57
|
+
return adapterConfiguration.Call<string>(SharedAndroidConstants.FunctionGetPartnerDisplayName);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/// <inheritdoc/>
|
|
62
|
+
public void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)
|
|
63
|
+
{
|
|
64
|
+
using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
|
|
65
|
+
adapterConfiguration.Call(FunctionSetGdprConsentOverride, (int)gdprConsent);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/// <inheritdoc/>
|
|
69
|
+
public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
|
|
70
|
+
{
|
|
71
|
+
using var adapterConfiguration = new AndroidJavaObject(PangleAdapterConfiguration);
|
|
72
|
+
adapterConfiguration.Call(FunctionSetDoNotSellOverride, (int)doNotSellType);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
using System.Runtime.CompilerServices;
|
|
2
|
+
using Chartboost.Mediation.Pangle;
|
|
3
|
+
using UnityEngine.Scripting;
|
|
4
|
+
|
|
5
|
+
[assembly: AlwaysLinkAssembly]
|
|
6
|
+
[assembly: InternalsVisibleTo(AssemblyInfo.PangleAssemblyInfoAndroid)]
|
|
7
|
+
[assembly: InternalsVisibleTo(AssemblyInfo.PangleAssemblyInfoIOS)]
|
|
8
|
+
|
|
9
|
+
namespace Chartboost.Mediation.Pangle
|
|
10
|
+
{
|
|
11
|
+
internal class AssemblyInfo
|
|
12
|
+
{
|
|
13
|
+
public const string PangleAssemblyInfoAndroid = "Chartboost.Mediation.Pangle.Android";
|
|
14
|
+
public const string PangleAssemblyInfoIOS = "Chartboost.Mediation.Pangle.IOS";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Pangle",
|
|
3
|
+
"rootNamespace": "Chartboost.Mediation.Pangle",
|
|
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,22 @@
|
|
|
1
|
+
using Chartboost.Mediation.Adapters;
|
|
2
|
+
|
|
3
|
+
namespace Chartboost.Mediation.Pangle.Common
|
|
4
|
+
{
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// The Chartboost Mediation Pangle adapter.
|
|
7
|
+
/// </summary>
|
|
8
|
+
internal interface IPangleAdapter : IPartnerAdapterConfiguration
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
/// Use to manually set the consent status on the Pangle SDK.
|
|
12
|
+
/// This is generally unnecessary as the Mediation SDK will set the consent status automatically based on the latest consent info.
|
|
13
|
+
/// </summary>
|
|
14
|
+
public void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent);
|
|
15
|
+
|
|
16
|
+
/// <summary>
|
|
17
|
+
/// Use to manually set the do not sell flag on the Pangle SDK.
|
|
18
|
+
/// This is generally unnecessary as the Mediation SDK will set the consent flags automatically based on the latest consent info.
|
|
19
|
+
/// </summary>
|
|
20
|
+
public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
using Chartboost.Logging;
|
|
2
|
+
using Chartboost.Mediation.Pangle.Common;
|
|
3
|
+
|
|
4
|
+
namespace Chartboost.Mediation.Pangle.Default
|
|
5
|
+
{
|
|
6
|
+
internal class PangleDefault : IPangleAdapter
|
|
7
|
+
{
|
|
8
|
+
/// <inheritdoc/>
|
|
9
|
+
public string AdapterNativeVersion => PangleAdapter.AdapterUnityVersion;
|
|
10
|
+
|
|
11
|
+
/// <inheritdoc/>
|
|
12
|
+
public string PartnerSDKVersion => PangleAdapter.AdapterUnityVersion;
|
|
13
|
+
|
|
14
|
+
/// <inheritdoc/>
|
|
15
|
+
public string PartnerIdentifier => "pangle";
|
|
16
|
+
|
|
17
|
+
/// <inheritdoc/>
|
|
18
|
+
public string PartnerDisplayName => "Pangle";
|
|
19
|
+
|
|
20
|
+
/// <inheritdoc/>
|
|
21
|
+
public void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)
|
|
22
|
+
=> LogController.Log($"{nameof(SetGDPRConsentOverride)} does nothing on {nameof(PangleDefault)}", LogLevel.Info);
|
|
23
|
+
|
|
24
|
+
/// <inheritdoc/>
|
|
25
|
+
public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
|
|
26
|
+
=> LogController.Log($"{nameof(SetDoNotSellOverride)} does nothing on {nameof(PangleDefault)}", LogLevel.Info);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
using Chartboost.Mediation.Adapters;
|
|
2
|
+
using Chartboost.Mediation.Pangle.Common;
|
|
3
|
+
using Chartboost.Mediation.Pangle.Default;
|
|
4
|
+
|
|
5
|
+
namespace Chartboost.Mediation.Pangle
|
|
6
|
+
{
|
|
7
|
+
/// <inheritdoc cref="IPangleAdapter"/>
|
|
8
|
+
public static class PangleAdapter
|
|
9
|
+
{
|
|
10
|
+
internal static IPangleAdapter Instance = new PangleDefault();
|
|
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="IPangleAdapter.SetGDPRConsentOverride"/>
|
|
30
|
+
public static void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)
|
|
31
|
+
=> Instance.SetGDPRConsentOverride(gdprConsent);
|
|
32
|
+
|
|
33
|
+
/// <inheritdoc cref="IPangleAdapter.SetDoNotSellOverride"/>
|
|
34
|
+
public static void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
|
|
35
|
+
=> Instance.SetDoNotSellOverride(doNotSellType);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Pangle.IOS",
|
|
3
|
+
"rootNamespace": "Chartboost.Mediation.Pangle.IOS",
|
|
4
|
+
"references": [
|
|
5
|
+
"Chartboost.Threading",
|
|
6
|
+
"Chartboost.Logging",
|
|
7
|
+
"Chartboost.Mediation.Pangle",
|
|
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,45 @@
|
|
|
1
|
+
using System.Runtime.InteropServices;
|
|
2
|
+
using Chartboost.Constants;
|
|
3
|
+
using Chartboost.Mediation.Pangle.Common;
|
|
4
|
+
using UnityEngine;
|
|
5
|
+
|
|
6
|
+
namespace Chartboost.Mediation.Pangle.IOS
|
|
7
|
+
{
|
|
8
|
+
internal sealed class PangleAdapter : IPangleAdapter
|
|
9
|
+
{
|
|
10
|
+
[RuntimeInitializeOnLoadMethod]
|
|
11
|
+
private static void RegisterInstance()
|
|
12
|
+
{
|
|
13
|
+
if (Application.isEditor)
|
|
14
|
+
return;
|
|
15
|
+
Pangle.PangleAdapter.Instance = new PangleAdapter();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/// <inheritdoc/>
|
|
19
|
+
public string AdapterNativeVersion => _CBMPangleAdapterAdapterVersion();
|
|
20
|
+
|
|
21
|
+
/// <inheritdoc/>
|
|
22
|
+
public string PartnerSDKVersion => _CBMPangleAdapterPartnerSDKVersion();
|
|
23
|
+
|
|
24
|
+
/// <inheritdoc/>
|
|
25
|
+
public string PartnerIdentifier => _CBMPangleAdapterPartnerId();
|
|
26
|
+
|
|
27
|
+
/// <inheritdoc/>
|
|
28
|
+
public string PartnerDisplayName => _CBMPangleAdapterPartnerDisplayName();
|
|
29
|
+
|
|
30
|
+
/// <inheritdoc/>
|
|
31
|
+
public void SetGDPRConsentOverride(PangleGDPRConsentType gdprConsent)
|
|
32
|
+
=> _CBMPangleAdapterSetGDPRConsentOverride((int)gdprConsent);
|
|
33
|
+
|
|
34
|
+
/// <inheritdoc/>
|
|
35
|
+
public void SetDoNotSellOverride(PangleDoNotSellType doNotSellType)
|
|
36
|
+
=> _CBMPangleAdapterSetDoNotSellOverride((int)doNotSellType);
|
|
37
|
+
|
|
38
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterAdapterVersion();
|
|
39
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterPartnerSDKVersion();
|
|
40
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterPartnerId();
|
|
41
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern string _CBMPangleAdapterPartnerDisplayName();
|
|
42
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMPangleAdapterSetGDPRConsentOverride(int gdprConsent);
|
|
43
|
+
[DllImport(SharedIOSConstants.DLLImport)] private static extern void _CBMPangleAdapterSetDoNotSellOverride(int doNotSellType);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#import "CBMDelegates.h"
|
|
2
|
+
#import "ChartboostUnityUtilities.h"
|
|
3
|
+
#import <PAGAdSDK/PAGSdk.h>
|
|
4
|
+
#import <ChartboostMediationAdapterPangle/ChartboostMediationAdapterPangle-Swift.h>
|
|
5
|
+
|
|
6
|
+
extern "C" {
|
|
7
|
+
|
|
8
|
+
const char * _CBMPangleAdapterAdapterVersion(){
|
|
9
|
+
return toCStringOrNull([PangleAdapterConfiguration adapterVersion]);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const char * _CBMPangleAdapterPartnerSDKVersion(){
|
|
13
|
+
return toCStringOrNull([PangleAdapterConfiguration partnerSDKVersion]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const char * _CBMPangleAdapterPartnerId(){
|
|
17
|
+
return toCStringOrNull([PangleAdapterConfiguration partnerID]);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const char * _CBMPangleAdapterPartnerDisplayName(){
|
|
21
|
+
return toCStringOrNull([PangleAdapterConfiguration partnerDisplayName]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
void _CBMPangleAdapterSetGDPRConsentOverride(int gdprConsent)
|
|
25
|
+
{
|
|
26
|
+
[PangleAdapterConfiguration setGDPRConsentOverride:(PAGGDPRConsentType)gdprConsent];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
void _CBMPangleAdapterSetDoNotSellOverride(int doNotSellType)
|
|
30
|
+
{
|
|
31
|
+
[PangleAdapterConfiguration setDoNotSellOverride:(PAGDoNotSellType)doNotSellType];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 5cc9454574d5246e3967456d6120dd71
|
|
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:
|
package/Runtime/iOS.meta
ADDED
package/Runtime.meta
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Pangle.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.Pangle"
|
|
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.Pangle;
|
|
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.pangle";
|
|
11
|
+
private const string NuGetPackageName = "Chartboost.CSharp.Mediation.Unity.Adapter.Pangle";
|
|
12
|
+
|
|
13
|
+
[SetUp]
|
|
14
|
+
public void SetUp()
|
|
15
|
+
=> LogController.LoggingLevel = LogLevel.Debug;
|
|
16
|
+
|
|
17
|
+
[Test]
|
|
18
|
+
public void ValidateVersion()
|
|
19
|
+
=> VersionCheck.ValidateVersions(UnityPackageManagerPackageName, NuGetPackageName, PangleAdapter.AdapterUnityVersion);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chartboost.Mediation.Pangle.Tests.Runtime",
|
|
3
|
+
"rootNamespace": "Chartboost.Tests",
|
|
4
|
+
"references": [
|
|
5
|
+
"UnityEngine.TestRunner",
|
|
6
|
+
"UnityEditor.TestRunner",
|
|
7
|
+
"Chartboost.Utilities",
|
|
8
|
+
"Chartboost.Mediation.Pangle",
|
|
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,54 @@
|
|
|
1
|
+
using Chartboost.Logging;
|
|
2
|
+
using Chartboost.Mediation.Pangle;
|
|
3
|
+
using Chartboost.Tests.Runtime;
|
|
4
|
+
using NUnit.Framework;
|
|
5
|
+
|
|
6
|
+
namespace Chartboost.Tests
|
|
7
|
+
{
|
|
8
|
+
internal class PangleAdapterTests
|
|
9
|
+
{
|
|
10
|
+
[SetUp]
|
|
11
|
+
public void SetUp()
|
|
12
|
+
=> LogController.LoggingLevel = LogLevel.Debug;
|
|
13
|
+
|
|
14
|
+
[Test]
|
|
15
|
+
public void AdapterNativeVersion()
|
|
16
|
+
=> TestUtilities.TestStringGetter(() => PangleAdapter.AdapterNativeVersion);
|
|
17
|
+
|
|
18
|
+
[Test]
|
|
19
|
+
public void PartnerSDKVersion()
|
|
20
|
+
=> TestUtilities.TestStringGetter(() => PangleAdapter.PartnerSDKVersion);
|
|
21
|
+
|
|
22
|
+
[Test]
|
|
23
|
+
public void PartnerIdentifier()
|
|
24
|
+
=> TestUtilities.TestStringGetter(() => PangleAdapter.PartnerIdentifier);
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
public void PartnerDisplayName()
|
|
28
|
+
=> TestUtilities.TestStringGetter(() => PangleAdapter.PartnerDisplayName);
|
|
29
|
+
|
|
30
|
+
[Test, Order(0)]
|
|
31
|
+
public void SetGDPRConsentConsent()
|
|
32
|
+
=> PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentConsent);
|
|
33
|
+
|
|
34
|
+
[Test, Order(1)]
|
|
35
|
+
public void SetGDPRConsentNoConsent()
|
|
36
|
+
=> PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentNoConsent);
|
|
37
|
+
|
|
38
|
+
[Test, Order(2)]
|
|
39
|
+
public void SetGDPRConsentDefault()
|
|
40
|
+
=> PangleAdapter.SetGDPRConsentOverride(PangleGDPRConsentType.PangleGDPRConsentTypeDefault);
|
|
41
|
+
|
|
42
|
+
[Test, Order(0)]
|
|
43
|
+
public void SetDoNotSellTypeSell()
|
|
44
|
+
=> PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleGDoNotSellTypeSell);
|
|
45
|
+
|
|
46
|
+
[Test, Order(1)]
|
|
47
|
+
public void SetDoNotSellTypeNotSell()
|
|
48
|
+
=> PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleDoNotSellTypeNotSell);
|
|
49
|
+
|
|
50
|
+
[Test, Order(2)]
|
|
51
|
+
public void SetDoNotSellTypeDefault()
|
|
52
|
+
=> PangleAdapter.SetDoNotSellOverride(PangleDoNotSellType.PangleDoNotSellTypeDefault);
|
|
53
|
+
}
|
|
54
|
+
}
|
package/Tests.meta
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "com.chartboost.mediation.unity.adapter.pangle",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"displayName": "Chartboost Mediation Adapter - Pangle",
|
|
5
|
+
"description": "The Chartboost Mediation Unity SDK Adapter for Pangle.",
|
|
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", "Pangle"],
|
|
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-pangle.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/ChartBoost/chartboost-mediation-unity-adapter-pangle/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.pangle/ "${PUBLIC_REPOSITORY_PATH}/"
|
|
17
|
+
|