-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add foundation header to ActivityStreamSPI. #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The purpose of this change is to gate C++ code behind a cplusplus define so that FLEX can be made into a module for Swift code. Swift modules do not allow for C++ code. However this means if FLEX is used a Swift module, it will not have functionality of the excluded code. Ideally in the future, FLEX can be converted fully to support Swift without bridging headers.
cc: @matrush |
Bear with me, I don't know what this really fixes. Doesn't FLEX already work in Swift projects? |
This reverts commit 77c0220.
We use a different build setup internally, and we need all headers to be able to stand on their own. This file is using NS_ENUM, which is defined in Foundation, without importing it, so we're adding the import to resolve that.
Sorry about the original changes, I worked with a colleague to find a much better change. |
For some context, our company uses a different build setup internally, and we need all headers to be able to stand on their own. This file is using NS_ENUM, which is defined in Foundation, without importing it, so we're adding the import to resolve that. |
* Add C++ ifdefs around C++ code. The purpose of this change is to gate C++ code behind a cplusplus define so that FLEX can be made into a module for Swift code. Swift modules do not allow for C++ code. However this means if FLEX is used a Swift module, it will not have functionality of the excluded code. Ideally in the future, FLEX can be converted fully to support Swift without bridging headers. * Revert "Add C++ ifdefs around C++ code." This reverts commit 77c0220. * Add include <Foundation/Foundation.h> to ActivityStreamSPI header We use a different build setup internally, and we need all headers to be able to stand on their own. This file is using NS_ENUM, which is defined in Foundation, without importing it, so we're adding the import to resolve that.
* Add C++ ifdefs around C++ code. The purpose of this change is to gate C++ code behind a cplusplus define so that FLEX can be made into a module for Swift code. Swift modules do not allow for C++ code. However this means if FLEX is used a Swift module, it will not have functionality of the excluded code. Ideally in the future, FLEX can be converted fully to support Swift without bridging headers. * Revert "Add C++ ifdefs around C++ code." This reverts commit 77c0220. * Add include <Foundation/Foundation.h> to ActivityStreamSPI header We use a different build setup internally, and we need all headers to be able to stand on their own. This file is using NS_ENUM, which is defined in Foundation, without importing it, so we're adding the import to resolve that.
* master: (364 commits) Reverse view snapshot slider ends, fix FLEXTool#429 Fix FLEXTool#433, refresh explorer after edits Table sections can update themselves FLEXample project Xcode 12 update Update copyright Fix FLEXTool#450: broken search on NSUserDefaults FLEXMethod.imagePath should use the method's IMP Silence new weird documentation warning… Commit FLEXTests scheme Xcode 12 upgrade check for main scheme Add FLEX_EXIT_IF_NO_CTORS, fix FLEXTool#470 Add foundation header to ActivityStreamSPI. (FLEXTool#461) Remove a retain cylce in FLEXSystemLogViewController Fix crash when opening Keychain item without a password Return empty array when the rows are nil in FLEXSQLResult Sort realm table names alphabetically (FLEXTool#453) fix baseResumeClass name for iOS14+ Skip keyboard shortcut override when setting defaults Add sharedApplication property at runtime for iOS 9 Add better debugging message for FLEXProperty and FLEXIvar ... # Conflicts: # Classes/Editing/ArgumentInputViews/FLEXArgumentInputTextView.m # Classes/Editing/FLEXFieldEditorViewController.m # Classes/ExplorerInterface/FLEXExplorerViewController.m # Classes/GlobalStateExplorers/FLEXGlobalsTableViewController.m # Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogTableViewController.m # Classes/Manager/FLEXManager.m # Classes/Network/FLEXNetworkHistoryTableViewController.m # Classes/Network/FLEXNetworkTransactionCell.m # Classes/Network/FLEXNetworkTransactionDetailController.m # Classes/ObjectExplorers/Controllers/FLEXColorExplorerViewController.m # Classes/ObjectExplorers/Controllers/FLEXObjectExplorerViewController.h # Classes/Toolbar/FLEXExplorerToolbar.m # Classes/Toolbar/FLEXToolbarItem.m # Classes/Utility/FLEXColor.h # Classes/Utility/FLEXColor.m # Classes/Utility/FLEXResources.m # Classes/Utility/FLEXUtility.m # Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.m # Classes/ViewHierarchy/FLEXHierarchyTableViewController.m # Classes/ViewHierarchy/FLEXImagePreviewViewController.m # Example/UICatalog/Base.lproj/Main_iPad.storyboard # Example/UICatalog/Base.lproj/Main_iPhone.storyboard # FLEX.podspec # FLEX.xcodeproj/project.pbxproj
* Add C++ ifdefs around C++ code. The purpose of this change is to gate C++ code behind a cplusplus define so that FLEX can be made into a module for Swift code. Swift modules do not allow for C++ code. However this means if FLEX is used a Swift module, it will not have functionality of the excluded code. Ideally in the future, FLEX can be converted fully to support Swift without bridging headers. * Revert "Add C++ ifdefs around C++ code." This reverts commit 77c0220. * Add include <Foundation/Foundation.h> to ActivityStreamSPI header We use a different build setup internally, and we need all headers to be able to stand on their own. This file is using NS_ENUM, which is defined in Foundation, without importing it, so we're adding the import to resolve that.
The purpose of this change is to gate C++ code behind a cplusplus define so that FLEX can be made into a module for Swift code. Swift modules do not allow for C++ code. However this means if FLEX is used a Swift module, it will not have functionality of the excluded code. Ideally in the future, FLEX can be converted fully to support Swift without bridging headers.