Skip to content

Commit

Permalink
fix: Header imports for mParticle SDK (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 authored Jan 26, 2024
1 parent 52085b8 commit 6bd7871
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions mParticle-Radar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ Pod::Spec.new do |s|
s.ios.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.0'
s.ios.dependency 'RadarSDK', '~> 3.4.4'
s.ios.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/RadarSDK/**',
'OTHER_LDFLAGS' => '$(inherited) -framework "RadarSDK"',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.ios.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
'OTHER_LDFLAGS' => '$(inherited) -framework "RadarSDK"' }
end
9 changes: 7 additions & 2 deletions mParticle-Radar/MPKitRadar.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

@interface MPKitRadar : NSObject <MPKitProtocol>
Expand Down

0 comments on commit 6bd7871

Please sign in to comment.