Skip to content

Commit 6b5e460

Browse files
committed
Merge pull request #347 from ziogaschr/cocoapod-without-idfa
Add CocoaPods subpec that doesn't add AdSupport (IDFA)
2 parents a11e97b + 8313bb8 commit 6b5e460

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Branch.podspec

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ Use the Branch SDK (branch.io) to create and power the links that point back to
2121
s.platform = :ios, '6.0'
2222
s.requires_arc = true
2323

24-
s.source_files = "Branch-SDK/Branch-SDK/*.{h,m}", "Branch-SDK/Fabric/*.h", "Branch-SDK/Branch-SDK/Requests/*.{h,m}"
24+
s.subspec 'Core' do |core|
25+
core.source_files = "Branch-SDK/Branch-SDK/*.{h,m}", "Branch-SDK/Fabric/*.h", "Branch-SDK/Branch-SDK/Requests/*.{h,m}"
2526

26-
s.frameworks = 'AdSupport', 'CoreTelephony', 'MobileCoreServices'
27+
core.frameworks = 'AdSupport', 'CoreTelephony', 'MobileCoreServices'
28+
end
29+
30+
s.subspec 'without-IDFA' do |idfa|
31+
idfa.source_files = "Branch-SDK/Branch-SDK/*.{h,m}", "Branch-SDK/Fabric/*.h", "Branch-SDK/Branch-SDK/Requests/*.{h,m}"
32+
33+
idfa.frameworks = 'CoreTelephony', 'MobileCoreServices'
34+
end
2735
end

0 commit comments

Comments
 (0)