Page 1 of 2
Does Love-Android-SDL2 Support In-App Purchases?
Posted: Sat Dec 05, 2015 12:30 am
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?
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Sat Dec 19, 2015 11:20 pm
by TheWaffleDimension
Anyone? If it doesn't, just say no. Thanks!
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Sun Dec 20, 2015 7:05 am
by bobbyjones
It doesn't. But you can hack it in using ffi I think.
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Mon Dec 21, 2015 8:17 pm
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.
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Tue Dec 22, 2015 5:00 am
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.
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Tue Dec 22, 2015 5:34 pm
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?
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Tue Dec 22, 2015 6:04 pm
by undef
I suggest you follow the link I provided, read the documentation and do the tutorial.
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Tue Dec 22, 2015 7:15 pm
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.
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Wed Dec 23, 2015 12:01 am
by mflerackers
There are no C/C++ functions fo IAP, you need to use JNI to call the Java methods.
Re: Does Love-Android-SDL2 Support In-App Purchases?
Posted: Wed Dec 23, 2015 12:45 am
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.
I've never programmed with C, so I meant how would I start with C?