-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds support for CocoaPods and tries to automatically push new versions to CocoaPods whenever a new tag is created. * Update existing podspec file * Add GH Action
- Loading branch information
Showing
3 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: deploy_to_cocoapods | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Deploy to Cocoapods | ||
run: | | ||
set -eo pipefail | ||
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
pod lib lint --allow-warnings | ||
pod trunk push --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
Pod::Spec.new do |spec| | ||
spec.name = "TelemetryClient" | ||
spec.version = "1.4.2" | ||
spec.version = ENV['LIB_VERSION'] || '1.5.0' #fallback to major version | ||
spec.summary = "Client SDK for TelemetryDeck" | ||
spec.swift_versions = "5.2" | ||
spec.description = "This package allows you to send signals to TelemetryDeck from your Swift code. Sign up for a free account at telemetrydeck.com." | ||
spec.homepage = "https://github.com/TelemetryDeck/SwiftClient" | ||
spec.summary = "Swift SDK for TelemetryDeck, a privacy-first analytics service for apps. Sign up for a free account at telemetrydeck.com." | ||
spec.description = <<-DESC | ||
Build better products with live usage data. | ||
Capture and analyize users moving through your app | ||
and get help deciding how to grow, all without | ||
compromising privacy! | ||
Setting up TelemetryDeck takes less than 10 minutes. | ||
Immediately after publishing your app, TelemetryDeck | ||
can show you a lot of base level information: | ||
How many users are new to your app? | ||
How many users are active? | ||
Which versions of your app are people running, and | ||
on which operating system and device type are they? | ||
DESC | ||
spec.homepage = "https://telemetrydeck.com/?source=cocoapods" | ||
spec.license = { :type => "MIT", :file => "LICENSE" } | ||
spec.author = { "Daniel Jilg" => "[email protected]" } | ||
spec.ios.deployment_target = "12.0" | ||
|