Skip to content

Commit

Permalink
Add xcprivacy to podspec (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-statsig authored Apr 2, 2024
1 parent 4043eec commit ee3669e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")],
Expand Down
1 change: 1 addition & 0 deletions Statsig.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ee3669e

Please sign in to comment.