Skip to content

Commit 850a263

Browse files
committed
Use dev.mcap.mcap UTI only
1 parent 3c91740 commit 850a263

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CURRENT_PROJECT_VERSION = 2
2-
MARKETING_VERSION = 1.0.1
1+
CURRENT_PROJECT_VERSION = 3
2+
MARKETING_VERSION = 1.0.2

MCAPSpotlightImporter/Info.plist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<string>MDImporter</string>
1010
<key>LSItemContentTypes</key>
1111
<array>
12-
<string>dev.foxglove.mcap</string>
1312
<string>dev.mcap.mcap</string>
1413
</array>
1514
</dict>

MCAPSpotlightImporter/importMCAPAttributes.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ enum SchemaAttributes: String {
1515

1616
extension UTType {
1717
static let mcap = UTType(importedAs: "dev.mcap.mcap", conformingTo: .data)
18-
static let foxgloveMCAP = UTType(importedAs: "dev.foxglove.mcap", conformingTo: .data)
1918
}
2019

2120
extension FileHandle: IRandomAccessReadable {
@@ -34,7 +33,7 @@ extension FileHandle: IRandomAccessReadable {
3433
}
3534

3635
func importMCAPAttributes(_ attributes: inout [AnyHashable: Any], forFileAt url: URL, contentTypeUTI: String) -> Bool {
37-
guard contentTypeUTI == UTType.mcap.identifier || contentTypeUTI == UTType.foxgloveMCAP.identifier else {
36+
guard contentTypeUTI == UTType.mcap.identifier else {
3837
log.info("skipping importAttributes for url=\(url) contentTypeUTI=\(contentTypeUTI)")
3938
return false
4039
}

MCAPSpotlightImporter/schema.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@
1010
<attribute name="dev_foxglove_studio_mcap_metadata" multivalued="true" type="CFString"/>
1111
</attributes>
1212
<types>
13-
<type name="dev.foxglove.mcap">
14-
<allattrs>
15-
dev_foxglove_studio_mcap_topics
16-
dev_foxglove_studio_mcap_schemas
17-
dev_foxglove_studio_mcap_attachments
18-
dev_foxglove_studio_mcap_metadata
19-
</allattrs>
20-
<displayattrs>
21-
dev_foxglove_studio_mcap_topics
22-
dev_foxglove_studio_mcap_schemas
23-
dev_foxglove_studio_mcap_attachments
24-
dev_foxglove_studio_mcap_metadata
25-
</displayattrs>
26-
</type>
2713
<type name="dev.mcap.mcap">
2814
<allattrs>
2915
dev_foxglove_studio_mcap_topics

0 commit comments

Comments
 (0)