From a5443895adb60b816168ea2607a2f2bc3e1e21bd Mon Sep 17 00:00:00 2001 From: Jin Xu Date: Tue, 19 Nov 2024 14:00:50 -0800 Subject: [PATCH] update dependency version --- AmplitudeSwift.podspec | 2 +- Package.swift | 5 ++--- Package@swift-5.9.swift | 43 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 Package@swift-5.9.swift diff --git a/AmplitudeSwift.podspec b/AmplitudeSwift.podspec index 0a4865b..7596e4c 100644 --- a/AmplitudeSwift.podspec +++ b/AmplitudeSwift.podspec @@ -33,7 +33,7 @@ Pod::Spec.new do |s| s.visionos.source_files = 'Sources/Amplitude/**/*.{h,swift}' s.visionos.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } - s.dependency 'AnalyticsConnector', '~> 1.0.1' + s.dependency 'AnalyticsConnector', '~> 1.3.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } end diff --git a/Package.swift b/Package.swift index 858a0dc..7a7058e 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.9 +// swift-tools-version: 5.7 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -10,7 +10,6 @@ let package = Package( .iOS("13.0"), .tvOS("13.0"), .watchOS("7.0"), - .visionOS("1.0"), ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. @@ -20,7 +19,7 @@ let package = Package( ) ], dependencies: [ - .package(url: "https://github.com/amplitude/analytics-connector-ios.git", from: "1.0.1") + .package(url: "https://github.com/amplitude/analytics-connector-ios.git", from: "1.3.0") ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/Package@swift-5.9.swift b/Package@swift-5.9.swift new file mode 100644 index 0000000..8bd0a76 --- /dev/null +++ b/Package@swift-5.9.swift @@ -0,0 +1,43 @@ +// swift-tools-version: 5.9 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "Amplitude-Swift", + platforms: [ + .macOS("10.15"), + .iOS("13.0"), + .tvOS("13.0"), + .watchOS("7.0"), + .visionOS("1.0"), + ], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "AmplitudeSwift", + targets: ["AmplitudeSwift"] + ) + ], + dependencies: [ + .package(url: "https://github.com/amplitude/analytics-connector-ios.git", from: "1.3.0") + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "AmplitudeSwift", + dependencies: [ + .product(name: "AnalyticsConnector", package: "analytics-connector-ios") + ], + path: "Sources/Amplitude", + exclude: ["../../Examples/", "../../Tests/"], + resources: [.copy("PrivacyInfo.xcprivacy")] + ), + .testTarget( + name: "Amplitude-SwiftTests", + dependencies: ["AmplitudeSwift"], + path: "Tests/AmplitudeTests" + ), + ] +)