-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ObjC AnyPromise and SwiftPackageManager (SPM) #1193
Open
DG0BAB
wants to merge
17
commits into
mxcl:v6
Choose a base branch
from
DG0BAB:master
base: v6
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e858bdf
Made AnyPromise available as a "normal" type to both Swift and Object…
DG0BAB 1e2e117
Split up the PromiseKit package into two targets. One for pure Swift …
DG0BAB 32a6226
Set source path
DG0BAB fc3af24
Added missing import
DG0BAB 3e4953d
Reversed some earlier changes because a forward declaration of AnyPro…
DG0BAB 6faf064
Moved AnyPromise.swift to the Sources.swift group
DG0BAB 9ebcca4
Some commenting
DG0BAB 39d433e
Changed visibility of box to internal because it it used in an extens…
DG0BAB 928257c
Changed podspec to include my GitHub-URL
DG0BAB 2ee834d
Reversed changes to podspec file
DG0BAB d4af4bc
Try to fix Travis build
DG0BAB d57f105
Minor change to the dependencies
DG0BAB 355f893
Removed obsolete code
DG0BAB 3107c51
Changed preprocessor conditional imports
DG0BAB 1e77c7c
Fixed typo in dependencies
DG0BAB 26b5b6e
Changed package.swift for swift versions >= 5.3 to also include the P…
DG0BAB 10de79f
Fixed errors while resolving includes
DG0BAB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC having this in the header is a race condition that thus will fail sometimes, which is the main reason for all the
self->d
stuff.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Problem here was, that AnyPromise was not always defined at this point. But it must be defined here, because otherwise I could not declare a category on it. The include path is always different depending on what is currently build. Tests, Package, Xcode Project, etc. So I figured out that this seemed to work. I'm not very satisfied with it but finally it worked. Would appreciate a better solution.
self->d
isn't used anymore. The idea I was following was definingAnyPromise
in Swift and declaring a category in ObjC on that and delegate from the category to the Swift implementation.