Skip to content

Commit

Permalink
add swift package manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-gavrilov committed Dec 8, 2019
1 parent 46373b3 commit 2811137
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "GDPerformanceView-Swift",
platforms: [.iOS(.v8)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "GDPerformanceView-Swift",
targets: ["GDPerformanceView-Swift"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "GDPerformanceView-Swift",
dependencies: []),
.testTarget(
name: "GDPerformanceView-SwiftTests",
dependencies: ["GDPerformanceView-Swift"]),
]
)
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Shows FPS, CPU and memory usage, device model, app and iOS versions above the status bar and report FPS, CPU and memory usage via delegate.

[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage)
[![Pod Version](https://img.shields.io/badge/Pod-2.0.2-6193DF.svg)](https://cocoapods.org/)
[![Pod Version](https://img.shields.io/badge/Pod-2.0.3-6193DF.svg)](https://cocoapods.org/)
![Swift Version](https://img.shields.io/badge/xCode-10.1+-blue.svg)
![Swift Version](https://img.shields.io/badge/iOS-8.0+-blue.svg)
![Swift Version](https://img.shields.io/badge/Swift-4.2+-orange.svg)
Expand All @@ -21,7 +21,7 @@ Simply add GDPerformanceMonitoring folder with files to your project, or use Coc
Create a `Cartfile` that lists the framework and run `carthage update`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/GDPerformanceView.framework` to an iOS project.

```ruby
github "dani-gavrilov/GDPerformanceView-Swift" ~> 2.0.2
github "dani-gavrilov/GDPerformanceView-Swift" ~> 2.0.3
```
Don't forget to import GDPerformanceView by adding:

Expand All @@ -37,7 +37,7 @@ platform :ios, '8.0'
use_frameworks!

target 'project_name' do
pod 'GDPerformanceView-Swift', '~> 2.0.2'
pod 'GDPerformanceView-Swift', '~> 2.0.3'
end
```
Don't forget to import GDPerformanceView by adding:
Expand Down Expand Up @@ -174,7 +174,7 @@ func performanceMonitor(didReport performanceReport: PerformanceReport) {

## Donations

Wanna say thanks? You can do it using [PayPal](https://paypal.me/danigavrilov).
Wanna say thanks? You can do it using [Patreon](https://www.patreon.com/dani_gavrilov).

## Meta

Expand Down

0 comments on commit 2811137

Please sign in to comment.