From db49206413688c45d2afb2f59a208ef9b39613f9 Mon Sep 17 00:00:00 2001 From: Mobile Ads Developer Relations Date: Tue, 20 Aug 2024 20:59:21 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 665670385 --- Mintegral/CHANGELOG.md | 77 +++++++ Mintegral/CHANGELOG.md.meta | 7 + Mintegral/LICENSE | 202 ++++++++++++++++++ Mintegral/LICENSE.meta | 7 + Mintegral/README.md | 8 + Mintegral/README.md.meta | 7 + Mintegral/build.gradle | 99 +++++++++ Mintegral/build.gradle.meta | 7 + Mintegral/package.json | 21 ++ Mintegral/package.json.meta | 7 + Mintegral/source.meta | 8 + Mintegral/source/plugin.meta | 8 + Mintegral/source/plugin/Assets.meta | 8 + .../source/plugin/Assets/GoogleMobileAds.meta | 8 + .../Assets/GoogleMobileAds/Mediation.meta | 8 + .../GoogleMobileAds/Mediation/Mintegral.meta | 8 + .../Mediation/Mintegral/Api.meta | 8 + ...leMobileAds.Mediation.Mintegral.Api.asmdef | 19 ++ ...ileAds.Mediation.Mintegral.Api.asmdef.meta | 7 + .../Mediation/Mintegral/Api/Mintegral.cs | 34 +++ .../Mediation/Mintegral/Api/Mintegral.cs.meta | 11 + .../Mediation/Mintegral/Common.meta | 8 + ...obileAds.Mediation.Mintegral.Common.asmdef | 14 ++ ...Ads.Mediation.Mintegral.Common.asmdef.meta | 7 + .../Mintegral/Common/IMintegralClient.cs | 22 ++ .../Mintegral/Common/IMintegralClient.cs.meta | 11 + .../Mintegral/Common/PlaceholderClient.cs | 37 ++++ .../Common/PlaceholderClient.cs.meta | 11 + .../Mediation/Mintegral/Editor.meta | 8 + .../Editor/MintegralMediationDependencies.xml | 31 +++ .../MintegralMediationDependencies.xml.meta | 7 + .../Mediation/Mintegral/Platforms.meta | 8 + .../Mintegral/Platforms/Android.meta | 8 + ...bileAds.Mediation.Mintegral.Android.asmdef | 19 ++ ...ds.Mediation.Mintegral.Android.asmdef.meta | 7 + .../Platforms/Android/MintegralClient.cs | 90 ++++++++ .../Platforms/Android/MintegralClient.cs.meta | 11 + .../Mintegral/Platforms/Mediation.meta | 8 + ...eAds.Mediation.IronSource.Mediation.asmdef | 22 ++ ...Mediation.IronSource.Mediation.asmdef.meta | 7 + .../Mediation/MintegralClientFactory.cs | 38 ++++ .../Mediation/MintegralClientFactory.cs.meta | 11 + .../Mediation/Mintegral/Platforms/iOS.meta | 8 + .../Mintegral/Platforms/iOS/Externs.cs | 32 +++ .../Mintegral/Platforms/iOS/Externs.cs.meta | 11 + ...leMobileAds.Mediation.Mintegral.iOS.asmdef | 19 ++ ...ileAds.Mediation.Mintegral.iOS.asmdef.meta | 7 + .../Platforms/iOS/MintegralClient.cs | 46 ++++ .../Platforms/iOS/MintegralClient.cs.meta | 11 + .../Mediation/Mintegral/Plugins.meta | 8 + .../Mediation/Mintegral/Plugins/iOS.meta | 8 + .../Plugins/iOS/GADUMMintegralInterface.m | 23 ++ .../iOS/GADUMMintegralInterface.m.meta | 37 ++++ 53 files changed, 1164 insertions(+) create mode 100644 Mintegral/CHANGELOG.md create mode 100644 Mintegral/CHANGELOG.md.meta create mode 100644 Mintegral/LICENSE create mode 100644 Mintegral/LICENSE.meta create mode 100644 Mintegral/README.md create mode 100644 Mintegral/README.md.meta create mode 100644 Mintegral/build.gradle create mode 100644 Mintegral/build.gradle.meta create mode 100644 Mintegral/package.json create mode 100644 Mintegral/package.json.meta create mode 100644 Mintegral/source.meta create mode 100644 Mintegral/source/plugin.meta create mode 100644 Mintegral/source/plugin/Assets.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS.meta create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m create mode 100644 Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m.meta diff --git a/Mintegral/CHANGELOG.md b/Mintegral/CHANGELOG.md new file mode 100644 index 0000000..0eec95f --- /dev/null +++ b/Mintegral/CHANGELOG.md @@ -0,0 +1,77 @@ +## Mintegral Unity Mediation Plugin Changelog + +#### [Version 1.7.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.7.0.zip) +- Renamed `DummyClient` to `PlaceholderClient`. +- Supports [Mintegral Android adapter version 16.8.11.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-168110). +- Supports [Mintegral iOS adapter version 7.6.9.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7690). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.2.0. + +#### [Version 1.6.5](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.6.5.zip) +- Supports [Mintegral Android adapter version 16.7.81.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-167810). +- Supports [Mintegral iOS adapter version 7.6.8.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7680). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.2.0. + +#### [Version 1.6.4](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.6.4.zip) +- Supports [Mintegral Android adapter version 16.7.61.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-167610). +- Supports [Mintegral iOS adapter version 7.6.7.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7670). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0. + +#### [Version 1.6.3](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.6.3.zip) +- Supports [Mintegral Android adapter version 16.7.41.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-167410). +- Supports [Mintegral iOS adapter version 7.6.6.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7660). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0. + +#### [Version 1.6.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.6.2.zip) +- Supports [Mintegral Android adapter version 16.7.41.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-167410). +- Supports [Mintegral iOS adapter version 7.6.4.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7640). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0. + +#### [Version 1.6.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.6.1.zip) +- Supports [Mintegral Android adapter version 16.7.21.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-167210). +- Supports [Mintegral iOS adapter version 7.6.3.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7630). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0. + +#### [Version 1.6.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.6.0.zip) +- Supports [Mintegral Android adapter version 16.7.11.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-167110). +- Supports [Mintegral iOS adapter version 7.6.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7620). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0. + +#### [Version 1.5.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.5.0.zip) +- Supports [Mintegral Android adapter version 16.6.71.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-166710). +- Supports [Mintegral iOS adapter version 7.6.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7600). +- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0. + +#### [Version 1.4.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.4.0.zip) +- Supports [Mintegral Android adapter version 16.6.34.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-166340). +- Supports [Mintegral iOS adapter version 7.5.6.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7560). +- Built and tested with the Google Mobile Ads Unity Plugin version 8.7.0. + +#### [Version 1.3.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.3.0.zip) +- Supports [Mintegral Android adapter version 16.5.91.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-165910). +- Supports [Mintegral iOS adapter version 7.5.3.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7530). +- Added the following methods to the `Mintegral` class: + * `SetConsentStatus(bool)` + * `SetDoNotTrackStatus(bool)` +- Built and tested with the Google Mobile Ads Unity Plugin version 8.6.0. + +#### [Version 1.2.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.2.1.zip) +- Supports [Mintegral Android adapter version 16.4.61.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-164610). +- Supports [Mintegral iOS adapter version 7.3.8.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7380). +- Built and tested with the Google Mobile Ads Unity Plugin version 8.3.0. + +#### [Version 1.2.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.2.0.zip) +- Moved adapter content to `GoogleMobileAds/Mediation/Mintegral/`. +- Supports [Mintegral Android adapter version 16.4.41.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-164410). +- Supports [Mintegral iOS adapter version 7.3.6.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7360). +- Built and tested with the Google Mobile Ads Unity Plugin version 8.3.0. + +#### [Version 1.1.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.1.0.zip) +- Supports [Mintegral Android adapter version 16.3.61.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-163610). +- Supports [Mintegral iOS adapter version 7.2.9.1](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7291). +- Built and tested with the Google Mobile Ads Unity Plugin version 7.4.1. + +#### [Version 1.0.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mintegral/MintegralUnityAdapter-1.0.0.zip) +- Initial Release! +- Supports [Mintegral Android adapter version 16.2.61.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mintegral/CHANGELOG.md#version-162610). +- Supports [Mintegral iOS adapter version 7.2.6.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/Mintegral/CHANGELOG.md#version-7260). +- Built and tested with the Google Mobile Ads Unity Plugin version 7.3.1. diff --git a/Mintegral/CHANGELOG.md.meta b/Mintegral/CHANGELOG.md.meta new file mode 100644 index 0000000..e01f386 --- /dev/null +++ b/Mintegral/CHANGELOG.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ac26485d45aa14aa7b67551c3b4c0343 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/LICENSE b/Mintegral/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/Mintegral/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Mintegral/LICENSE.meta b/Mintegral/LICENSE.meta new file mode 100644 index 0000000..8360a35 --- /dev/null +++ b/Mintegral/LICENSE.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0d11b89cf014f425dae68d10e6cc5611 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/README.md b/Mintegral/README.md new file mode 100644 index 0000000..eef43e9 --- /dev/null +++ b/Mintegral/README.md @@ -0,0 +1,8 @@ +# Mintegral Adapter plugin for Google Mobile Ads SDK for Unity + +This is a plugin to be used in conjunction with the Google Mobile Ads SDK in +Unity. For requirements, instructions, and other info, see the +[Mintegral Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/mintegral). + +See the [changelog](https://developers.google.com/admob/unity/mediation/mintegral#mintegral-unity-mediation-plugin-changelog) +to view the version history. diff --git a/Mintegral/README.md.meta b/Mintegral/README.md.meta new file mode 100644 index 0000000..8da695c --- /dev/null +++ b/Mintegral/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 329032455a81c4a6e9150b7d6fcfd3a7 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/build.gradle b/Mintegral/build.gradle new file mode 100644 index 0000000..14911a4 --- /dev/null +++ b/Mintegral/build.gradle @@ -0,0 +1,99 @@ +/* +* Gradle file to build a Unity package to add Mintegral mediation support to the Google Mobile Ads Unity plugin. +* Usage: ./gradlew exportPackage +*/ +defaultTasks 'exportPackage' + +// Project level variables. +project.ext { + unity_exe = System.getProperty("UNITY_EXE") + if (unity_exe == null || unity_exe.isEmpty()) { + unity_exe = System.getenv("UNITY_EXE") + } + if (unity_exe == null || unity_exe.isEmpty()) { + unity_exe = '/Applications/Unity/Unity.app/Contents/MacOS/Unity' + } + + if (!file(unity_exe).exists()) { + throw new GradleException('Unable to locate installation of Unity. Please create a ' + + 'UNITY_EXE environment variable and point it to your Unity installation.') + } + + versionString = '1.7.0' + adapterName = 'Mintegral' + pluginName = "GoogleMobileAds${adapterName}Mediation" + pluginFileName = "${pluginName}.unitypackage" + zipName = "${adapterName}UnityAdapter-${versionString}" + zipFileName = "${zipName}.zip" + pluginSource = file('source/plugin').absolutePath + pluginBuildDir = file('temp/plugin-build-dir').absolutePath + buildPath = file('temp').absolutePath + exportPath = file(pluginFileName).absolutePath +} + +// Build unity package using through command line interface. +// Create new unity project with files in temporary build directory and export files to a unity package. +// Command line usage and arguments documented at http://docs.unity3d.com/Manual/CommandLineArguments.html. +task exportPackage(type: Exec) { + description = "Creates and exports the Plugin unity package" + executable "${unity_exe}" + args "-g.building", + "-batchmode", + "-projectPath", "${pluginBuildDir}", + "-logFile", "temp/unity.log", + "-exportPackage", + "Assets/GoogleMobileAds", + "${exportPath}", + "-quit" + + ignoreExitValue true + + doLast { + if (executionResult.get().exitValue != 0) { + copy { + from "temp/" + into "./" + include "unity.log" + } + } + } +} + +task createTempBuildFolder(type: Copy) { + from { "${pluginSource}" } + into { "${pluginBuildDir}" } +} + +task clearTempBuildFolder(type: Delete) { + delete { "${buildPath}" } +} + +exportPackage.dependsOn(createTempBuildFolder) +exportPackage.finalizedBy(clearTempBuildFolder) + +/** + * Delete task to delete any previously generated .zip files by makeZip task. + * makeZip depends on this task. + */ +task clearZip(type: Delete) { + // Targets to be deleted. + delete(zipFileName) +} + +/** + * Zip task to make a zip archive. This task depends on exportPackage and clearZip tasks. + */ +task makeZip(type: Zip) { + // Targets to be added to the zip archive. + from('./' + pluginFileName, './README.md') + from('./' + pluginFileName, './LICENSE') + // Root directory name for the zip archive. + into(zipName) + // Name of the zip archive. + archiveFileName = zipFileName + // Destination directory in which the archive needs to be saved. + destinationDirectory = file('.') +} + +makeZip.dependsOn([clearZip, exportPackage]) +makeZip.mustRunAfter([clearZip, exportPackage]) diff --git a/Mintegral/build.gradle.meta b/Mintegral/build.gradle.meta new file mode 100644 index 0000000..ee5edf9 --- /dev/null +++ b/Mintegral/build.gradle.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 93312b3241ece424bb8dd6d93fb87118 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/package.json b/Mintegral/package.json new file mode 100644 index 0000000..7c5dbb8 --- /dev/null +++ b/Mintegral/package.json @@ -0,0 +1,21 @@ +{ + "name": "com.google.ads.mobile.mediation.mintegral", + "version": "1.7.0", + "displayName": "Google Mobile Ads Mintegral Mediation", + "keywords": [ + "Google", + "Mobile", + "Ads", + "vh-name:GoogleMobileAdsMediationMintegral", + "vh-name:Google Mobile Ads Mintegral Mediation" + ], + "author": { + "name": "Google LLC", + "url": "https://github.com/googleads/googleads-mobile-unity-mediation" + }, + "description": "The Google Mobile Ads mediation plugin for Mintegral package allows you to load and display ads from Mintegral using mediation, covering waterfall and bidding integrations.", + "unity": "2019.4", + "dependencies": { + "com.google.ads.mobile": "9.0.0" + } +} diff --git a/Mintegral/package.json.meta b/Mintegral/package.json.meta new file mode 100644 index 0000000..ddca4a8 --- /dev/null +++ b/Mintegral/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4e159fd07d3394d6e8cedd9ae8a118c7 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source.meta b/Mintegral/source.meta new file mode 100644 index 0000000..9e1946d --- /dev/null +++ b/Mintegral/source.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a95a4a305018b4e91af1b4ae6c49c11c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin.meta b/Mintegral/source/plugin.meta new file mode 100644 index 0000000..47170c4 --- /dev/null +++ b/Mintegral/source/plugin.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c3e5c62e754294ea883592e1f307dc37 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets.meta b/Mintegral/source/plugin/Assets.meta new file mode 100644 index 0000000..23dacfb --- /dev/null +++ b/Mintegral/source/plugin/Assets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 87481fa26e69549429ae1d872abb1bb8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds.meta new file mode 100644 index 0000000..11ae0e5 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0dc0510162a4049a8a04217694640b79 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation.meta new file mode 100644 index 0000000..bb15f12 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ce1116986114c4d7fb831cc1857465c7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral.meta new file mode 100644 index 0000000..9935783 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: deeff788df3ea41349d157dc606f9a6a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api.meta new file mode 100644 index 0000000..c0bc7ac --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d9667cd10b33a45728f44fb33ea09a66 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef new file mode 100644 index 0000000..4814412 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef @@ -0,0 +1,19 @@ +{ + "name": "GoogleMobileAds.Mediation.Mintegral.Api", + "rootNamespace": "", + "references": [ + "GoogleMobileAds.Api.Mediation", + "GoogleMobileAds.Mediation.Mintegral.Common", + "GoogleMobileAds.Mediation.Mintegral.Mediation" + ], + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef.meta new file mode 100644 index 0000000..a52f2ed --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/GoogleMobileAds.Mediation.Mintegral.Api.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0824549bcd7cf40a4aad91ad28887d2c +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs new file mode 100644 index 0000000..6531049 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs @@ -0,0 +1,34 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using GoogleMobileAds.Mediation.Mintegral.Common; + +namespace GoogleMobileAds.Mediation.Mintegral.Api +{ + public class Mintegral + { + public static readonly IMintegralClient client = + MintegralClientFactory.MintegralInstance(); + + public static void SetConsentStatus(bool consentStatus) + { + client.SetConsentStatus(consentStatus); + } + + public static void SetDoNotTrackStatus(bool doNotTrack) + { + client.SetDoNotTrackStatus(doNotTrack); + } + } +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs.meta new file mode 100644 index 0000000..54eaabd --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Api/Mintegral.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0dfc335ee00f641fea2f082f44c2e3cd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common.meta new file mode 100644 index 0000000..3c43ffb --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cbe659c22dcd047ca8d5e0dff7084315 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef new file mode 100644 index 0000000..cc206cc --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef @@ -0,0 +1,14 @@ +{ + "name": "GoogleMobileAds.Mediation.Mintegral.Common", + "rootNamespace": "", + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef.meta new file mode 100644 index 0000000..cc1a17d --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/GoogleMobileAds.Mediation.Mintegral.Common.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bf4722b58d7b44f49be759b9d7e2324a +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs new file mode 100644 index 0000000..52c63b7 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs @@ -0,0 +1,22 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace GoogleMobileAds.Mediation.Mintegral.Common +{ + public interface IMintegralClient + { + void SetConsentStatus(bool consentStatus); + void SetDoNotTrackStatus(bool doNotTrack); + } +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs.meta new file mode 100644 index 0000000..59df984 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/IMintegralClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 659650c26d72849e28cd12c22af01dd6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs new file mode 100644 index 0000000..f32fefc --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs @@ -0,0 +1,37 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Reflection; +using UnityEngine; + +namespace GoogleMobileAds.Mediation.Mintegral.Common +{ + public class PlaceholderClient : IMintegralClient + { + public PlaceholderClient() + { + Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name); + } + + public void SetConsentStatus(bool consentStatus) + { + Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name); + } + + public void SetDoNotTrackStatus(bool doNotTrack) + { + Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name); + } + } +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs.meta new file mode 100644 index 0000000..a035d70 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Common/PlaceholderClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a093bea09000d4073b00ef2980e476aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor.meta new file mode 100644 index 0000000..fe2ad41 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0b6f696efca874480b9330e7957f7d0f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml new file mode 100644 index 0000000..ed863dc --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml @@ -0,0 +1,31 @@ + + + + + + + https://repo.maven.apache.org/maven2/ + https://dl.google.com/dl/android/maven2/ + https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea + + + + + + + + diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml.meta new file mode 100644 index 0000000..ea3120e --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Editor/MintegralMediationDependencies.xml.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 75ad3e4fee1c34ca49ecab35ba922676 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms.meta new file mode 100644 index 0000000..2c73e89 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a814c44e804b949cebfd1bc91c454be7 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android.meta new file mode 100644 index 0000000..e1cc260 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7bd217356809b401faf9d9ee6ce2836b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef new file mode 100644 index 0000000..fbf8e98 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef @@ -0,0 +1,19 @@ +{ + "name": "GoogleMobileAds.Mediation.Mintegral.Android", + "rootNamespace": "", + "references": [ + "GoogleMobileAds.Mediation.Mintegral.Common" + ], + "includePlatforms": [ + "Android", + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef.meta new file mode 100644 index 0000000..f4439cb --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/GoogleMobileAds.Mediation.Mintegral.Android.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 53dff7d57ae234cdd92bc0f5c3872114 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs new file mode 100644 index 0000000..f90c911 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs @@ -0,0 +1,90 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#if UNITY_ANDROID + +using UnityEngine; + +using GoogleMobileAds.Mediation.Mintegral.Common; + +namespace GoogleMobileAds.Mediation.Mintegral.Android +{ + public class MintegralClient : IMintegralClient + { + private static MintegralClient instance = new MintegralClient(); + private MintegralClient() { } + + private const string MintegralSDKClassName = "com.mbridge.msdk.MBridgeSDK"; + private const string MintegralSDKFactoryClassName = + "com.mbridge.msdk.out.MBridgeSDKFactory"; + private const string MintegralConstantsClassName = + "com.mbridge.msdk.MBridgeConstans"; + + public static MintegralClient Instance + { + get + { + return instance; + } + } + + // Public methods + + public void SetConsentStatus(bool consentStatus) + { + AndroidJavaClass MintegralFactory = + new AndroidJavaClass(MintegralSDKFactoryClassName); + AndroidJavaObject MintegralSDK = + MintegralFactory.CallStatic("getMBridgeSDK"); + + MintegralSDK.Call("setConsentStatus", + getAndroidCurrentActivity(), + getMintegralConstantFromConsentStatus(consentStatus)); + } + + public void SetDoNotTrackStatus(bool doNotTrack) + { + AndroidJavaClass MintegralFactory = + new AndroidJavaClass(MintegralSDKFactoryClassName); + AndroidJavaObject MintegralSDK = + MintegralFactory.CallStatic("getMBridgeSDK"); + + MintegralSDK.Call("setDoNotTrackStatus", doNotTrack); + } + + // Private utility methods + + private AndroidJavaObject getAndroidCurrentActivity() + { + AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); + AndroidJavaObject currentActivity = + unityPlayer.GetStatic("currentActivity"); + return currentActivity; + } + + private int getMintegralConstantFromConsentStatus(bool consentStatus) + { + AndroidJavaClass MintegralConstants = + new AndroidJavaClass(MintegralConstantsClassName); + + if (consentStatus == true) { + return MintegralConstants.GetStatic("IS_SWITCH_ON"); + } + + return MintegralConstants.GetStatic("IS_SWITCH_OFF"); + } + } +} + +#endif diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs.meta new file mode 100644 index 0000000..4d63306 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Android/MintegralClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 10e83c4b7cc6744ebaed7560aa031494 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation.meta new file mode 100644 index 0000000..21a3620 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bbb24c646d1b843b58bd2f87cccec9a4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef new file mode 100644 index 0000000..1384a4b --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef @@ -0,0 +1,22 @@ +{ + "name": "GoogleMobileAds.Mediation.Mintegral.Mediation", + "rootNamespace": "", + "references": [ + "GoogleMobileAds.Mediation.Mintegral.Common", + "GoogleMobileAds.Mediation.Mintegral.Android", + "GoogleMobileAds.Mediation.Mintegral.iOS" + ], + "includePlatforms": [ + "Editor", + "Android", + "iOS" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef.meta new file mode 100644 index 0000000..38e723f --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/GoogleMobileAds.Mediation.IronSource.Mediation.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e25abb5598714445898973fae6c77ea2 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs new file mode 100644 index 0000000..1cb707c --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs @@ -0,0 +1,38 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; +using System.Collections; +using UnityEngine; + +using GoogleMobileAds.Mediation.Mintegral.Common; + +namespace GoogleMobileAds.Mediation.Mintegral +{ + public class MintegralClientFactory + { + public static IMintegralClient MintegralInstance() + { +#if UNITY_EDITOR + return new GoogleMobileAds.Mediation.Mintegral.Common.PlaceholderClient(); +#elif UNITY_ANDROID + return GoogleMobileAds.Mediation.Mintegral.Android.MintegralClient.Instance; +#elif UNITY_IOS + return GoogleMobileAds.Mediation.Mintegral.iOS.MintegralClient.Instance; +#else + return new GoogleMobileAds.Mediation.Mintegral.Common.PlaceholderClient(); +#endif + } + } +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs.meta new file mode 100644 index 0000000..7eb99e9 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/Mediation/MintegralClientFactory.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a28adf207a01c4143affd5e0d51e8303 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS.meta new file mode 100644 index 0000000..22ef92d --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: df3bbbd663c9e44938e5f92f39cbab75 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs new file mode 100644 index 0000000..dc885d0 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs @@ -0,0 +1,32 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#if UNITY_IOS + +using System.Runtime.InteropServices; + +namespace GoogleMobileAds.Mediation.Mintegral.iOS +{ + // Externs used by the iOS component. + internal class Externs + { + [DllImport("__Internal")] + internal static extern void GADUMMintegralSetConsentStatus(bool consentStatus); + + [DllImport("__Internal")] + internal static extern void GADUMMintegralSetDoNotTrackStatus(bool doNotTrack); + } +} + +#endif diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs.meta new file mode 100644 index 0000000..1a36437 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/Externs.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 583dcd2f6104145d4a9a79ea1f2e1264 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef new file mode 100644 index 0000000..4a73b65 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef @@ -0,0 +1,19 @@ +{ + "name": "GoogleMobileAds.Mediation.Mintegral.iOS", + "rootNamespace": "", + "references": [ + "GoogleMobileAds.Mediation.Mintegral.Common" + ], + "includePlatforms": [ + "Editor", + "iOS" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef.meta new file mode 100644 index 0000000..f5962e2 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/GoogleMobileAds.Mediation.Mintegral.iOS.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: cb4b8686895b04dc8a78b92fdc5d5633 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs new file mode 100644 index 0000000..c0d66ed --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs @@ -0,0 +1,46 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#if UNITY_IOS + +using GoogleMobileAds.Mediation.Mintegral.Common; + +namespace GoogleMobileAds.Mediation.Mintegral.iOS +{ + public class MintegralClient : IMintegralClient + { + private static MintegralClient instance = new MintegralClient(); + private MintegralClient() { } + + public static MintegralClient Instance + { + get + { + return instance; + } + } + + public void SetConsentStatus(bool consentStatus) + { + Externs.GADUMMintegralSetConsentStatus(consentStatus); + } + + public void SetDoNotTrackStatus(bool doNotTrack) + { + Externs.GADUMMintegralSetDoNotTrackStatus(doNotTrack); + } + } +} + +#endif diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs.meta new file mode 100644 index 0000000..54b7f8e --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Platforms/iOS/MintegralClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe56284fb47594ded94ec74532ce7166 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins.meta new file mode 100644 index 0000000..d66801d --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3b3b6bbd25b4044f385441b6575c56d5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS.meta new file mode 100644 index 0000000..fffad5c --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8e6716b26a37f4ba484a94b89d3f9880 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m new file mode 100644 index 0000000..5ece487 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m @@ -0,0 +1,23 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#import + +void GADUMMintegralSetConsentStatus(bool consentStatus) { + [[MTGSDK sharedInstance] setConsentStatus:consentStatus]; +} + +void GADUMMintegralSetDoNotTrackStatus(bool doNotTrack) { + [[MTGSDK sharedInstance] setDoNotTrackStatus:doNotTrack]; +} diff --git a/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m.meta b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m.meta new file mode 100644 index 0000000..06be0b0 --- /dev/null +++ b/Mintegral/source/plugin/Assets/GoogleMobileAds/Mediation/Mintegral/Plugins/iOS/GADUMMintegralInterface.m.meta @@ -0,0 +1,37 @@ +fileFormatVersion: 2 +guid: 2697f967968754523b75e8e331299acd +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + iPhone: iOS + second: + enabled: 1 + settings: {} + - first: + tvOS: tvOS + second: + enabled: 1 + settings: {} + userData: + assetBundleName: + assetBundleVariant: