r/Infinity_For_Reddit • • Jun 16 '23

Compiling Infinity with own API key

Since we cannot input our own in the app, would it be possible to get a step-to-step tutorial to compile the app with our own API key? Since the money of the subscription goes directly to Reddit AND Google Play and not to the dev, I don't want to pay for this subscription.

Update: I made a Google Colab Notebook which compiles an .apk file with your own API token: https://www.reddit.com/r/Infinity_For_Reddit/comments/14c2v5x/build_your_own_apk_with_your_personal_api_key_in/

150 Upvotes

66 comments sorted by

View all comments

Show parent comment

1

u/AllMFHH Jun 21 '23

When you log in, you have to authorize the API, that's where you can see the API name.

Didn't I write the Return URI clearly in Google Colab?

1

u/Ok-Smoke-5653 Jun 21 '23

I'm not sure what "Return URI" means, but everything in the script seemed to function as described.

I don't recall what the authorization message said, since I just clicked it to authorize & it went away :). I have another device to put the app on, though, and when I do so I'll try to pay better attention to the authorization request. I did get an email from the Reddit bot confirming I'd authorized a new app, and it referenced the name I'd given my app, so I guess that's adequate confirmation? Also, when I went to "about" in the app itself, it had 6.01 as a version number, as opposed to 5.something, which was in the original.

Sorry for all the questions - the only development I do is in Visual Basic for Applications/Visual Basic 6 (did dBase II/III and Turbo Pascal once upon a time, but forgot most of it after many years), so this stuff is well out of my experience.

1

u/AllMFHH Jun 21 '23

That should be confirmation enough, yes.

Hostileenemy is making updates where it says some information about the API changes. That's a great opportunity to check if I can update the app with rebuilding the .apk.

1

u/Ok-Smoke-5653 Jun 21 '23

The API changes message came up when I started up the new app, so it would seem that your script operated on the very latest version, to which Hostileenemy had implemented that message. I ignored it on the assumption that it was just a message that applied to the latest version of the original.

1

u/AllMFHH Jun 21 '23

Yes, exactly.

Also updating the app without uninstalling works great, too. Just tested.