Sergey Lerg
For the new system integration you would need your Patreon email address and a special access key, that you get when you make a pledge (2nd tier or higher is required).
Paste that block at the top of your build.settings
file, before the settings
table.
local spiralcodestudio_patreon_email = 'YOUR_EMAIL'
local spiralcodestudio_key = 'YOUR_ACCESS_KEY'
local function spiralcodestudio_plugin(name)
local plugin = {publisherId = 'com.spiralcodestudio', supportedPlatforms = {}}
local platforms = {'android', 'appletvos', 'appletvsimulator', 'iphone', 'iphone-sim', 'mac-sim', 'win32-sim'}
for i = 1, #platforms do
local platform = platforms[i]
plugin.supportedPlatforms[platform] = {url = 'https://build.spiralcodestudio.com/' .. spiralcodestudio_patreon_email .. '/' .. spiralcodestudio_key .. '/solar2d/' .. name .. '_' .. platform .. '.tgz'}
end
return plugin
end
Now you can use this function to prepare a listing for a plugin like so
settings = {
-- ...
plugins = {
['plugin.qrscanner'] = spiralcodestudio_plugin('qrscanner')
}
}
That function generates URLs for each platform (iOS, Android…) with proper authentication parameters when your project is loaded in Solar2D Simulator (Corona Simulator).
Here is a sample build.settings
file https://github.com/Lerg/plugins-sample-qrscanner/blob/master/build.settings
Sergey Lerg SOLAR2D
solar2d