Skip to content

Commit

Permalink
Merge pull request #10 from Pyxisq/main
Browse files Browse the repository at this point in the history
Add support swift package
  • Loading branch information
Oscarworld authored Apr 30, 2021
2 parents cad5427 + 0e0a64c commit 155d316
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Carthage/Checkouts

Carthage/Build

# SPM
#
.swiftpm/

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand Down
23 changes: 23 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "MobileAnalyticsChartSwift",
platforms: [.iOS(.v11)],
products: [
.library(
name: "MobileAnalyticsChartSwift",
targets: ["MobileAnalyticsChartSwift"]
),
],
dependencies: [],
targets: [
.target(
name: "MobileAnalyticsChartSwift",
dependencies: [],
path: "MobileAnalyticsChartSwift"
)
]
)
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@

## Connecting dependencies

### Swift Package Manager

```swift
dependencies: [
.package(url: "https://github.com/yoomoney-tech/mobile-analytics-chart-swift")
],
targets: [
.target(
name: "MyProject",
dependencies: [..., "MobileAnalyticsChartSwift"]
)
...
]
```
### CocoaPods

1. Install CocoaPods
Expand Down Expand Up @@ -261,4 +275,4 @@ pod install

## License

Mobile Analytics Chart Swift available under the MIT license. See the [LICENSE](https://github.com/yoomoney-tech/mobile-analytics-chart-swift/blob/master/LICENSE) file for more information.
Mobile Analytics Chart Swift available under the MIT license. See the [LICENSE](https://github.com/yoomoney-tech/mobile-analytics-chart-swift/blob/master/LICENSE) file for more information.

0 comments on commit 155d316

Please sign in to comment.