Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 5f18849

Browse files
Merge pull request #2074 from livecode/bugfix-22215
[22215] Ensure min android version can be set
2 parents e8b0cda + f3dbc1c commit 5f18849

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Toolset/libraries/revdeploylibrary.livecodescript

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,11 @@ end revIDEDeployAndroidInitialize
328328
// SN-2015-05-13: [[ AndroidVersions ]] Make the available Android minimum versions
329329
// something changeable from a script-only stack
330330
function revIDEDeployAndroidGetVersionsList
331-
dispatch function "deployGetVersionsList" to stack "revDeployLibraryAndroid"
332-
return the result
331+
local tMap
332+
dispatch function "deployGetVersionsMap" to stack "revDeployLibraryAndroid"
333+
put the result into tMap
334+
combine tMap with return
335+
return tMap
333336
end revIDEDeployAndroidGetVersionsList
334337

335338
function revIDEDeployAndroidApiFromVersion pVersion
@@ -338,8 +341,13 @@ function revIDEDeployAndroidApiFromVersion pVersion
338341
end revIDEDeployAndroidApiFromVersion
339342

340343
function revIDEDeployAndroidGetAPIsList
341-
dispatch function "deployGetAPIsList" to stack "revDeployLibraryAndroid"
342-
return the result
344+
local tMap,tAPIs
345+
dispatch function "deployGetVersionsMap" to stack "revDeployLibraryAndroid"
346+
put the result into tMap
347+
put the keys of tMap into tAPIs
348+
replace return with comma in tAPIs
349+
sort items of tAPIs numeric ascending
350+
return tAPIs
343351
end revIDEDeployAndroidGetAPIsList
344352

345353
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)