Skip to content

Commit ed1138d

Browse files
support macOS 10.15 (#6)
* feat: support macOS 10.15 * feat: support macOS 10.15 (part 2) * feat: support macOS 10.15 (part 3) finally working
1 parent 0d89d97 commit ed1138d

File tree

11 files changed

+833
-22
lines changed

11 files changed

+833
-22
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# [1.1.0](https://github.com/MarcoEidinger/SwiftPlantUML-Xcode-Extension/releases/tag/1.1.0)
2+
3+
## Features
4+
5+
- [X] 🖥️ Use on macOS 10.15.7 and not only on macOS 11
6+
7+
## Internal Dependencies
8+
9+
uses [[email protected]](https://github.com/MarcoEidinger/SwiftPlantUML/releases/tag/0.4.0)
10+
11+
# [1.0.0](https://github.com/MarcoEidinger/SwiftPlantUML-Xcode-Extension/releases/tag/1.0.0)
12+
13+
## Features
14+
15+
- [X] 📊 Create class diagram from Swift file
16+
- [X] 🔦 Create class diagram from selected Swift code
17+
18+
## Internal Dependencies
19+
20+
uses [[email protected]](https://github.com/MarcoEidinger/SwiftPlantUML/releases/tag/0.2.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This Source Editor Extension makes use of [SwiftPlantUML](https://github.com/Mar
2929

3030
![SwiftPlantUML Xcode Extension - Installation](.assets/installation.png)
3131

32-
## Technicla Details
32+
## Technical Details
3333

3434
This Source Editor Extension makes use of XPC service to run the app sandboxed and use `SwiftPlantUML` (and its dependency `SourceKitten`). Source Editor Extensions using `SourceKitten` (either directly or indirectly) have to either run in a non-sandboxed app (and could not be distributed via the App Store) or use XPC service to outsource the use of `SourceKitten` to a different process.
3535

SourceEditorExtension/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundleName</key>
1616
<string>SwiftPlantUML</string>
1717
<key>CFBundlePackageType</key>
18-
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
18+
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>1.1</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
2323
<key>LSMinimumSystemVersion</key>
2424
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
2525
<key>NSExtension</key>

SwiftPlantUMLApp.xcodeproj/project.pbxproj

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
8A319170261911B900540446 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A31916F261911B900540446 /* AppDelegate.swift */; };
11+
8A3191742619123F00540446 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A3191732619123F00540446 /* ViewController.swift */; };
12+
8A3191792619124B00540446 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8A3191772619124B00540446 /* Main.storyboard */; };
1013
8A73D8CC25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A73D8CB25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift */; };
1114
8A73D8CE25CAE974008DDEA3 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A73D8CD25CAE974008DDEA3 /* ContentView.swift */; };
1215
8A73D8D025CAE978008DDEA3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8A73D8CF25CAE978008DDEA3 /* Assets.xcassets */; };
@@ -97,6 +100,9 @@
97100
/* End PBXCopyFilesBuildPhase section */
98101

99102
/* Begin PBXFileReference section */
103+
8A31916F261911B900540446 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
104+
8A3191732619123F00540446 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
105+
8A3191782619124B00540446 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
100106
8A73D8C825CAE974008DDEA3 /* SwiftPlantUMLApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftPlantUMLApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
101107
8A73D8CB25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftPlantUMLAppApp.swift; sourceTree = "<group>"; };
102108
8A73D8CD25CAE974008DDEA3 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
@@ -170,6 +176,9 @@
170176
8A73D8CA25CAE974008DDEA3 /* SwiftPlantUMLApp */ = {
171177
isa = PBXGroup;
172178
children = (
179+
8A31916F261911B900540446 /* AppDelegate.swift */,
180+
8A3191732619123F00540446 /* ViewController.swift */,
181+
8A3191772619124B00540446 /* Main.storyboard */,
173182
8A73D8CB25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift */,
174183
8A73D8CD25CAE974008DDEA3 /* ContentView.swift */,
175184
8A73D8CF25CAE978008DDEA3 /* Assets.xcassets */,
@@ -332,6 +341,7 @@
332341
isa = PBXResourcesBuildPhase;
333342
buildActionMask = 2147483647;
334343
files = (
344+
8A3191792619124B00540446 /* Main.storyboard in Resources */,
335345
8A73D8D325CAE978008DDEA3 /* Preview Assets.xcassets in Resources */,
336346
8A73D8D025CAE978008DDEA3 /* Assets.xcassets in Resources */,
337347
);
@@ -358,7 +368,9 @@
358368
isa = PBXSourcesBuildPhase;
359369
buildActionMask = 2147483647;
360370
files = (
371+
8A319170261911B900540446 /* AppDelegate.swift in Sources */,
361372
8A73D8CE25CAE974008DDEA3 /* ContentView.swift in Sources */,
373+
8A3191742619123F00540446 /* ViewController.swift in Sources */,
362374
8A73D8CC25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift in Sources */,
363375
);
364376
runOnlyForDeploymentPostprocessing = 0;
@@ -403,6 +415,17 @@
403415
};
404416
/* End PBXTargetDependency section */
405417

418+
/* Begin PBXVariantGroup section */
419+
8A3191772619124B00540446 /* Main.storyboard */ = {
420+
isa = PBXVariantGroup;
421+
children = (
422+
8A3191782619124B00540446 /* Base */,
423+
);
424+
name = Main.storyboard;
425+
sourceTree = "<group>";
426+
};
427+
/* End PBXVariantGroup section */
428+
406429
/* Begin XCBuildConfiguration section */
407430
8A73D8D625CAE978008DDEA3 /* Debug */ = {
408431
isa = XCBuildConfiguration;
@@ -455,7 +478,7 @@
455478
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
456479
GCC_WARN_UNUSED_FUNCTION = YES;
457480
GCC_WARN_UNUSED_VARIABLE = YES;
458-
MACOSX_DEPLOYMENT_TARGET = 11.1;
481+
MACOSX_DEPLOYMENT_TARGET = 10.15;
459482
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
460483
MTL_FAST_MATH = YES;
461484
ONLY_ACTIVE_ARCH = YES;
@@ -510,7 +533,7 @@
510533
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
511534
GCC_WARN_UNUSED_FUNCTION = YES;
512535
GCC_WARN_UNUSED_VARIABLE = YES;
513-
MACOSX_DEPLOYMENT_TARGET = 11.1;
536+
MACOSX_DEPLOYMENT_TARGET = 10.15;
514537
MTL_ENABLE_DEBUG_INFO = NO;
515538
MTL_FAST_MATH = YES;
516539
SDKROOT = macosx;
@@ -526,18 +549,21 @@
526549
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
527550
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
528551
CODE_SIGN_ENTITLEMENTS = SwiftPlantUMLApp/SwiftPlantUMLApp.entitlements;
552+
CODE_SIGN_IDENTITY = "Apple Development";
529553
CODE_SIGN_STYLE = Automatic;
530554
COMBINE_HIDPI_IMAGES = YES;
555+
CURRENT_PROJECT_VERSION = 2;
531556
DEVELOPMENT_ASSET_PATHS = "\"SwiftPlantUMLApp/Preview Content\"";
532-
DEVELOPMENT_TEAM = "";
557+
DEVELOPMENT_TEAM = 6V66CC3AN6;
533558
ENABLE_HARDENED_RUNTIME = YES;
534559
ENABLE_PREVIEWS = YES;
535560
INFOPLIST_FILE = SwiftPlantUMLApp/Info.plist;
536561
LD_RUNPATH_SEARCH_PATHS = (
537562
"$(inherited)",
538563
"@executable_path/../Frameworks",
539564
);
540-
MACOSX_DEPLOYMENT_TARGET = 11.0;
565+
MACOSX_DEPLOYMENT_TARGET = 10.15;
566+
MARKETING_VERSION = 1.1;
541567
PRODUCT_BUNDLE_IDENTIFIER = us.eidinger.SwiftPlantUML;
542568
PRODUCT_NAME = "$(TARGET_NAME)";
543569
SWIFT_VERSION = 5.0;
@@ -551,18 +577,21 @@
551577
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
552578
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
553579
CODE_SIGN_ENTITLEMENTS = SwiftPlantUMLApp/SwiftPlantUMLApp.entitlements;
580+
CODE_SIGN_IDENTITY = "Apple Development";
554581
CODE_SIGN_STYLE = Automatic;
555582
COMBINE_HIDPI_IMAGES = YES;
583+
CURRENT_PROJECT_VERSION = 2;
556584
DEVELOPMENT_ASSET_PATHS = "\"SwiftPlantUMLApp/Preview Content\"";
557-
DEVELOPMENT_TEAM = "";
585+
DEVELOPMENT_TEAM = 6V66CC3AN6;
558586
ENABLE_HARDENED_RUNTIME = YES;
559587
ENABLE_PREVIEWS = YES;
560588
INFOPLIST_FILE = SwiftPlantUMLApp/Info.plist;
561589
LD_RUNPATH_SEARCH_PATHS = (
562590
"$(inherited)",
563591
"@executable_path/../Frameworks",
564592
);
565-
MACOSX_DEPLOYMENT_TARGET = 11.0;
593+
MACOSX_DEPLOYMENT_TARGET = 10.15;
594+
MARKETING_VERSION = 1.1;
566595
PRODUCT_BUNDLE_IDENTIFIER = us.eidinger.SwiftPlantUML;
567596
PRODUCT_NAME = "$(TARGET_NAME)";
568597
SWIFT_VERSION = 5.0;
@@ -575,7 +604,8 @@
575604
CODE_SIGN_ENTITLEMENTS = SourceEditorExtension/SourceEditorExtension.entitlements;
576605
CODE_SIGN_STYLE = Automatic;
577606
COMBINE_HIDPI_IMAGES = YES;
578-
DEVELOPMENT_TEAM = "";
607+
CURRENT_PROJECT_VERSION = 2;
608+
DEVELOPMENT_TEAM = 6V66CC3AN6;
579609
ENABLE_HARDENED_RUNTIME = YES;
580610
INFOPLIST_FILE = SourceEditorExtension/Info.plist;
581611
LD_RUNPATH_SEARCH_PATHS = (
@@ -596,7 +626,8 @@
596626
CODE_SIGN_ENTITLEMENTS = SourceEditorExtension/SourceEditorExtension.entitlements;
597627
CODE_SIGN_STYLE = Automatic;
598628
COMBINE_HIDPI_IMAGES = YES;
599-
DEVELOPMENT_TEAM = "";
629+
CURRENT_PROJECT_VERSION = 2;
630+
DEVELOPMENT_TEAM = 6V66CC3AN6;
600631
ENABLE_HARDENED_RUNTIME = YES;
601632
INFOPLIST_FILE = SourceEditorExtension/Info.plist;
602633
LD_RUNPATH_SEARCH_PATHS = (
@@ -615,9 +646,11 @@
615646
isa = XCBuildConfiguration;
616647
buildSettings = {
617648
CLANG_ENABLE_MODULES = YES;
649+
CODE_SIGN_IDENTITY = "Apple Development";
618650
CODE_SIGN_STYLE = Automatic;
619651
COMBINE_HIDPI_IMAGES = YES;
620-
DEVELOPMENT_TEAM = "";
652+
CURRENT_PROJECT_VERSION = 2;
653+
DEVELOPMENT_TEAM = 6V66CC3AN6;
621654
ENABLE_HARDENED_RUNTIME = YES;
622655
INFOPLIST_FILE = XPCService/Info.plist;
623656
LD_RUNPATH_SEARCH_PATHS = (
@@ -637,9 +670,11 @@
637670
isa = XCBuildConfiguration;
638671
buildSettings = {
639672
CLANG_ENABLE_MODULES = YES;
673+
CODE_SIGN_IDENTITY = "Apple Development";
640674
CODE_SIGN_STYLE = Automatic;
641675
COMBINE_HIDPI_IMAGES = YES;
642-
DEVELOPMENT_TEAM = "";
676+
CURRENT_PROJECT_VERSION = 2;
677+
DEVELOPMENT_TEAM = 6V66CC3AN6;
643678
ENABLE_HARDENED_RUNTIME = YES;
644679
INFOPLIST_FILE = XPCService/Info.plist;
645680
LD_RUNPATH_SEARCH_PATHS = (
@@ -701,7 +736,7 @@
701736
repositoryURL = "https://github.com/MarcoEidinger/SwiftPlantUML";
702737
requirement = {
703738
kind = upToNextMinorVersion;
704-
minimumVersion = 0.2.0;
739+
minimumVersion = 0.4.0;
705740
};
706741
};
707742
/* End XCRemoteSwiftPackageReference section */

SwiftPlantUMLApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SwiftPlantUMLApp/AppDelegate.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Cocoa
2+
3+
@main
4+
class AppDelegate: NSObject, NSApplicationDelegate {
5+
func applicationDidFinishLaunching(_: Notification) {
6+
// Insert code here to initialize your application
7+
}
8+
9+
func applicationWillTerminate(_: Notification) {
10+
// Insert code here to tear down your application
11+
}
12+
}

0 commit comments

Comments
 (0)