Using lua-https module on Android before love 12.0

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
_JM_
Prole
Posts: 11
Joined: Thu Mar 30, 2023 9:06 pm
Contact:

Using lua-https module on Android before love 12.0

Post by _JM_ »

I am trying follow this to allow use the https module on Android. Even doing all the steps, it isn't working.
The steps are (for what I understood):
  • create folder named 'lua-https' on '<love-android>/love/src/jni/lua-modules'
  • Put the lua https source code there
  • Generate the apk using the command 'gradlew assembleEmbedNoRecordRelease'
When I try the code below it keep me saying the module wasn't found.

Code: Select all

local https
do
    local success, result = pcall(function()
        return require "https"
    end)
    https = success and result or https
end
assert(https, "not found https")
This same code works with no problem on my PC, the only problem is on Android.
So, how can I build an apk which can use the lua-https module ?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], knorke and 7 guests