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

Modify cocoapods spec to make it work with v3 #79

Merged
merged 7 commits into from
Oct 25, 2023
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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Carthage/Build
# - Also handy if you have a large number of dependant pods
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE
Pods/
*.lock

### Swift ###
# Xcode
Expand Down Expand Up @@ -69,9 +70,8 @@ playground.xcworkspace
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace
*.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Expand Down
37 changes: 0 additions & 37 deletions Podfile

This file was deleted.

17 changes: 8 additions & 9 deletions PostHog.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PostHog"
s.version = "2.1.0"
s.version = "3.0.0-alpha.1"
s.summary = "The hassle-free way to add posthog to your iOS app."

s.description = <<-DESC
Expand All @@ -10,19 +10,18 @@ Pod::Spec.new do |s|

s.homepage = "http://posthog.com/"
s.license = { :type => 'MIT' }
s.author = { "PostHog" => "tim@posthog.com" }
s.author = { "PostHog" => "engineering@posthog.com" }
s.source = { :git => "https://github.com/PostHog/posthog-ios.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/PostHog'

s.ios.deployment_target = '11.0'
s.tvos.deployment_target = '11.0'
s.ios.deployment_target = '13.0'
s.tvos.deployment_target = '13.0'
s.osx.deployment_target = "10.14"
s.swift_versions = "5.3"

s.ios.frameworks = 'CoreTelephony'
s.frameworks = 'Security', 'StoreKit', 'SystemConfiguration', 'UIKit'
s.frameworks = 'Foundation'

s.source_files = [
'PostHog/Classes/**/*',
'PostHog/Internal/**/*',
'PostHog/Vendor/**/*'
'PostHog/**/*'
]
end
33 changes: 33 additions & 0 deletions PostHog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@
remoteGlobalIDString = 3AC745B4296D6FE60025C109;
remoteInfo = PostHog;
};
690FF0332AE7C5BB00A0B06B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 690FF02F2AE7C5BA00A0B06B /* PostHogExampleWithPods.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 690FF01E2AE7C5B900A0B06B;
remoteInfo = PostHogExampleWithPods;
};
69278D4D2AE6BC9000BB541A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 3AC745AC296D6FE60025C109 /* Project object */;
Expand Down Expand Up @@ -160,6 +167,7 @@
3AE3FB48299391DF00AFFC18 /* PostHogStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogStorage.swift; sourceTree = "<group>"; };
3AE3FB4A2993A68500AFFC18 /* StorageTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StorageTest.swift; sourceTree = "<group>"; };
3AE3FB4D2993D1D600AFFC18 /* PostHogSessionManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogSessionManager.swift; sourceTree = "<group>"; };
690FF02F2AE7C5BA00A0B06B /* PostHogExampleWithPods.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PostHogExampleWithPods.xcodeproj; path = PostHogExampleWithPods/PostHogExampleWithPods.xcodeproj; sourceTree = "<group>"; };
69261D122AD5685B00232EC7 /* PostHogFeatureFlags.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogFeatureFlags.swift; sourceTree = "<group>"; };
69261D182AD9673500232EC7 /* PostHogBatchUploadInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogBatchUploadInfo.swift; sourceTree = "<group>"; };
69261D1A2AD9678C00232EC7 /* PostHogEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostHogEvent.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -283,6 +291,7 @@
3AC745AB296D6FE60025C109 = {
isa = PBXGroup;
children = (
690FF02F2AE7C5BA00A0B06B /* PostHogExampleWithPods.xcodeproj */,
3AAFB13129C0C699004F485B /* Package.swift */,
3AC745B7296D6FE60025C109 /* PostHog */,
3AC745C3296D6FE60025C109 /* PostHogTests */,
Expand Down Expand Up @@ -342,6 +351,14 @@
path = PostHogTests;
sourceTree = "<group>";
};
690FF0302AE7C5BA00A0B06B /* Products */ = {
isa = PBXGroup;
children = (
690FF0342AE7C5BB00A0B06B /* PostHogExampleWithPods.app */,
);
name = Products;
sourceTree = "<group>";
};
69261D152AD92D6C00232EC7 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -517,6 +534,12 @@
);
productRefGroup = 3AC745B6296D6FE60025C109 /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = 690FF0302AE7C5BA00A0B06B /* Products */;
ProjectRef = 690FF02F2AE7C5BA00A0B06B /* PostHogExampleWithPods.xcodeproj */;
},
);
projectRoot = "";
targets = (
3AC745B4296D6FE60025C109 /* PostHog */,
Expand All @@ -527,6 +550,16 @@
};
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
690FF0342AE7C5BB00A0B06B /* PostHogExampleWithPods.app */ = {
isa = PBXReferenceProxy;
fileType = wrapper.application;
path = PostHogExampleWithPods.app;
remoteRef = 690FF0332AE7C5BB00A0B06B /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */

/* Begin PBXResourcesBuildPhase section */
3AA34CF5296D951A003398F4 /* Resources */ = {
isa = PBXResourcesBuildPhase;
Expand Down
14 changes: 0 additions & 14 deletions PostHog/PostHogDataMode.swift

This file was deleted.

2 changes: 1 addition & 1 deletion PostHog/PostHogVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

import Foundation

let postHogVersion = "3.0.0"
let postHogVersion = "3.0.0-alpha.1"
7 changes: 7 additions & 0 deletions PostHogExampleWithPods/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
platform :ios, '16.0'

use_frameworks!

target 'PostHogExampleWithPods' do
pod 'PostHog', :path => '../'
end
Loading
Loading