-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create MetaFBAdSettings and MetaModule #59
- Loading branch information
Showing
6 changed files
with
151 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
PoingGodotAdMob/src/mediation/meta/PoingGodotAdMobMetaFBAdSettings.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// MIT License | ||
// | ||
// Copyright (c) 2023-present Poing Studios | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all | ||
// copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
// SOFTWARE. | ||
|
||
#ifndef PoingGodotAdMobMetaFBAdSettings_h | ||
#define PoingGodotAdMobMetaFBAdSettings_h | ||
|
||
#include "core/object/class_db.h" | ||
#include "core/version.h" | ||
|
||
class PoingGodotAdMobMetaFBAdSettings : public Object { | ||
|
||
GDCLASS(PoingGodotAdMobMetaFBAdSettings, Object); | ||
|
||
static PoingGodotAdMobMetaFBAdSettings *instance; | ||
static void _bind_methods(); | ||
|
||
public: | ||
void set_advertiser_tracking_enabled(bool tracking_required); | ||
|
||
static PoingGodotAdMobMetaFBAdSettings *get_singleton(); | ||
|
||
PoingGodotAdMobMetaFBAdSettings(); | ||
~PoingGodotAdMobMetaFBAdSettings(); | ||
private: | ||
static PoingGodotAdMobMetaFBAdSettings *options; | ||
}; | ||
|
||
|
||
#endif /* PoingGodotAdMobMetaFBAdSettings_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
PoingGodotAdMob/src/mediation/meta/PoingGodotAdMobMetaModule.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// MIT License | ||
// | ||
// Copyright (c) 2023-present Poing Studios | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all | ||
// copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
// SOFTWARE. | ||
|
||
#import "PoingGodotAdMobMetaModule.h" | ||
#include "PoingGodotAdMobMetaFBAdSettings.h" | ||
|
||
#import <Foundation/Foundation.h> | ||
#include "core/config/engine.h" | ||
#include "core/version.h" | ||
|
||
PoingGodotAdMobMetaFBAdSettings *poing_godot_admob_meta_app_options; | ||
|
||
void register_poing_godot_admob_adcolony_types() { | ||
poing_godot_admob_meta_app_options = memnew(PoingGodotAdMobMetaFBAdSettings); | ||
Engine::get_singleton()->add_singleton(Engine::Singleton("PoingGodotAdMobMetaFBAdSettings", poing_godot_admob_meta_app_options)); | ||
} | ||
|
||
void unregister_poing_godot_admob_adcolony_types() { | ||
if (poing_godot_admob_meta_app_options) { | ||
memdelete(poing_godot_admob_meta_app_options); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
PoingGodotAdMob/src/mediation/meta/config/poing-godot-admob-meta.gdip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[config] | ||
name="AdMob Meta" | ||
binary="poing-godot-admob/bin/poing-godot-admob-meta.a" | ||
|
||
initialization="register_poing_godot_admob_meta_types" | ||
deinitialization="unregister_poing_godot_admob_meta_types" | ||
|
||
[dependencies] | ||
linked=[] | ||
embedded=[] | ||
system=[] | ||
capabilities=[] | ||
files=[] | ||
linker_flags=[] | ||
|
||
[plist] |