Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocoaPods Support #135

Merged
merged 10 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" => "[email protected]" }
spec.ios.deployment_target = "12.0"
Expand Down