Skip to content

Commit 2bcbfa1

Browse files
author
Stanislas Chevallier
committed
Fix imported file types, hopefully fixing #1 properly this time
1 parent 872e890 commit 2bcbfa1

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

Subtitler.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
CODE_SIGN_IDENTITY = "Apple Development";
496496
CODE_SIGN_STYLE = Automatic;
497497
COMBINE_HIDPI_IMAGES = YES;
498-
CURRENT_PROJECT_VERSION = 6;
498+
CURRENT_PROJECT_VERSION = 7;
499499
DEAD_CODE_STRIPPING = YES;
500500
DEVELOPMENT_TEAM = 79RY8264V4;
501501
ENABLE_HARDENED_RUNTIME = YES;
@@ -509,7 +509,7 @@
509509
"$(inherited)",
510510
"@executable_path/../Frameworks",
511511
);
512-
MARKETING_VERSION = 1.0.5;
512+
MARKETING_VERSION = 1.0.6;
513513
PRODUCT_BUNDLE_IDENTIFIER = me.syan.Subtitler;
514514
PRODUCT_NAME = "$(TARGET_NAME)";
515515
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -526,7 +526,7 @@
526526
CODE_SIGN_IDENTITY = "Apple Development";
527527
CODE_SIGN_STYLE = Automatic;
528528
COMBINE_HIDPI_IMAGES = YES;
529-
CURRENT_PROJECT_VERSION = 6;
529+
CURRENT_PROJECT_VERSION = 7;
530530
DEAD_CODE_STRIPPING = YES;
531531
DEVELOPMENT_TEAM = 79RY8264V4;
532532
ENABLE_HARDENED_RUNTIME = YES;
@@ -540,7 +540,7 @@
540540
"$(inherited)",
541541
"@executable_path/../Frameworks",
542542
);
543-
MARKETING_VERSION = 1.0.5;
543+
MARKETING_VERSION = 1.0.6;
544544
PRODUCT_BUNDLE_IDENTIFIER = me.syan.Subtitler;
545545
PRODUCT_NAME = "$(TARGET_NAME)";
546546
SWIFT_EMIT_LOC_STRINGS = YES;

Subtitler.xcodeproj/xcshareddata/xcschemes/Subtitler.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1520"
3+
LastUpgradeVersion = "1530"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Subtitler/Info.plist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@
3939
<key>UTTypeConformsTo</key>
4040
<array>
4141
<string>public.plain-text</string>
42-
<string>public.srt</string>
4342
</array>
4443
<key>UTTypeDescription</key>
4544
<string>Subtitle file</string>
4645
<key>UTTypeIcons</key>
4746
<dict/>
4847
<key>UTTypeIdentifier</key>
49-
<string>me.syan.subtitle</string>
48+
<string>public.srt</string>
5049
<key>UTTypeTagSpecification</key>
5150
<dict>
5251
<key>public.filename-extension</key>

Subtitler/Models/Subtitle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Subtitle: NSDocument {
4242
fileURL = nil
4343
fileType = "public.srt"
4444

45-
case "public.srt", "me.syan.subtitle":
45+
case "public.srt":
4646
self.lines = try SubRipParser.parse(data: data)
4747
isTransient = false
4848

@@ -53,7 +53,7 @@ class Subtitle: NSDocument {
5353

5454
override func data(ofType typeName: String) throws -> Data {
5555
switch typeName {
56-
case "public.srt", "me.syan.subtitle":
56+
case "public.srt":
5757
return try SubRipParser.write(lines: lines)
5858

5959
default:

0 commit comments

Comments
 (0)