Skip to content

Commit

Permalink
Swift Package Manager Support
Browse files Browse the repository at this point in the history
* Swift Package Manager Support

* Update to KochavaTracker 4.0.0
  • Loading branch information
BrandonStalnaker authored Oct 1, 2020
1 parent 2bb9d8b commit e09ff00
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/1440 * * * *'
- cron: '1 * */1 * *'

jobs:
test:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ fastlane/test_output
**/*.xcworkspace
**/*.DS_Store
*.DS_Store
**/.build
**/Packages
**/.resolved

33 changes: 33 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "mParticle-Kochava",
platforms: [
.iOS("10.3"),
.tvOS("10.2"),
],
products: [
.library(
name: "mParticle-Kochava",
targets: ["mParticle-Kochava"]),
],
dependencies: [
.package(name: "mParticle-Apple-SDK", url: "[email protected]:mParticle/mparticle-apple-sdk.git", from: "8.0.1"),
.package(
name: "KochavaCore",
url: "https://github.com/Kochava/Apple-SwiftPackage-KochavaCore",
from: "4.0.0"
),
.package(name: "KochavaTracker", url: "https://github.com/Kochava/Apple-SwiftPackage-KochavaTracker.git", from: "4.0.0"),
],
targets: [
.target(
name: "mParticle-Kochava",
dependencies: ["mParticle-Apple-SDK","KochavaCore", "KochavaTracker"],
path: "mParticle-Kochava",
publicHeadersPath: "."),
],
cxxLanguageStandard: .cxx11
)
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

This repository contains the [Kochava](https://www.kochava.com) integration for the [mParticle Apple SDK](https://github.com/mParticle/mparticle-apple-sdk).

## Installation

KochavaTracker 4.0.0 and on is a Swift package. To install it, simply add this package as a dependency.

In Xcode, see File > Swift Packages > Add Package Dependency ... > and enter the URL for this package repository.

## Integration using CocoaPods

Prior to 4.0.0, KochavaTracker supported CocoaPods.

### Adding the integration

1. Add the kit dependency to your app's Podfile:
Expand Down

0 comments on commit e09ff00

Please sign in to comment.