Skip to content

Commit

Permalink
Updated SwiftPM and CocoaPods support (#63)
Browse files Browse the repository at this point in the history
* Fix SwiftPM support for iOS

Including the iOS specific UI using the `#if os(iOS) ... #else ... #endif` doesn’t work as  the manifest is compiled for the host platform (see https://forums.swift.org/t/exclude-directories-per-platform-not-working/29418).
For now only iOS is supported with SwiftPM.

* Update podspec for iOS and macOS support

CocoaPods can now be used to integrate `LifetimeTracker` into iOS and macOS apps. The iOS specific UI is excluded for macOS. At some point there might be a macOS specific dashboard UI #18.

* Update examples to use latest podspec
  • Loading branch information
ReneLindhorst authored and krzysztofzablocki committed Nov 22, 2019
1 parent d35bc1b commit 8dd559a
Show file tree
Hide file tree
Showing 17 changed files with 641 additions and 708 deletions.
5 changes: 3 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
platform :ios, '8.0'

use_frameworks!

target 'Example' do
Expand All @@ -6,7 +8,6 @@ target 'Example' do

target 'Example_Tests' do
inherit! :search_paths


end

end
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- LifetimeTracker (1.7.0)
- LifetimeTracker (1.7.1)

DEPENDENCIES:
- LifetimeTracker (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
LifetimeTracker: cf663a0e0849d6dbcfac7704373d8e36e79688f6
LifetimeTracker: 1ef5970530677332f292bc26b476fe4faf9d33b9

PODFILE CHECKSUM: 3ded541c1f462a70d2242bbf3b430a4d4beaa6ed
PODFILE CHECKSUM: e91e3be8fb02f5c6156c564a223f1b57ddffa7f5

COCOAPODS: 1.8.4
30 changes: 21 additions & 9 deletions Example/Pods/Local Podspecs/LifetimeTracker.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

560 changes: 257 additions & 303 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions ExampleObjC/Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
platform :ios, '8.0'

use_frameworks!

target 'ExampleObjC' do
Expand Down
6 changes: 3 additions & 3 deletions ExampleObjC/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- LifetimeTracker (1.7.0)
- LifetimeTracker (1.7.1)

DEPENDENCIES:
- LifetimeTracker (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
LifetimeTracker: cf663a0e0849d6dbcfac7704373d8e36e79688f6
LifetimeTracker: e364d6b8f4de0cd3bcd278b33a80bd1660c6fcaf

PODFILE CHECKSUM: 53a082a33d4f42c68c2cf468e9eade3f676717d1
PODFILE CHECKSUM: d7142788e4e191a028bf1f058d7f8e372fac6645

COCOAPODS: 1.8.4
30 changes: 21 additions & 9 deletions ExampleObjC/Pods/Local Podspecs/LifetimeTracker.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ExampleObjC/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8dd559a

Please sign in to comment.