Skip to content

Commit

Permalink
CocoaPods Support (#135)
Browse files Browse the repository at this point in the history
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
winsmith authored Jan 11, 2024
1 parent c804f2e commit 52d9385
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cocoapods.yaml
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 }}
1 change: 0 additions & 1 deletion Sources/TelemetryClient/TelemetryClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ FOUNDATION_EXPORT const unsigned char TelemetryClientVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <TelemetryClient/PublicHeader.h>
#import <TelemetryClient/TelemetryClient.h>

21 changes: 18 additions & 3 deletions TelemetryClient.podspec
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" => "daniel@telemetrydeck.com" }
spec.ios.deployment_target = "12.0"
Expand Down

0 comments on commit 52d9385

Please sign in to comment.