Page 1 of 1

native extension for iOS/Android

Posted: Wed Oct 16, 2019 7:46 pm
by borr
1.How do I create an extension for love2d?
2.Where can I find an example of native extensions for InApp Purchase, Analytics Services, Social, Ads Services etc?

Primarily interested in mobile platforms.
Thanks!

Re: native extension for iOS/Android

Posted: Thu Oct 17, 2019 9:52 am
by gianmichele
Unfortunately there is not a plugin hook into the engine, but you'll have to add it to the source yourself and create the lua wrapper for the extension and a custom build.

Good examples are here:

https://love2d.org/forums/viewtopic.php ... 26#p219426
https://love2d.org/forums/viewtopic.php ... 47#p214447

I guess this and a supported web version are what made me look to other lua engines.

Re: native extension for iOS/Android

Posted: Thu Oct 17, 2019 10:19 am
by borr
thanks for your reply!

>I guess this and a supported web version are what made me look to other lua engines.

What is your choice?