Skip to content

Commit

Permalink
When checking installation of Xcode using menu, force download new xc…
Browse files Browse the repository at this point in the history
…ode.json version file
  • Loading branch information
e-marchand committed Mar 6, 2024
1 parent 4bc6b81 commit ba6d865
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
3 changes: 2 additions & 1 deletion Project/Sources/Classes/EDITOR.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -910,13 +910,14 @@ Function postMessage($message : Object)
This:C1470.callMe(Formula:C1597(DO_MESSAGE).source; $message)

//=== === === === === === === === === === === === === === === === === === === === ===
Function checkDevTools()
Function checkDevTools($force : Boolean)

This:C1470.addTask("checkDevTools")
This:C1470.callWorker(Formula:C1597(editor_CHECK_INSTALLATION).source; New object:C1471(\
"caller"; This:C1470.window; \
"method"; Formula:C1597(editor_CALLBACK).source; \
"message"; "checkDevTools"; \
"force"; Bool:C1537($force); \
"xCode"; This:C1470.xCode; \
"studio"; This:C1470.studio; \
"android"; PROJECT.$android; \
Expand Down
4 changes: 2 additions & 2 deletions Project/Sources/Classes/Xcode.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Class constructor($useDefaultPath : Boolean)
End if

//====================================================================
Function getRequirements()
Function getRequirements($force : Boolean)

var $ETag : Text
var $run : Boolean
Expand Down Expand Up @@ -61,7 +61,7 @@ Function getRequirements()
$run:=True:C214
End if

If ($run)
If ($run || Bool:C1537($force))

$http:=cs:C1710.http.new("https://4d-go-mobile.github.io/sdk/xcode.json").setResponseType(Is a document:K24:1; $requirement)

Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Methods/RIBBON_SIMULATOR.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Case of
End if

// Launch checking the development environment
UI.checkDevTools()
UI.checkDevTools(True:C214)

//______________________________________________________
: ($menu.choice="XcodeDeviceManager")
Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Methods/Xcode_CheckInstall.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $Xcode:=cs:C1710.Xcode.new(True:C214)
If ($Xcode.success)

// *CHECK IF MORE THAN ONE INSTANCE OF XCODE IS INSTALLED TO USE THE BEST ONE...
$Xcode.getRequirements()
$Xcode.getRequirements(Bool:C1537($in.force))
$requestedVersion:=$Xcode.requirement

// *** POUR LE TEST ***
Expand Down
23 changes: 4 additions & 19 deletions Resources/requirements.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,10 @@
"ios": "16.0",
"swift": "5.7"
},
"2000": {
"xcode": "^14.3.1",
"ios": "16.0",
"swift": "5.8.1"
},
"2001": {
"xcode": "^15.0.0",
"ios": "16.0",
"swift": "5.9.0"
},
"2020": {
"xcode": "^15.0.0",
"ios": "16.0",
"swift": "5.9.0"
},
"": {
"xcode": "^15.2.0",
"ios": "16.0",
"swift": "5.9.2"
"xcode": "~15.3.0",
"ios": "16.0",
"swift": "5.10.0"
},
"Etag": "W/\"65a7a272-497\""
"Etag": "W/\"65e84a4e-3a5\""
}

0 comments on commit ba6d865

Please sign in to comment.