• R/O
  • HTTP
  • SSH
  • HTTPS

LetterFix: Commit


Commit MetaInfo

Revisiónfd66e4dab095b1a0646479e5debffabb2b4aff85 (tree)
Tiempo2021-09-03 15:44:22
Autorkurikinton <kurikinton@user...>
Commiterkurikinton

Log Message

For macOS 12.0 Beta (21A5506j)

Cambiar Resumen

Diferencia incremental

--- a/Info.plist
+++ b/Info.plist
@@ -24,6 +24,39 @@
2424 <string>1</string>
2525 <key>NSPrincipalClass</key>
2626 <string>LetterFix</string>
27+ <key>Supported12.6PluginCompatibilityUUIDs</key>
28+ <array>
29+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
30+ </array>
31+ <key>Supported12.5PluginCompatibilityUUIDs</key>
32+ <array>
33+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
34+ </array>
35+ <key>Supported12.4PluginCompatibilityUUIDs</key>
36+ <array>
37+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
38+ </array>
39+ <key>Supported12.3PluginCompatibilityUUIDs</key>
40+ <array>
41+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
42+ </array>
43+ <key>Supported12.2PluginCompatibilityUUIDs</key>
44+ <array>
45+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
46+ </array>
47+ <key>Supported12.1PluginCompatibilityUUIDs</key>
48+ <array>
49+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
50+ </array>
51+ <key>Supported12.0PluginCompatibilityUUIDs</key>
52+ <array>
53+ <string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
54+ <string>224E7F96-2099-499C-A501-63FB68C79CD2</string>
55+ </array>
56+ <key>Supported11.6PluginCompatibilityUUIDs</key>
57+ <array>
58+ <string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
59+ </array>
2760 <key>Supported11.5PluginCompatibilityUUIDs</key>
2861 <array>
2962 <string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
--- a/LFApp.h
+++ b/LFApp.h
@@ -10,7 +10,7 @@
1010 #import <AppKit/AppKit.h>
1111 //#import "LFMenu.h"
1212
13-#define LETTERFIX_VERSION "3.0.3"
13+#define LETTERFIX_VERSION "3.1.1"
1414
1515 enum LFversion {
1616 LF_Unknown = -1,
@@ -21,7 +21,8 @@ enum LFversion {
2121 LF_HighSierra= 1013,
2222 LF_Mojave = 1014,
2323 LF_Catalina = 1015,
24- LF_BigSur = 1100
24+ LF_BigSur = 1100,
25+ LF_Monterey = 1200,
2526 };
2627
2728 @interface LFApp : NSObject {
--- a/LFApp.m
+++ b/LFApp.m
@@ -66,6 +66,8 @@
6666 }
6767 } else if (systemVersionMajor == 11) {
6868 version = LF_BigSur; // 11.x.y
69+ } else if (systemVersionMajor == 12) {
70+ version = LF_Monterey; // 12.x.y
6971 } else {
7072 version = LF_Unknown;
7173 }
@@ -83,7 +85,9 @@
8385 self.shouldFixAllLetters = ![userDefaults boolForKey:@"LetterFixAllLetterFixDisabled"];
8486 self.shouldAppendCodeInfo = [userDefaults boolForKey:@"LetterFixDoAppendCodeInfo"];
8587 self.operationModeOnLoad = (int)[userDefaults integerForKey:@"LetterFixOperationAtOpen"];
86- if (version == LF_HighSierra || version == LF_Mojave || version == LF_Catalina || version == LF_BigSur )
88+ if (version == LF_HighSierra || version == LF_Mojave ||
89+ version == LF_Catalina || version == LF_BigSur ||
90+ version == LF_Monterey )
8791 self.shouldCheckSubject = [userDefaults integerForKey:@"LetterFixCheckSubjectEnabled"];
8892 else
8993 self.shouldCheckSubject = ![userDefaults integerForKey:@"LetterFixCheckSubjectDisabled"];
--- a/LetterFix.m
+++ b/LetterFix.m
@@ -79,7 +79,7 @@ static void backendSetPreferredEncoding(id backend, unsigned long long encoding)
7979 } else if (app.version == LF_Yosemite || app.version == LF_ElCapitan ||
8080 app.version == LF_Sierra || app.version == LF_HighSierra ||
8181 app.version == LF_Mojave || app.version == LF_Catalina ||
82- app.version == LF_BigSur ) {
82+ app.version == LF_BigSur || app.version == LF_Monterey) {
8383 [backend setEncodingHint: encoding];
8484 }
8585 }
@@ -93,7 +93,7 @@ static unsigned long long backendGetPreferredEncoding(id backend)
9393 } else if (app.version == LF_Yosemite || app.version == LF_ElCapitan ||
9494 app.version == LF_Sierra || app.version == LF_HighSierra ||
9595 app.version == LF_Mojave || app.version == LF_Catalina ||
96- app.version == LF_BigSur ) {
96+ app.version == LF_BigSur || app.version == LF_Monterey) {
9797 return [backend encodingHint];
9898 }
9999 return LF_Encoding_Auto;
@@ -383,7 +383,8 @@ BOOL _LF_IMP_isLoaded(id self, SEL _cmd)
383383 fixLetter(self, [self webView], NO, YES);
384384 } else if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
385385 app.version == LF_HighSierra|| app.version == LF_Mojave ||
386- app.version == LF_Catalina || app.version == LF_BigSur ) {
386+ app.version == LF_Catalina || app.version == LF_BigSur ||
387+ app.version == LF_Monterey) {
387388 fixLetter(self, [self composeWebView], NO, YES);
388389 }
389390 } else if (returnCode == NSAlertSecondButtonReturn) {
@@ -458,7 +459,8 @@ void _LF_IMP_finishLoadingEditor(id self, SEL _cmd)
458459 fixSubject(self, NO, YES);
459460 if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
460461 app.version == LF_HighSierra|| app.version == LF_Mojave ||
461- app.version == LF_Catalina || app.version == LF_BigSur ) {
462+ app.version == LF_Catalina || app.version == LF_BigSur ||
463+ app.version == LF_Monterey) {
462464 fixLetter(self, [self composeWebView], NO, YES);
463465 }
464466 } else if (returnCode == NSAlertSecondButtonReturn) {
@@ -498,7 +500,8 @@ void _LF_IMP_send_(id self, SEL _cmd, id arg1)
498500 composeView = [self webView];
499501 } else if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
500502 app.version == LF_HighSierra|| app.version == LF_Mojave ||
501- app.version == LF_Catalina || app.version == LF_BigSur ) {
503+ app.version == LF_Catalina || app.version == LF_BigSur ||
504+ app.version == LF_Monterey) {
502505 composeView = [self composeWebView];
503506 } else {
504507 [self _LF_send: arg1];
@@ -522,7 +525,8 @@ void _LF_IMP_send_(id self, SEL _cmd, id arg1)
522525 fixLetter(self, [self webView], NO, NO);
523526 } else if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
524527 app.version == LF_HighSierra|| app.version == LF_Mojave ||
525- app.version == LF_Catalina || app.version == LF_BigSur ) {
528+ app.version == LF_Catalina || app.version == LF_BigSur ||
529+ app.version == LF_Monterey) {
526530 fixLetter(self, [self composeWebView], NO, NO);
527531 }
528532 if (backendGetPreferredEncoding([self backEnd]) != LF_Encoding_ISO2022JP) backendSetPreferredEncoding([self backEnd], LF_Encoding_ISO2022JP);
@@ -544,7 +548,8 @@ void _LF_IMP_send_(id self, SEL _cmd, id arg1)
544548 fixLetter(self, [self webView], NO, NO);
545549 } else if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
546550 app.version == LF_HighSierra|| app.version == LF_Mojave ||
547- app.version == LF_Catalina || app.version == LF_BigSur ) {
551+ app.version == LF_Catalina || app.version == LF_BigSur ||
552+ app.version == LF_Monterey) {
548553 fixLetter(self, [self composeWebView], NO, NO);
549554 }
550555 if (backendGetPreferredEncoding([self backEnd]) != LF_Encoding_ISO2022JP) backendSetPreferredEncoding([self backEnd], LF_Encoding_ISO2022JP);
@@ -592,7 +597,8 @@ void _LF_IMP_saveDocument_(id self, SEL _cmd, id arg1)
592597 } else if (app.shouldCheckOnSave &&
593598 (app.version == LF_ElCapitan || app.version == LF_Sierra ||
594599 app.version == LF_HighSierra|| app.version == LF_Mojave ||
595- app.version == LF_Catalina || app.version == LF_BigSur )) {
600+ app.version == LF_Catalina || app.version == LF_BigSur ||
601+ app.version == LF_Monterey)) {
596602 composeView = [self composeWebView];
597603 } else {
598604 [self _LF_saveDocument: arg1];
@@ -614,7 +620,8 @@ void _LF_IMP_saveDocument_(id self, SEL _cmd, id arg1)
614620 fixLetter(self, [self webView], NO, NO);
615621 } else if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
616622 app.version == LF_HighSierra|| app.version == LF_Mojave ||
617- app.version == LF_Catalina || app.version == LF_BigSur ) {
623+ app.version == LF_Catalina || app.version == LF_BigSur ||
624+ app.version == LF_Monterey) {
618625 fixLetter(self, [self composeWebView], NO, NO);
619626 }
620627 } else if (returnCode == NSAlertSecondButtonReturn) {
@@ -640,7 +647,7 @@ NSWindow *_LF_IMP_window(id self, SEL _cmd)
640647 return [self window];
641648 } else if (app.version == LF_Sierra || app.version == LF_HighSierra||
642649 app.version == LF_Mojave || app.version == LF_Catalina ||
643- app.version == LF_BigSur ) {
650+ app.version == LF_BigSur || app.version == LF_Monterey) {
644651 return [(NSView *)[self view] window];
645652 }
646653 return nil;
@@ -665,7 +672,8 @@ NSWindow *_LF_IMP_window(id self, SEL _cmd)
665672 editorClass = NSClassFromString(@"DocumentEditor");
666673 } else if (app.version == LF_ElCapitan || app.version == LF_Sierra ||
667674 app.version == LF_HighSierra|| app.version == LF_Mojave ||
668- app.version == LF_Catalina || app.version == LF_BigSur ) {
675+ app.version == LF_Catalina || app.version == LF_BigSur ||
676+ app.version == LF_Monterey) {
669677 editorClass = NSClassFromString(@"ComposeViewController");
670678 } else {
671679 return;
@@ -680,7 +688,9 @@ NSWindow *_LF_IMP_window(id self, SEL _cmd)
680688 swizzlingMethod(editorClass, @selector(_animationCompleted), @selector(_LF_animationCompleted), (IMP)_LF_IMP_animationCompleted);
681689 } else if (app.version == LF_ElCapitan) {
682690 swizzlingMethod(editorClass, @selector(finishLoadingEditor), @selector(_LF_finishLoadingEditor), (IMP)_LF_IMP_finishLoadingEditor);
683- } else if (app.version == LF_Sierra || app.version == LF_HighSierra || app.version == LF_Mojave || app.version == LF_Catalina || app.version == LF_BigSur ) {
691+ } else if (app.version == LF_Sierra || app.version == LF_HighSierra ||
692+ app.version == LF_Mojave || app.version == LF_Catalina ||
693+ app.version == LF_BigSur || app.version == LF_Monterey) {
684694 swizzlingMethod(editorClass, @selector(_finishLoadingEditor), @selector(_LF_finishLoadingEditor), (IMP)_LF_IMP_finishLoadingEditor);
685695 }
686696 swizzlingMethod(editorClass, @selector(saveDocument:), @selector(_LF_saveDocument:), (IMP)_LF_IMP_saveDocument_);
Show on old repository browser