Skip to content

Commit fe9dee6

Browse files
authored
SPM support (#9)
1 parent fa893ed commit fe9dee6

File tree

93 files changed

+208
-200
lines changed

Some content is hidden

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

93 files changed

+208
-200
lines changed

.gitmodules

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "Sources/IncitoWebview"]
2-
path = Sources/IncitoWebview
1+
[submodule "Sources/Incito/Resources/IncitoWebview"]
2+
path = Sources/Incito/Resources/IncitoWebview
33
url = https://github.com/shopgun/incito-webview.git

.swiftpm/xcode/package.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,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1230"
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 = "Incito_Incito"
18+
BuildableName = "Incito_Incito"
19+
BlueprintName = "Incito_Incito"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "Incito"
32+
BuildableName = "Incito"
33+
BlueprintName = "Incito"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "NO"
41+
buildForArchiving = "NO"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "IncitoTests"
46+
BuildableName = "IncitoTests"
47+
BlueprintName = "IncitoTests"
48+
ReferencedContainer = "container:">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
</BuildActionEntries>
52+
</BuildAction>
53+
<TestAction
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
shouldUseLaunchSchemeArgsEnv = "YES">
58+
<Testables>
59+
<TestableReference
60+
skipped = "NO">
61+
<BuildableReference
62+
BuildableIdentifier = "primary"
63+
BlueprintIdentifier = "IncitoTests"
64+
BuildableName = "IncitoTests"
65+
BlueprintName = "IncitoTests"
66+
ReferencedContainer = "container:">
67+
</BuildableReference>
68+
</TestableReference>
69+
</Testables>
70+
</TestAction>
71+
<LaunchAction
72+
buildConfiguration = "Debug"
73+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
74+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
75+
launchStyle = "0"
76+
useCustomWorkingDirectory = "NO"
77+
ignoresPersistentStateOnLaunch = "NO"
78+
debugDocumentVersioning = "YES"
79+
debugServiceExtension = "internal"
80+
allowLocationSimulation = "YES">
81+
</LaunchAction>
82+
<ProfileAction
83+
buildConfiguration = "Release"
84+
shouldUseLaunchSchemeArgsEnv = "YES"
85+
savedToolIdentifier = ""
86+
useCustomWorkingDirectory = "NO"
87+
debugDocumentVersioning = "YES">
88+
<MacroExpansion>
89+
<BuildableReference
90+
BuildableIdentifier = "primary"
91+
BlueprintIdentifier = "Incito_Incito"
92+
BuildableName = "Incito_Incito"
93+
BlueprintName = "Incito_Incito"
94+
ReferencedContainer = "container:">
95+
</BuildableReference>
96+
</MacroExpansion>
97+
</ProfileAction>
98+
<AnalyzeAction
99+
buildConfiguration = "Debug">
100+
</AnalyzeAction>
101+
<ArchiveAction
102+
buildConfiguration = "Release"
103+
revealArchiveInOrganizer = "YES">
104+
</ArchiveAction>
105+
</Scheme>

.travis.yml

-8
This file was deleted.

Incito.podspec

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Incito"
4-
s.version = "1.0.2"
4+
s.version = "1.0.3"
55
s.summary = "Incito viewer for iOS."
66
s.description = <<-DESC
77
A library for loading and viewing Incito-format documents.
88
DESC
99
s.homepage = "https://github.com/shopgun/incito-ios"
1010
s.license = "MIT"
11-
s.author = "ShopGun"
12-
s.social_media_url = "http://twitter.com/ShopGun"
11+
s.author = "Tjek"
1312

1413
s.platform = :ios, "9.3"
1514
s.swift_version = "5.0.1"

LICENSE.md

+1-1

Demo/Incito-Demo/AppDelegate.swift OLD/Demo/Incito-Demo/AppDelegate.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116

Demo/Incito-Demo/DemoViewController.swift OLD/Demo/Incito-Demo/DemoViewController.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116
import Incito
File renamed without changes.
File renamed without changes.

Package.swift

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// swift-tools-version:5.3
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "Incito",
6+
defaultLocalization: "en",
7+
platforms: [
8+
.iOS(.v9),
9+
],
10+
products: [
11+
.library(
12+
name: "Incito",
13+
targets: ["Incito"]
14+
),
15+
],
16+
targets: [
17+
.target(
18+
name: "Incito",
19+
dependencies: [],
20+
resources: [
21+
.process("Resources/IncitoWebview")
22+
]
23+
),
24+
.testTarget(
25+
name: "IncitoTests",
26+
dependencies: ["Incito"]
27+
)
28+
]
29+
)

Sources/IncitoDocument.swift Sources/Incito/IncitoDocument.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2019 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2019 Tjek. All rights reserved.
3+
///
94

105
import Foundation
116
import UIKit

Sources/IncitoLoader+JSONFile.swift Sources/Incito/IncitoLoader+JSONFile.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2019 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2019 Tjek. All rights reserved.
3+
///
94

105
import Foundation
116

Sources/IncitoLoader.swift Sources/Incito/IncitoLoader.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116

Sources/IncitoLoaderViewController.swift Sources/Incito/IncitoLoaderViewController.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116

Sources/IncitoViewController.swift Sources/Incito/IncitoViewController.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116
import WebKit

Sources/JSONValue.swift Sources/Incito/JSONValue.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import Foundation
116

Sources/LoaderViews/CopyableLabel.swift Sources/Incito/LoaderViews/CopyableLabel.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116

Sources/LoaderViews/DefaultErrorViewController.swift Sources/Incito/LoaderViews/DefaultErrorViewController.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116

Sources/LoaderViews/DefaultLoadingViewController.swift Sources/Incito/LoaderViews/DefaultLoadingViewController.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import UIKit
116

Sources/LoaderViews/String+PreventWidows.swift Sources/Incito/LoaderViews/String+PreventWidows.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import Foundation
116

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
4+
5+
import Foundation
6+
7+
/// A nice way to reference the current `.incito` bundle
8+
private class IncitoReferenceClass { }
9+
10+
extension Bundle {
11+
@objc
12+
public static var incito: Bundle {
13+
return Bundle(for: IncitoReferenceClass.self)
14+
}
15+
}
Submodule IncitoWebview added at 2763b33

Sources/Resources/Resources.swift Sources/Incito/Resources/Resources.swift

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
//
2-
// ┌────┬─┐ ┌─────┐
3-
// │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐
4-
// ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │
5-
// └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘
6-
// └─┘
7-
//
8-
// Copyright (c) 2018 ShopGun. All rights reserved.
1+
///
2+
/// Copyright (c) 2018 Tjek. All rights reserved.
3+
///
94

105
import Foundation
116

0 commit comments

Comments
 (0)