File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,14 @@ struct JExtractSwiftBuildToolPlugin: SwiftJavaPluginProtocol, BuildToolPlugin {
131131 // If the developer has enabled java callbacks in the configuration (default is false)
132132 // and we are running in JNI mode, we will run additional phases in this build plugin
133133 // to generate Swift wrappers using wrap-java that can be used to callback to Java.
134- let shouldRunJavaCallbacksPhases = if let configuration, configuration. enableJavaCallbacks ?? false , configuration. effectiveMode == . jni {
135- true
136- } else {
137- false
138- }
134+ let shouldRunJavaCallbacksPhases =
135+ if let configuration,
136+ configuration. enableJavaCallbacks == true ,
137+ configuration. effectiveMode == . jni {
138+ true
139+ } else {
140+ false
141+ }
139142
140143 // Extract list of all sources
141144 let javaSourcesListFileName = " jextract-generated-sources.txt "
You can’t perform that action at this time.
0 commit comments