Skip to content

Commit 81e04fa

Browse files
author
王洋洋
committed
Release 0.6.1
1 parent 247bcb9 commit 81e04fa

File tree

54 files changed

+887
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+887
-21
lines changed

SensorsFocus.podspec

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SensorsFocus'
3-
s.version = '0.6.0'
3+
s.version = '0.6.1'
44
s.summary = 'The official iOS SDK of Sensors Focus.'
55
s.homepage = 'http://www.sensorsdata.cn'
66
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
@@ -14,8 +14,15 @@ Pod::Spec.new do |s|
1414
s.dependency 'SensorsAnalyticsSDK', '>=4.2.0'
1515
s.dependency 'SensorsDiagnosis'
1616
s.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER': 'com.sensorsdata.SensorsFocus'}
17+
s.default_subspec = 'Dynamic'
1718

1819
base_dir = 'SensorsFocus/'
19-
s.vendored_frameworks = base_dir + 'SensorsFocus.xcframework'
20+
s.subspec 'Dynamic' do |d|
21+
s.vendored_frameworks = base_dir + 'Dynamic/SensorsFocus.xcframework'
22+
end
23+
24+
s.subspec 'Static' do |s|
25+
s.vendored_frameworks = base_dir + 'Static/SensorsFocus.xcframework'
26+
end
2027

2128
end

SensorsFocus/SensorsFocus.xcframework/Info.plist renamed to SensorsFocus/Dynamic/SensorsFocus.xcframework/Info.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_armv7</string>
9+
<string>ios-arm64_i386_x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>SensorsFocus.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>armv7</string>
15+
<string>i386</string>
16+
<string>x86_64</string>
1617
</array>
1718
<key>SupportedPlatform</key>
1819
<string>ios</string>
20+
<key>SupportedPlatformVariant</key>
21+
<string>simulator</string>
1922
</dict>
2023
<dict>
2124
<key>LibraryIdentifier</key>
22-
<string>ios-arm64_i386_x86_64-simulator</string>
25+
<string>ios-arm64_armv7</string>
2326
<key>LibraryPath</key>
2427
<string>SensorsFocus.framework</string>
2528
<key>SupportedArchitectures</key>
2629
<array>
2730
<string>arm64</string>
28-
<string>i386</string>
29-
<string>x86_64</string>
31+
<string>armv7</string>
3032
</array>
3133
<key>SupportedPlatform</key>
3234
<string>ios</string>
33-
<key>SupportedPlatformVariant</key>
34-
<string>simulator</string>
3535
</dict>
3636
</array>
3737
<key>CFBundlePackageType</key>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10+
#import "SensorsFocusActionModel.h"
1011

1112
typedef NS_ENUM(NSUInteger, SFCampaignType) {
1213
SFCampaignTypePreset,
@@ -21,6 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
2122
@property (nonatomic, copy, readonly, nullable) NSString *name;
2223
@property (nonatomic, copy, readonly, nonnull) NSString *content;
2324
@property (nonatomic, assign, readonly) SFCampaignType type;
25+
@property (nonatomic, strong, readonly, nullable) SensorsFocusActionModel *action;
2426

2527
- (instancetype)init NS_UNAVAILABLE;
2628

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@
6464
- (BOOL)campaignShouldStart:(nonnull SFCampaign *)campaign NS_SWIFT_NAME(campaignShouldStart(campaign:));
6565
- (void)campaignDidEnd:(nonnull SFCampaign *)campaign NS_SWIFT_NAME(campaignDidEnd(campaign:));
6666
- (void)campaignFailed:(nonnull SFCampaign *)campaign error:(nonnull NSError*)error NS_SWIFT_NAME(campaignFailed(campaign:error:));
67+
- (void)campaignDidClick:(nonnull SFCampaign*)campaign NS_SWIFT_NAME(campaignDidClick(campaign:));
6768

6869
@end
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ typedef NS_ENUM(NSUInteger, SensorsFocusActionType) {
2727
SensorsFocusActionTypeOpenlink,
2828
SensorsFocusActionTypeCopy,
2929
SensorsFocusActionTypeCustomize,
30+
SensorsFocusActionTypeUnknown
3031
};
3132

3233
@interface SensorsFocusActionModel : NSObject
3334

34-
@property (nonatomic) SensorsFocusActionType type;
35+
@property (nonatomic, assign) SensorsFocusActionType type;
3536
@property (nonatomic, copy, nullable) NSString *value;
3637
@property (nonatomic, strong, nullable) NSDictionary *extra;
3738

0 commit comments

Comments
 (0)