Skip to content

Commit 2cb382c

Browse files
github:11753 Replaces WindowsAppRuntime exception by binaryAllowed flag.
1 parent 31ea579 commit 2cb382c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Build4D/Project/Sources/Classes/_core.4dm

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,16 @@ Function _excludeModules() : Boolean
866866
End if
867867
End if
868868

869-
// For binary databases, automatically exclude "Windows App Runtime" module
869+
// For binary databases, automatically exclude modules that don't have binaryAllowed flag set to true
870870
If ($isBinaryDatabase)
871-
If (This.settings.excludeModules.indexOf("Windows App Runtime")<0)
872-
This.settings.excludeModules.push("Windows App Runtime")
871+
If ($optionalModules.modules#Null)
872+
For each ($module; $optionalModules.modules)
873+
If (($module.binaryAllowed=Null) || ($module.binaryAllowed=False))
874+
If (This.settings.excludeModules.indexOf($module.name)<0)
875+
This.settings.excludeModules.push($module.name)
876+
End if
877+
End if
878+
End for each
873879
End if
874880
End if
875881
End if

0 commit comments

Comments
 (0)