Skip to content

Commit 6324f64

Browse files
author
Philip Niedertscheider
authored
Release/2.2.0 (#218)
* Added more macOS support
1 parent 7266069 commit 6324f64

File tree

113 files changed

+2994
-504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2994
-504
lines changed

.travis.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
script:
3030
- set -o pipefail
3131
- swift package resolve
32+
- set -o pipefail
3233
- xcodebuild -project ${PROJECT}
3334
-scheme ${TEST_FRAMEWORK_SCHEME}
3435
-clonedSourcePackagesDirPath .
@@ -79,7 +80,7 @@ jobs:
7980
- echo 'github "techprimate/TPPDF" "'$(git rev-parse HEAD)'"' > Cartfile
8081
- carthage update --platform ios --cache-builds
8182
script:
82-
- set -o pipefail
83+
- set -o pipefail
8384
- xcodebuild -project "$PROJECT"
8485
-scheme "$EXAMPLE_SCHEME"
8586
-sdk iphonesimulator
@@ -113,6 +114,29 @@ jobs:
113114
ONLY_ACTIVE_ARCH=YES
114115
build | xcpretty
115116

117+
- stage: Examples
118+
name: "Example macOS"
119+
language: objective-c
120+
env:
121+
- ROOT_FOLDER="Example macOS"
122+
script:
123+
- cd "${ROOT_FOLDER}"
124+
- xcodebuild -resolvePackageDependencies
125+
-project ${PROJECT}
126+
-scheme ${EXAMPLE_SCHEME}
127+
-clonedSourcePackagesDirPath .
128+
-derivedDataPath ${TRAVIS_BUILD_DIR}/derived_data
129+
-configuration Debug | xcpretty
130+
- set -o pipefail
131+
- xcodebuild -project ${PROJECT}
132+
-scheme ${EXAMPLE_SCHEME}
133+
-clonedSourcePackagesDirPath .
134+
-derivedDataPath ${TRAVIS_BUILD_DIR}/derived_data
135+
-sdk macosx10.15
136+
-configuration Debug
137+
ONLY_ACTIVE_ARCH=YES
138+
build | xcpretty
139+
116140
- stage: Documentation
117141
name: Generate Documentation
118142
language: objective-c

CHANGELOG.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Change Log
22

33
## [Unreleased](https://github.com/techprimate/TPPDF/tree/HEAD) (2020-??-??)
4-
[Full Changelog](https://github.com/techprimate/TPPDF/compare/2.1.2...HEAD)
4+
[Full Changelog](https://github.com/techprimate/TPPDF/compare/2.2.0...HEAD)
55

66
**Implemented enhancements:**
77

@@ -11,6 +11,21 @@
1111

1212
**Merged pull requests:**
1313

14+
## [Unreleased](https://github.com/techprimate/TPPDF/tree/HEAD) (2020-06-27)
15+
[Full Changelog](https://github.com/techprimate/TPPDF/compare/2.1.2...2.2.0)
16+
17+
**Implemented enhancements:**
18+
19+
- macOS Support!
20+
21+
**Closed issues:**
22+
23+
- Issue #193
24+
25+
**Merged pull requests:**
26+
27+
- PR #217
28+
1429
## [2.1.2](https://github.com/techprimate/TPPDF/tree/2.1.2) (2020-06-23)
1530
[Full Changelog](https://github.com/techprimate/TPPDF/compare/2.1.1...2.1.2)
1631

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Example macOS/Example.xcodeproj/project.pbxproj

+555
Large diffs are not rendered by default.

Example macOS/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "Nimble",
6+
"repositoryURL": "https://github.com/Quick/Nimble",
7+
"state": {
8+
"branch": null,
9+
"revision": "72f5a90d573f7f7d70aa6b8ad84b3e1e02eabb4d",
10+
"version": "8.0.9"
11+
}
12+
},
13+
{
14+
"package": "Quick",
15+
"repositoryURL": "https://github.com/Quick/Quick",
16+
"state": {
17+
"branch": null,
18+
"revision": "33682c2f6230c60614861dfc61df267e11a1602f",
19+
"version": "2.2.0"
20+
}
21+
}
22+
]
23+
},
24+
"version": 1
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1150"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D48C538424A269F400D7A3DD"
18+
BuildableName = "Example.app"
19+
BlueprintName = "Example"
20+
ReferencedContainer = "container:Example.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "D48C538424A269F400D7A3DD"
48+
BuildableName = "Example.app"
49+
BlueprintName = "Example"
50+
ReferencedContainer = "container:Example.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
<EnvironmentVariables>
54+
<EnvironmentVariable
55+
key = "CG_CONTEXT_SHOW_BACKTRACE"
56+
value = ""
57+
isEnabled = "YES">
58+
</EnvironmentVariable>
59+
<EnvironmentVariable
60+
key = "CG_NUMERICS_SHOW_BACKTRACE"
61+
value = ""
62+
isEnabled = "YES">
63+
</EnvironmentVariable>
64+
</EnvironmentVariables>
65+
</LaunchAction>
66+
<ProfileAction
67+
buildConfiguration = "Release"
68+
shouldUseLaunchSchemeArgsEnv = "YES"
69+
savedToolIdentifier = ""
70+
useCustomWorkingDirectory = "NO"
71+
debugDocumentVersioning = "YES">
72+
<BuildableProductRunnable
73+
runnableDebuggingMode = "0">
74+
<BuildableReference
75+
BuildableIdentifier = "primary"
76+
BlueprintIdentifier = "D48C538424A269F400D7A3DD"
77+
BuildableName = "Example.app"
78+
BlueprintName = "Example"
79+
ReferencedContainer = "container:Example.xcodeproj">
80+
</BuildableReference>
81+
</BuildableProductRunnable>
82+
</ProfileAction>
83+
<AnalyzeAction
84+
buildConfiguration = "Debug">
85+
</AnalyzeAction>
86+
<ArchiveAction
87+
buildConfiguration = "Release"
88+
revealArchiveInOrganizer = "YES">
89+
</ArchiveAction>
90+
</Scheme>
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// AppDelegate.swift
3+
// Example
4+
//
5+
// Created by Philip Niedertscheider on 23.06.20.
6+
// Copyright © 2020 techprimate GmbH & Co. KG. All rights reserved.
7+
//
8+
9+
import Cocoa
10+
import SwiftUI
11+
12+
@NSApplicationMain
13+
class AppDelegate: NSObject, NSApplicationDelegate {
14+
15+
var window: NSWindow!
16+
17+
func applicationDidFinishLaunching(_ aNotification: Notification) {
18+
let contentView = ContentView()
19+
20+
window = NSWindow(
21+
contentRect: NSRect(x: 0, y: 0, width: 800, height: 600),
22+
styleMask: [.titled, .closable, .miniaturizable, .resizable, .fullSizeContentView],
23+
backing: .buffered,
24+
defer: false)
25+
window.title = "TPPDF Examples"
26+
window.center()
27+
window.setFrameAutosaveName("Main Window")
28+
window.contentView = NSHostingView(rootView: contentView)
29+
window.makeKeyAndOrderFront(nil)
30+
}
31+
32+
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
33+
true
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "mac",
5+
"scale" : "1x",
6+
"size" : "16x16"
7+
},
8+
{
9+
"idiom" : "mac",
10+
"scale" : "2x",
11+
"size" : "16x16"
12+
},
13+
{
14+
"idiom" : "mac",
15+
"scale" : "1x",
16+
"size" : "32x32"
17+
},
18+
{
19+
"idiom" : "mac",
20+
"scale" : "2x",
21+
"size" : "32x32"
22+
},
23+
{
24+
"idiom" : "mac",
25+
"scale" : "1x",
26+
"size" : "128x128"
27+
},
28+
{
29+
"idiom" : "mac",
30+
"scale" : "2x",
31+
"size" : "128x128"
32+
},
33+
{
34+
"idiom" : "mac",
35+
"scale" : "1x",
36+
"size" : "256x256"
37+
},
38+
{
39+
"idiom" : "mac",
40+
"scale" : "2x",
41+
"size" : "256x256"
42+
},
43+
{
44+
"idiom" : "mac",
45+
"scale" : "1x",
46+
"size" : "512x512"
47+
},
48+
{
49+
"idiom" : "mac",
50+
"scale" : "2x",
51+
"size" : "512x512"
52+
}
53+
],
54+
"info" : {
55+
"author" : "xcode",
56+
"version" : 1
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

0 commit comments

Comments
 (0)