Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,9 @@ Example*/dependencies-state.json
Example*/manifest.db
Exampl*/repositories

# Carthage
Example*/Carthage
Example*/derived_data
Example*/Cartfile.resolved

# Swift Package Manager
.swiftpm

# Xcode Schemes, so Carthage doesn't complain
!Example iOS/TPPDF.xcodeproj/xcsharedata/xcschemes/TPPDF.xcscheme
!Example iOS/TPPDF.xcodeproj/xcsharedata/xcschemes/TPPDF-Example.xcscheme

# Ruby Gems
vendor

Expand Down
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ disabled_rules:
- inclusive_language
- trailing_comma
excluded:
- Carthage
- Dangerfile.swift
opt_in_rules:
- array_init
Expand Down
8 changes: 0 additions & 8 deletions Dangerfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ if (danger.github.pullRequest.additions ?? 0) > 500 {
warn("Big PR, try to keep changes smaller if you can")
}

// Added (or removed) library files need to be added (or removed) from the
// Xcode project to avoid breaking things for our Carthage/manual framework.
let addedSwiftLibraryFiles = danger.git.createdFiles.contains { $0.fileType == .swift && $0.hasPrefix("Source") }
let deletedSwiftLibraryFiles = danger.git.deletedFiles.contains { $0.fileType == .swift && $0.hasPrefix("Source") }
if addedSwiftLibraryFiles || deletedSwiftLibraryFiles {
fail("Added or removed library files require the Carthage Xcode project to be updated.")
}

// Warning message for not updated package manifest(s)
let manifests = [
"Package.swift",
Expand Down
23 changes: 2 additions & 21 deletions Documentation/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,11 @@ As of TPPDF 2.0 and Swift 5.2, we do not actively support older Swift versions a
| Swift 2.3 | [swift-2.3](https://github.com/techprimate/TPPDF/tree/swift-2.3) | Xcode 8, Xcode 7.3.x | iOS 8.0+ |
| Swift 2.2 | [swift-2.2](https://github.com/techprimate/TPPDF/tree/swift-2.3) | Xcode 7.3.x | iOS 8.0+ |

## Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with [Homebrew](http://brew.sh/) using the following command:

```bash
$ brew update
$ brew install carthage
```

To integrate TPPDF into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "techprimate/TPPDF" ~> 1.4
```

Run `carthage update` to build the framework and drag the built `TPPDF.framework` into your Xcode project

## Swift Package Manager

Swift Package Manager is now supported for iOS. macOS support is a requested feature and work-in-progress.
Swift Package Manager is the supported dependency manager for TPPDF on iOS, macOS, Mac Catalyst, tvOS, watchOS, and visionOS.

Linux support is not available, as `UIKit` is not available on linux.
Linux is not supported because TPPDF depends on Apple graphics frameworks.

Once you have your Swift package set up, adding TPPDF as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.

Expand Down
1 change: 0 additions & 1 deletion Example iOS-Carthage/Cartfile

This file was deleted.

41 changes: 0 additions & 41 deletions Example iOS-Carthage/Example/Info.plist

This file was deleted.

599 changes: 0 additions & 599 deletions Example iOS-Carthage/Example_iOS-Carthage.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

<div align="center">
<img src="https://img.shields.io/badge/SPM-compatible-brightgreen.svg?style=flat-square" alt="Swift Package Manager"/>
<img src="https://img.shields.io/badge/Carthage-compatible-blue.svg?style=flat-square" alt="Carthage"/>
</div>

<p align="center">
Expand Down
4 changes: 2 additions & 2 deletions Shared iOS/Assets/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Example_iOS_Carthage" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Example_iOS_SPM" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="cnM-58-c1z"/>
<viewControllerLayoutGuide type="bottom" id="6df-A8-lCn"/>
Expand Down Expand Up @@ -59,7 +59,7 @@
<!--Examples-->
<scene sceneID="e2C-tU-P2m">
<objects>
<tableViewController id="OQp-47-Jlk" customClass="ExamplesListViewController" customModule="Example_iOS_Carthage" customModuleProvider="target" sceneMemberID="viewController">
<tableViewController id="OQp-47-Jlk" customClass="ExamplesListViewController" customModule="Example_iOS_SPM" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" id="jy2-SO-vwO">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand Down
23 changes: 0 additions & 23 deletions scripts/carthage.sh

This file was deleted.

Loading