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

Commit 3084cae

Browse files
author
Monte Goulding
authored
Merge pull request #1990 from livecode/androidarchside
[[ Android Archs ]] Add multiple android archs to IDE
2 parents a93439f + 895533f commit 3084cae

File tree

2 files changed

+47
-4
lines changed

2 files changed

+47
-4
lines changed
1.13 KB
Binary file not shown.

Toolset/palettes/standalone settings/revstandalonesettingsandroidbehavior.livecodescript

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@ end preOpenCard
77
on initialize
88
local tSettings
99
put getSettings() into tSettings
10-
set the hilite of button "Build for Android" to tSettings["android"] is true
11-
set the enabled of button "Build for Android" to true
10+
local tEnabled = false
11+
repeat for each item tItem in revSBPlatformArchitectures("Android")
12+
set the hilite of button ("Android" && tItem) of group "Android targets" of me to tSettings["Android",tItem] is true
13+
if tSettings["Android",tItem] then
14+
put true into tEnabled
15+
end if
16+
end repeat
17+
18+
if not tEnabled and tSettings["android"] is true then
19+
set the hilite of button "Android armv7" of group "Android targets" of me to true
20+
put true into tSettings["Android,armv7"]
21+
setSettings tSettings
22+
end if
1223

1324
-- PM-2014-03-17: [[ In App Purchasing Updates ]] Port over old style in app purchasing permissions.
1425
if "BILLING" is among the keys of tSettings["android,application permissions"] then
@@ -105,11 +116,43 @@ on updateSettings
105116
end updateSettings
106117

107118
on updateAndroidSettingState
108-
set the enabled of group "Android Settings" of me to (the hilite of button "Build for Android" of me)
109-
set the visible of button "Androidchecked" to (the hilite of button "Build for Android" of me)
119+
local tSettings
120+
put getSettings() into tSettings
121+
local tEnabled = false
122+
repeat for each item tItem in revSBPlatformArchitectures("Android")
123+
if tSettings["Android",tItem] then
124+
put true into tEnabled
125+
end if
126+
end repeat
127+
set the enabled of group "Android Settings" of me to tEnabled
128+
set the visible of button "Androidchecked" to tEnabled
110129
set the opaque of button "Androidchecked" to false
111130
end updateAndroidSettingState
112131

132+
on updateAndroidArch pArch, pBuild
133+
local tSettingsA
134+
put getSettings() into tSettingsA
135+
136+
put pBuild into tSettingsA["Android",pArch]
137+
138+
local tEnabled = false
139+
repeat for each item tItem in revSBPlatformArchitectures("Android")
140+
if tSettingsA["Android",tItem] then
141+
put true into tEnabled
142+
exit repeat
143+
end if
144+
end repeat
145+
put tEnabled into tSettingsA["Android"]
146+
setSettings tSettingsA
147+
148+
if tEnabled then
149+
buildForEnabled "android"
150+
end if
151+
152+
revSetEdit
153+
updateAndroidSettingState
154+
end updateAndroidArch
155+
113156
-- PM-2014-03-17: [[ In App Purchasing Updates ]] Updated UI to support new store types.
114157
on updateInAppPurchaseSettings
115158
local tSettings

0 commit comments

Comments
 (0)