简体   繁体   English

iOS 上 libGDX 游戏中的 AdMob

[英]AdMob in libGDX game on iOS

My question might seem quite easy for you, but I have no experience at this point.我的问题对你来说似乎很容易,但我目前没有经验。

I want to implement AdMob in libGDX game on iOS devices(it's already implemented in Android version).我想在 iOS 设备上的 libGDX 游戏中实现 AdMob(它已经在 Android 版本中实现了)。 Unlucky examples on Admob website targets Swift and Objective-C. Admob 网站上的不幸示例针对 Swift 和 Objective-C。

I've found something like RoboVM iOS Bindings , but last commit was on 16 Feb 2015.我发现了类似RoboVM iOS Bindings 的东西,但最后一次提交是在 2015 年 2 月 16 日。

So i need to ask - is this still good and acceptable way to implement AdMob in libGDX iOS projects?所以我需要问 - 这仍然是在 libGDX iOS 项目中实施 AdMob 的好方法和可接受的方法吗?

I've found some questions that involves both - libGDX and AdMob, but from 2013.我发现了一些涉及 libGDX 和 AdMob 的问题,但从 2013 年开始。

Check this , last commit 10 months ago.检查这个,最后一次提交是在 10 个月前。

robovm-robopods repository under MobiVM hood. MobiVM 引擎盖下的 robovm -robopods存储库。

You can use 2.2.2 version of robovm-robopods您可以使用2.2.2版本的 robovm-robopods

Inject in this way :以这种方式注入:

implementation "com.mobidevelop.robovm:robopods-google-mobile-ads-ios:2.2.2"

If you like to use SNAPSHOT version, use SNAPSHOT version如果您喜欢使用 SNAPSHOT 版本,请使用 SNAPSHOT 版本

implementation "com.mobidevelop.robovm:robopods-google-mobile-ads-ios:2.2.3-SNAPSHOT"

If you're using older version of android gradle plugin replace implementation with compile如果您使用的是旧版本的 android gradle 插件,请将implementation替换为compile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM