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
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github: philprime
custom: "https://www.paypal.me/tprm8"
18 changes: 0 additions & 18 deletions .github/stale.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

# Xcode

# Generated with make generate-example-spm
Example-SPM/Example-SPM.xcodeproj/
# Generated with make generate-example
Example/Example.xcodeproj/

## Build generated
build/
Expand Down
23 changes: 0 additions & 23 deletions .kodiak.toml

This file was deleted.

3 changes: 1 addition & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ identifier_name:
error: 2
warning: 2
included:
- Example*
- Shared*
- Example
- Source
- Tests
line_length: 150
Expand Down
16 changes: 7 additions & 9 deletions Example-SPM/Example-SPM.yml → Example/Example.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Example-SPM
name: Example
options:
bundleIdPrefix: com.techprimate.TPPDF
deploymentTarget:
Expand All @@ -8,22 +8,20 @@ options:
watchOS: "9.0"
visionOS: "1.0"
fileGroups:
- Example-SPM.yml
- Example.yml
configs:
Debug: debug
Release: release
packages:
TPPDF:
path: ..
targets:
Example-SPM:
Example:
type: application
platform: auto
sources:
- path: Example
- path: ../Shared/Examples
- path: ../Shared/Util
- path: ../Shared/Data
- path: Sources
- path: Resources
buildPhase: resources
dependencies:
- package: TPPDF
Expand Down Expand Up @@ -61,10 +59,10 @@ targets:
ENABLE_PREVIEWS: YES
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
schemes:
Example-SPM:
Example:
build:
targets:
Example-SPM: all
Example: all
run:
config: Debug
profile:
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
96 changes: 48 additions & 48 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ install-ci:
#
# Invokes all individual generate targets to ensure all example projects are up-to-date.
.PHONY: generate
generate: generate-example-spm
generate: generate-example

## Generate the shared Swift Package Manager example project
## Generate the SwiftUI example project
#
# Regenerates Example-SPM.xcodeproj from its XcodeGen specification.
.PHONY: generate-example-spm
generate-example-spm:
xcodegen generate --spec Example-SPM/Example-SPM.yml
# Regenerates Example.xcodeproj from its XcodeGen specification.
.PHONY: generate-example
generate-example:
xcodegen generate --spec Example/Example.yml

# ============================================================================
# BUILDING
Expand Down Expand Up @@ -190,76 +190,76 @@ build-xcframework:
# EXAMPLES
# ============================================================================

## Build the Swift Package Manager example for macOS
## Build the SwiftUI example for macOS
#
# Builds the shared example app without requiring signing credentials.
.PHONY: build-example-spm-macos
build-example-spm-macos: generate-example-spm
# Builds the SwiftUI example app without requiring signing credentials.
.PHONY: build-example-macos
build-example-macos: generate-example
set -o pipefail && xcrun xcodebuild \
-project Example-SPM/Example-SPM.xcodeproj \
-scheme Example-SPM \
-project Example/Example.xcodeproj \
-scheme Example \
-destination 'platform=macOS' \
-derivedDataPath build/Example-SPM \
-derivedDataPath build/Example \
CODE_SIGNING_ALLOWED=NO build | xcbeautify --preserve-unbeautified

## Build the Swift Package Manager example for iOS Simulator
## Build the SwiftUI example for iOS Simulator
#
# Builds the shared example app for any available iOS Simulator SDK.
.PHONY: build-example-spm-ios
build-example-spm-ios: generate-example-spm
# Builds the SwiftUI example app for any available iOS Simulator SDK.
.PHONY: build-example-ios
build-example-ios: generate-example
set -o pipefail && xcrun xcodebuild \
-project Example-SPM/Example-SPM.xcodeproj \
-scheme Example-SPM \
-project Example/Example.xcodeproj \
-scheme Example \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath build/Example-SPM \
-derivedDataPath build/Example \
CODE_SIGNING_ALLOWED=NO build | xcbeautify --preserve-unbeautified

## Build the Swift Package Manager example for Mac Catalyst
## Build the SwiftUI example for Mac Catalyst
#
# Builds the shared example app without requiring signing credentials.
.PHONY: build-example-spm-maccatalyst
build-example-spm-maccatalyst: generate-example-spm
# Builds the SwiftUI example app without requiring signing credentials.
.PHONY: build-example-maccatalyst
build-example-maccatalyst: generate-example
set -o pipefail && xcrun xcodebuild \
-project Example-SPM/Example-SPM.xcodeproj \
-scheme Example-SPM \
-project Example/Example.xcodeproj \
-scheme Example \
-destination 'generic/platform=macOS,variant=Mac Catalyst' \
-derivedDataPath build/Example-SPM-maccatalyst \
-derivedDataPath build/Example-maccatalyst \
CODE_SIGNING_ALLOWED=NO build | xcbeautify --preserve-unbeautified

## Build the Swift Package Manager example for tvOS Simulator
## Build the SwiftUI example for tvOS Simulator
#
# Builds the shared example app without requiring signing credentials.
.PHONY: build-example-spm-tvos
build-example-spm-tvos: generate-example-spm
# Builds the SwiftUI example app without requiring signing credentials.
.PHONY: build-example-tvos
build-example-tvos: generate-example
set -o pipefail && xcrun xcodebuild \
-project Example-SPM/Example-SPM.xcodeproj \
-scheme Example-SPM \
-project Example/Example.xcodeproj \
-scheme Example \
-destination 'generic/platform=tvOS Simulator' \
-derivedDataPath build/Example-SPM-tvos \
-derivedDataPath build/Example-tvos \
CODE_SIGNING_ALLOWED=NO build | xcbeautify --preserve-unbeautified

## Build the Swift Package Manager example for watchOS Simulator
## Build the SwiftUI example for watchOS Simulator
#
# Builds the shared example app without requiring signing credentials.
.PHONY: build-example-spm-watchos
build-example-spm-watchos: generate-example-spm
# Builds the SwiftUI example app without requiring signing credentials.
.PHONY: build-example-watchos
build-example-watchos: generate-example
set -o pipefail && xcrun xcodebuild \
-project Example-SPM/Example-SPM.xcodeproj \
-scheme Example-SPM \
-project Example/Example.xcodeproj \
-scheme Example \
-destination 'generic/platform=watchOS Simulator' \
-derivedDataPath build/Example-SPM-watchos \
-derivedDataPath build/Example-watchos \
CODE_SIGNING_ALLOWED=NO build | xcbeautify --preserve-unbeautified

## Build the Swift Package Manager example for visionOS Simulator
## Build the SwiftUI example for visionOS Simulator
#
# Builds the shared example app without requiring signing credentials.
.PHONY: build-example-spm-visionos
build-example-spm-visionos: generate-example-spm
# Builds the SwiftUI example app without requiring signing credentials.
.PHONY: build-example-visionos
build-example-visionos: generate-example
set -o pipefail && xcrun xcodebuild \
-project Example-SPM/Example-SPM.xcodeproj \
-scheme Example-SPM \
-project Example/Example.xcodeproj \
-scheme Example \
-destination 'generic/platform=visionOS Simulator' \
-derivedDataPath build/Example-SPM-visionos \
-derivedDataPath build/Example-visionos \
CODE_SIGNING_ALLOWED=NO build | xcbeautify --preserve-unbeautified

# ============================================================================
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ For everything else, please see [Communication](#communication) and [this messag
Take a look at the [Getting Started Guide](https://github.com/techprimate/TPPDF/blob/main/Documentation/Usage.md#getting-started) or checkout the Examples (using of one of the following):

- Clone the repository and install XcodeGen with `brew bundle`.
- Run `make generate-example-spm`, then open `Example-SPM/Example-SPM.xcodeproj`.
- Run the `Example-SPM` scheme on iOS 16+, macOS 12+, Mac Catalyst, tvOS 16+, visionOS 1+, or watchOS 9+.
- Run `make generate-example`, then open `Example/Example.xcodeproj`.
- Run the `Example` scheme on iOS 16+, macOS 12+, Mac Catalyst, tvOS 16+, visionOS 1+, or watchOS 9+.
- iOS, macOS, Mac Catalyst, tvOS, and visionOS display generated PDFs. watchOS reports generation success or errors without a PDF viewer.
- Edit `Example-SPM/Example-SPM.yml` to change project configuration, then regenerate it. The generated Xcode project is not committed.
- Build from the command line with `make build-example-spm-<platform>`, where `<platform>` is `ios`, `macos`, `maccatalyst`, `tvos`, `watchos`, or `visionos`.
- Edit `Example/Example.yml` to change project configuration, then regenerate it. The generated Xcode project is not committed.
- Build from the command line with `make build-example-<platform>`, where `<platform>` is `ios`, `macos`, `maccatalyst`, `tvos`, `watchos`, or `visionos`.

## Apps using TPPDF

Expand Down
56 changes: 0 additions & 56 deletions Shared iOS/Assets/Base.lproj/LaunchScreen.xib

This file was deleted.

Loading
Loading