From ee3669ed8593d505d196bf5d9fcc58d5a005fa21 Mon Sep 17 00:00:00 2001 From: Daniel <95646168+daniel-statsig@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:32:06 -0700 Subject: [PATCH] Add xcprivacy to podspec (#259) --- Package.swift | 19 +++++++++++-------- Statsig.podspec | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Package.swift b/Package.swift index a647cf2..9894d08 100644 --- a/Package.swift +++ b/Package.swift @@ -20,17 +20,20 @@ let package = Package( .target( name: "Statsig", dependencies: [.target(name: "StatsigInternalObjC")], - path: "Sources/Statsig"), + path: "Sources/Statsig" + ), .target(name: "StatsigInternalObjC", - path: "Sources/StatsigInternalObjC", - publicHeadersPath: "include", - cSettings: [ - .headerSearchPath("."), - .headerSearchPath("Private"), - ]), + path: "Sources/StatsigInternalObjC", + publicHeadersPath: "include", + cSettings: [ + .headerSearchPath("."), + .headerSearchPath("Private"), + ] + ), .testTarget( name: "StatsigTests", - dependencies: ["Statsig", "Quick", "Nimble", "OHHTTPStubs", .product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs")]), + dependencies: ["Statsig", "Quick", "Nimble", "OHHTTPStubs", .product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs")] + ), .testTarget( name: "StatsigObjcTests", dependencies: [.target(name: "Statsig"),.product(name: "OCMock", package: "ocmock")], diff --git a/Statsig.podspec b/Statsig.podspec index 61bc656..61c1c11 100644 --- a/Statsig.podspec +++ b/Statsig.podspec @@ -25,6 +25,7 @@ Pod::Spec.new do |spec| spec.source = { :git => "https://github.com/statsig-io/ios-sdk.git", :tag => "#{spec.version}" } spec.source_files = "Sources/Statsig/**/*.swift" + spec.resource_bundles = {"Statsig" => ["PrivacyInfo.xcprivacy"]} spec.default_subspec = 'StatsigInternalObjC' spec.swift_version = '5.0'