Skip to content

Commit

Permalink
fix: Header imports for mParticle SDK (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 authored Jan 26, 2024
1 parent c3baebf commit 982125e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 4 additions & 6 deletions mParticle-Localytics.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ Pod::Spec.new do |s|

s.ios.pod_target_xcconfig = {
'LIBRARY_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Localytics/**',
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Localytics/**',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Localytics/**'
}
s.ios.user_target_xcconfig = { 'OTHER_LDFLAGS' => '$(inherited) -framework "CoreLocation"', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.ios.user_target_xcconfig = { 'OTHER_LDFLAGS' => '$(inherited) -framework "CoreLocation"' }

s.tvos.deployment_target = "9.0"
s.tvos.source_files = 'mParticle-Localytics/*.{h,m,mm}'
Expand All @@ -34,9 +33,8 @@ Pod::Spec.new do |s|

s.tvos.pod_target_xcconfig = {
'LIBRARY_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Localytics/**',
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Localytics/**',
'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64'
'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/Localytics/**'
}
s.tvos.user_target_xcconfig = { 'OTHER_LDFLAGS' => '$(inherited) -framework "CoreLocation"', 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
s.tvos.user_target_xcconfig = { 'OTHER_LDFLAGS' => '$(inherited) -framework "CoreLocation"' }

end
9 changes: 7 additions & 2 deletions mParticle-Localytics/MPKitLocalytics.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#import <Foundation/Foundation.h>
#if defined(__has_include) && __has_include(<mParticle_Apple_SDK/mParticle.h>)
#import <mParticle_Apple_SDK/mParticle.h>
#import <mParticle_Apple_SDK/mParticle.h>
#import <mParticle_Apple_SDK/mParticle_Apple_SDK-Swift.h>
#elif defined(__has_include) && __has_include(<mParticle_Apple_SDK_NoLocation/mParticle.h>)
#import <mParticle_Apple_SDK_NoLocation/mParticle.h>
#import <mParticle_Apple_SDK_NoLocation/mParticle_Apple_SDK-Swift.h>
#else
#import "mParticle.h"
#import "mParticle.h"
#import "mParticle_Apple_SDK-Swift.h"
#endif


Expand Down

0 comments on commit 982125e

Please sign in to comment.