Skip to content

Commit

Permalink
Merge pull request #1 from OutSystems/fix/RMET-1680/call-swift-from-o…
Browse files Browse the repository at this point in the history
…bj-c

RMET-1680 ::: Added configuration to call swift code from objective-c
  • Loading branch information
CarlsCorrea committed Jun 28, 2022
2 parents e37bd5c + 35fb6df commit 7493982
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/add-swift-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ module.exports = context => {
xcodeProject.updateBuildProperty('SWIFT_OBJC_BRIDGING_HEADER', bridgingHeaderProperty, buildConfig.name);
console.log('Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to:', bridgingHeaderProperty, 'for build configuration', buildConfig.name);
}
if (xcodeProject.getBuildProperty('SWIFT_OBJC_INTERFACE_HEADER_NAME', buildConfig.name) !== '"OutSystems-Swift.h"') {
xcodeProject.updateBuildProperty('SWIFT_OBJC_INTERFACE_HEADER_NAME', '"OutSystems-Swift.h"', buildConfig.name);
console.log('Update IOS build setting SWIFT_OBJC_INTERFACE_HEADER_NAME to:', '"OutSystems-Swift.h"', 'for build configuration', buildConfig.name);
}
}
}

Expand Down

0 comments on commit 7493982

Please sign in to comment.