-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix: respondsToSelector won't work here, so switching to a workar…
…ound. Addresses issue #515
- Loading branch information
1 parent
b3d4599
commit dda1ece
Showing
5 changed files
with
81 additions
and
38 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import Foundation | ||
import YapDatabase | ||
|
||
struct Issue515: YapDatabaseRelationshipNode { | ||
struct Issue515: Codable, YapDatabaseRelationshipNode { | ||
|
||
let foobar: Int | ||
|
||
func yapDatabaseRelationshipEdges() -> [YapDatabaseRelationshipEdge]? { | ||
|
||
print("swift called") | ||
return nil | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipBridge.h
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* See YapDatabaseRelationship.swift file for implementation of bridge. | ||
*/ | ||
@protocol YapDatabaseRelationshipTransaction_SwiftBridge | ||
|
||
- (nullable NSArray<YapDatabaseRelationshipEdge *> *)swiftBridge_yapDatabaseRelationshipEdges:(id)obj; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_End | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
robbiehanson
Author
Contributor
|
10 changes: 10 additions & 0 deletions
10
YapDatabase/Extensions/Relationships/Swift/YapDatabaseRelationship.swift
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 header file cannot be parsed by the compiler. Found a typo here:
_End
->_END
.