Does Love-Android-SDL2 Support In-App Purchases?

A project to port LÖVE to Android handhelds
TheWaffleDimension
Prole
Posts: 14
Joined: Wed Dec 02, 2015 11:14 pm

Does Love-Android-SDL2 Support In-App Purchases?

Post by TheWaffleDimension »

I would like to create a feature that uses in-app purchases, and would like to know if the Android SDL2 supports them. If so, how would I go about using them?
TheWaffleDimension
Prole
Posts: 14
Joined: Wed Dec 02, 2015 11:14 pm

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by TheWaffleDimension »

Anyone? If it doesn't, just say no. Thanks!
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by bobbyjones »

It doesn't. But you can hack it in using ffi I think.
TheWaffleDimension
Prole
Posts: 14
Joined: Wed Dec 02, 2015 11:14 pm

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by TheWaffleDimension »

bobbyjones wrote:It doesn't. But you can hack it in using ffi I think.
I'm assuming you mean the LibFFI? And how would I go about hacking it in using FFI? I've barely touched Java, but I'm intermediate with Lua. I do know Python, if that helps.
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by undef »

LÖVE uses LuaJIT, which has an excellent ffi.
If you read into it you can bind C functions to Lua, so you might be able to add IAPs like that.
twitter | steam | indieDB

Check out quadrant on Steam!
TheWaffleDimension
Prole
Posts: 14
Joined: Wed Dec 02, 2015 11:14 pm

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by TheWaffleDimension »

undef wrote:LÖVE uses LuaJIT, which has an excellent ffi.
If you read into it you can bind C functions to Lua, so you might be able to add IAPs like that.
How would you suggest I start with it?
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by undef »

I suggest you follow the link I provided, read the documentation and do the tutorial.
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
Guard13007
Party member
Posts: 133
Joined: Sat Oct 25, 2014 3:42 am
Location: Internet, USA
Contact:

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by Guard13007 »

undef wrote:LÖVE uses LuaJIT, which has an excellent ffi.
If you read into it you can bind C functions to Lua, so you might be able to add IAPs like that.
Where would one find the C functions needed for IAPs?

Sorry if that's a dumb question, but I am completely unfamiliar with it. FFI makes sense to me, but I don't know what I need past that.
mflerackers
Prole
Posts: 1
Joined: Tue Dec 22, 2015 11:59 pm

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by mflerackers »

There are no C/C++ functions fo IAP, you need to use JNI to call the Java methods.
TheWaffleDimension
Prole
Posts: 14
Joined: Wed Dec 02, 2015 11:14 pm

Re: Does Love-Android-SDL2 Support In-App Purchases?

Post by TheWaffleDimension »

undef wrote:I suggest you follow the link I provided, read the documentation and do the tutorial.
I felt a little bit of a bite from that. But it's fine. :P
I've never programmed with C, so I meant how would I start with C?
Locked

Who is online

Users browsing this forum: No registered users and 0 guests