Skip to content

Fix CoreData swift/objc attributes Interoperability #149

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

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/Features/Resources/Crash+CoreDataProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ extension Crash {
return NSFetchRequest<Crash>(entityName: "Crash")
}

@objc(attachmentPaths)
@NSManaged public var attachmentPaths: [String]?
@objc(dateAdded)
@NSManaged public var dateAdded: Date?
@objc(hashProperty)
@NSManaged public var hashProperty: String?
@objc(reportData)
@NSManaged public var reportData: Data?
@objc(retryCount)
@NSManaged public var retryCount: Int64

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22758" systemVersion="23F79" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23507" systemVersion="24B83" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="Crash" representedClassName="Crash" syncable="YES">
<attribute name="attachmentPaths" attributeType="Transformable" valueTransformerName="" customClassName="[String]"/>
<attribute name="dateAdded" attributeType="Date" usesScalarValueType="NO"/>
<attribute name="hashProperty" attributeType="String"/>
<attribute name="reportData" attributeType="Binary"/>
<attribute name="attachmentPaths" optional="YES" attributeType="Transformable" valueTransformerName=""/>
<attribute name="dateAdded" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
<attribute name="hashProperty" optional="YES" attributeType="String"/>
<attribute name="reportData" optional="YES" attributeType="Binary"/>
<attribute name="retryCount" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
</entity>
</model>