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 » Sat Dec 05, 2015 12:30 am

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 » Sat Dec 19, 2015 11:20 pm

Anyone? If it doesn't, just say no. Thanks!

bobbyjones
Party member
Posts: 720
Joined: Sat Apr 26, 2014 7:46 pm

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

Post by bobbyjones » Sun Dec 20, 2015 7:05 am

It doesn't. But you can hack it in using ffi I think.
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

TheWaffleDimension
Prole
Posts: 14
Joined: Wed Dec 02, 2015 11:14 pm

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

Post by TheWaffleDimension » Mon Dec 21, 2015 8:17 pm

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 » Tue Dec 22, 2015 5:00 am

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 » Tue Dec 22, 2015 5:34 pm

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 » Tue Dec 22, 2015 6:04 pm

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: 126
Joined: Sat Oct 25, 2014 3:42 am
Location: Internet, USA
Contact:

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

Post by Guard13007 » Tue Dec 22, 2015 7:15 pm

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 » Wed Dec 23, 2015 12:01 am

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 » Wed Dec 23, 2015 12:45 am

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 3 guests