Skip to content
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
10 changes: 1 addition & 9 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,13 @@ jobs:
runs-on: ${{ matrix.macos }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: CocoaPod Install
run: pod install
- name: Build and Test
run: |
xcodebuild test \
-workspace ParselyDemo.xcworkspace \
-project Demo/ParselyDemo.xcodeproj \
-scheme ParselyDemo \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \
Expand Down
618 changes: 618 additions & 0 deletions Demo/ParselyDemo.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
Expand Up @@ -38,7 +38,7 @@
</MacroExpansion>
<TestPlans>
<TestPlanReference
reference = "container:ParselyTrackerTests/UnitTests.xctestplan"
reference = "container:../Tests/UnitTests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import UIKit
import ParselyTracker
import ParselyAnalytics

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit
import os.log
import ParselyTracker
import ParselyAnalytics

class FirstViewController: UIViewController {
let delegate = UIApplication.shared.delegate as! AppDelegate
Expand Down
File renamed without changes.
32 changes: 32 additions & 0 deletions Package.resolved

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

12 changes: 7 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ let package = Package(
targets: ["ParselyAnalytics"]
),
],
dependencies: [],
dependencies: [
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "12.0.0"))
],
targets: [
.target(
name: "ParselyAnalytics",
dependencies: [],
path: "ParselyTracker",
path: "Sources",
exclude: ["Info.plist"],
resources: []
),
.testTarget(
name: "ParselyTrackerTests",
dependencies: ["ParselyAnalytics"],
path: "ParselyTrackerTests",
exclude: ["Info.plist"]
dependencies: ["ParselyAnalytics", "Nimble"],
path: "Tests",
exclude: ["Info.plist", "UnitTests.xctestplan"]
)
]
)
6 changes: 5 additions & 1 deletion ParselyAnalytics.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '13.0'
s.tvos.deployment_target = '13.0'
s.source = { git: 'https://github.com/Parsely/AnalyticsSDK-iOS.git', tag: s.version.to_s }
s.source_files = 'ParselyTracker'
s.source_files = 'Sources'
s.framework = 'Foundation'
s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests'
test_spec.dependency 'Nimble'
end
Comment on lines +16 to +19
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is neat. It will make the unit tests run as part of the pod validation process.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can change the "Build and Test" CI task to run tests using SPM (via xcodebuild test) and CocoaPods (via pod lint)?

end
Loading