Skip to content

Commit

Permalink
Release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
王洋洋 committed Mar 8, 2023
1 parent 8fdce6a commit 972f5f6
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 11 deletions.
Binary file added .DS_Store
Binary file not shown.
22 changes: 14 additions & 8 deletions SensorsThirdParty.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SensorsThirdParty'
s.version = '0.0.1'
s.version = '0.0.2'
s.summary = 'The official iOS SDK of Sensors ThirdParty.'
s.homepage = 'http://www.sensorsdata.cn'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
Expand All @@ -15,14 +15,20 @@ Pod::Spec.new do |s|
base_dir = 'iOS/SensorsThirdParty/SensorsThirdParty/'

s.subspec 'Core' do |c|
s.static_framework = true
c.dependency 'AppsFlyerFramework', '>=6.9.2'
c.source_files = base_dir + 'Source/**/*.{h,m}'
c.source_files = base_dir + 'Source/Core/*.{h,m}', base_dir + 'Source/include/*.{h,m}',
c.public_header_files = base_dir + 'Source/include/*.h'
end
s.subspec 'Dynamic' do |b|
b.dependency 'AppsFlyerFramework/Dynamic', '>=6.9.2'
b.source_files = base_dir + 'Source/**/*.{h,m}'
b.public_header_files = base_dir + 'Source/include/*.h'
s.subspec 'AppsFlyer' do |d|
s.static_framework = true
d.dependency 'AppsFlyerFramework', '>=6.9.2'
d.dependency 'SensorsThirdParty/Core'
d.source_files = base_dir + 'Source/AppsFlyer/*.{h,m}'
d.project_header_files = base_dir + 'Source/AppsFlyer/*.h'
end
s.subspec 'AppsFlyerDynamic' do |e|
e.dependency 'AppsFlyerFramework/Dynamic', '>=6.9.2'
e.dependency 'SensorsThirdParty/Core'
e.source_files = base_dir + 'Source/AppsFlyer/*.{h,m}'
e.project_header_files = base_dir + 'Source/AppsFlyer/*.h'
end
end
3 changes: 1 addition & 2 deletions iOS/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ target 'Example' do

# Pods for Example

pod 'SensorsThirdParty/Dynamic', :path => './'
pod 'AppsFlyerFramework/Dynamic'
pod 'SensorsThirdParty/AppsFlyer', :path => '../'

end
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
#endif

#import "SAThirdPartyManager.h"

#if __has_include("SAAppsFlyerShare.h")
#import "SAAppsFlyerShare.h"
#endif

static NSNotificationName const kTrackLoginNotification = @"SensorsAnalyticsTrackLoginNotification";
static NSNotificationName const kTrackLogoutNotification = @"SensorsAnalyticsTrackLogoutNotification";
Expand Down Expand Up @@ -73,7 +76,9 @@ - (SAThirdPartyShare *)shareWithName:(SAThirdPartyName)name {
}
switch (name) {
case SAThirdPartyNameAppsFlyer:
#if __has_include("SAAppsFlyerShare.h")
share = [[SAAppsFlyerShare alloc] init];
#endif
break;
default:
share = [[SAThirdPartyShare alloc] init];
Expand All @@ -87,7 +92,7 @@ - (NSString *)rawNameValueFrom:(SAThirdPartyName)thirdPartyName {
NSString *rawNameValue = nil;
switch (thirdPartyName) {
case SAThirdPartyNameAppsFlyer:
rawNameValue = @"AppsFlyer";
rawNameValue = @"SAAppsFlyer";
break;
default:
rawNameValue = @"Unknown";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#import "SensorsThirdParty.h"
#import "SAThirdPartyManager.h"

static const NSString *kSDKVersion = @"0.0.2";

@implementation SensorsThirdParty

+ (void)shareData:(NSDictionary *)data toThirdParty:(SAThirdPartyName)thirdParty {
Expand Down

0 comments on commit 972f5f6

Please sign in to comment.