Skip to content

Commit

Permalink
support macOS 10.15 (#6)
Browse files Browse the repository at this point in the history
* feat: support macOS 10.15

* feat: support macOS 10.15 (part 2)

* feat: support macOS 10.15 (part 3)

finally working
  • Loading branch information
MarcoEidinger authored Aug 4, 2021
1 parent 0d89d97 commit ed1138d
Show file tree
Hide file tree
Showing 11 changed files with 833 additions and 22 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [1.1.0](https://github.com/MarcoEidinger/SwiftPlantUML-Xcode-Extension/releases/tag/1.1.0)

## Features

- [X] 🖥️ Use on macOS 10.15.7 and not only on macOS 11

## Internal Dependencies

uses [SwiftPlantUML@0.4.0](https://github.com/MarcoEidinger/SwiftPlantUML/releases/tag/0.4.0)

# [1.0.0](https://github.com/MarcoEidinger/SwiftPlantUML-Xcode-Extension/releases/tag/1.0.0)

## Features

- [X] 📊 Create class diagram from Swift file
- [X] 🔦 Create class diagram from selected Swift code

## Internal Dependencies

uses [SwiftPlantUML@0.2.0](https://github.com/MarcoEidinger/SwiftPlantUML/releases/tag/0.2.0)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This Source Editor Extension makes use of [SwiftPlantUML](https://github.com/Mar

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

## Technicla Details
## Technical Details

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.

Expand Down
6 changes: 3 additions & 3 deletions SourceEditorExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundleName</key>
<string>SwiftPlantUML</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand Down
57 changes: 46 additions & 11 deletions SwiftPlantUMLApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
8A319170261911B900540446 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A31916F261911B900540446 /* AppDelegate.swift */; };
8A3191742619123F00540446 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A3191732619123F00540446 /* ViewController.swift */; };
8A3191792619124B00540446 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8A3191772619124B00540446 /* Main.storyboard */; };
8A73D8CC25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A73D8CB25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift */; };
8A73D8CE25CAE974008DDEA3 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A73D8CD25CAE974008DDEA3 /* ContentView.swift */; };
8A73D8D025CAE978008DDEA3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8A73D8CF25CAE978008DDEA3 /* Assets.xcassets */; };
Expand Down Expand Up @@ -97,6 +100,9 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
8A31916F261911B900540446 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
8A3191732619123F00540446 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
8A3191782619124B00540446 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
8A73D8C825CAE974008DDEA3 /* SwiftPlantUMLApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftPlantUMLApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
8A73D8CB25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftPlantUMLAppApp.swift; sourceTree = "<group>"; };
8A73D8CD25CAE974008DDEA3 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -170,6 +176,9 @@
8A73D8CA25CAE974008DDEA3 /* SwiftPlantUMLApp */ = {
isa = PBXGroup;
children = (
8A31916F261911B900540446 /* AppDelegate.swift */,
8A3191732619123F00540446 /* ViewController.swift */,
8A3191772619124B00540446 /* Main.storyboard */,
8A73D8CB25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift */,
8A73D8CD25CAE974008DDEA3 /* ContentView.swift */,
8A73D8CF25CAE978008DDEA3 /* Assets.xcassets */,
Expand Down Expand Up @@ -332,6 +341,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8A3191792619124B00540446 /* Main.storyboard in Resources */,
8A73D8D325CAE978008DDEA3 /* Preview Assets.xcassets in Resources */,
8A73D8D025CAE978008DDEA3 /* Assets.xcassets in Resources */,
);
Expand All @@ -358,7 +368,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8A319170261911B900540446 /* AppDelegate.swift in Sources */,
8A73D8CE25CAE974008DDEA3 /* ContentView.swift in Sources */,
8A3191742619123F00540446 /* ViewController.swift in Sources */,
8A73D8CC25CAE974008DDEA3 /* SwiftPlantUMLAppApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -403,6 +415,17 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
8A3191772619124B00540446 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
8A3191782619124B00540446 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
8A73D8D625CAE978008DDEA3 /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down Expand Up @@ -455,7 +478,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 11.1;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -510,7 +533,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 11.1;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand All @@ -526,18 +549,21 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = SwiftPlantUMLApp/SwiftPlantUMLApp.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"SwiftPlantUMLApp/Preview Content\"";
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 6V66CC3AN6;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = SwiftPlantUMLApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = us.eidinger.SwiftPlantUML;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -551,18 +577,21 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = SwiftPlantUMLApp/SwiftPlantUMLApp.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"SwiftPlantUMLApp/Preview Content\"";
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 6V66CC3AN6;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = SwiftPlantUMLApp/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = us.eidinger.SwiftPlantUML;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -575,7 +604,8 @@
CODE_SIGN_ENTITLEMENTS = SourceEditorExtension/SourceEditorExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 6V66CC3AN6;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = SourceEditorExtension/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -596,7 +626,8 @@
CODE_SIGN_ENTITLEMENTS = SourceEditorExtension/SourceEditorExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 6V66CC3AN6;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = SourceEditorExtension/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -615,9 +646,11 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 6V66CC3AN6;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = XPCService/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -637,9 +670,11 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = "";
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 6V66CC3AN6;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = XPCService/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -701,7 +736,7 @@
repositoryURL = "https://github.com/MarcoEidinger/SwiftPlantUML";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 0.2.0;
minimumVersion = 0.4.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"repositoryURL": "https://github.com/MarcoEidinger/SwiftPlantUML",
"state": {
"branch": null,
"revision": "d5e14cb280d553f10228cdfcb07d3e640f636dc7",
"version": "0.2.0"
"revision": "4cda284fa7f7ee914e6d0552f72f0b60cf980f5f",
"version": "0.4.0"
}
},
{
Expand Down
12 changes: 12 additions & 0 deletions SwiftPlantUMLApp/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Cocoa

@main
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_: Notification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(_: Notification) {
// Insert code here to tear down your application
}
}
Loading

0 comments on commit ed1138d

Please sign in to comment.