diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index a75ede9..7781c38 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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: diff --git a/.gitignore b/.gitignore index 7819949..6e0fbd2 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,7 @@ fastlane/test_output **/*.xcworkspace **/*.DS_Store *.DS_Store +**/.build +**/Packages +**/.resolved + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..88da7ec --- /dev/null +++ b/Package.swift @@ -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: "git@github.com: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 +) diff --git a/README.md b/README.md index 387d6f5..bb40477 100644 --- a/README.md +++ b/README.md @@ -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: