Skip to content

Commit

Permalink
Release 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
王洋洋 committed Mar 21, 2023
1 parent 247bcb9 commit 81e04fa
Show file tree
Hide file tree
Showing 54 changed files with 887 additions and 21 deletions.
11 changes: 9 additions & 2 deletions SensorsFocus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SensorsFocus'
s.version = '0.6.0'
s.version = '0.6.1'
s.summary = 'The official iOS SDK of Sensors Focus.'
s.homepage = 'http://www.sensorsdata.cn'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
Expand All @@ -14,8 +14,15 @@ Pod::Spec.new do |s|
s.dependency 'SensorsAnalyticsSDK', '>=4.2.0'
s.dependency 'SensorsDiagnosis'
s.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER': 'com.sensorsdata.SensorsFocus'}
s.default_subspec = 'Dynamic'

base_dir = 'SensorsFocus/'
s.vendored_frameworks = base_dir + 'SensorsFocus.xcframework'
s.subspec 'Dynamic' do |d|
s.vendored_frameworks = base_dir + 'Dynamic/SensorsFocus.xcframework'
end

s.subspec 'Static' do |s|
s.vendored_frameworks = base_dir + 'Static/SensorsFocus.xcframework'
end

end
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SensorsFocus.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>SensorsFocus.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "SensorsFocusActionModel.h"

typedef NS_ENUM(NSUInteger, SFCampaignType) {
SFCampaignTypePreset,
Expand All @@ -21,6 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, copy, readonly, nullable) NSString *name;
@property (nonatomic, copy, readonly, nonnull) NSString *content;
@property (nonatomic, assign, readonly) SFCampaignType type;
@property (nonatomic, strong, readonly, nullable) SensorsFocusActionModel *action;

- (instancetype)init NS_UNAVAILABLE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
- (BOOL)campaignShouldStart:(nonnull SFCampaign *)campaign NS_SWIFT_NAME(campaignShouldStart(campaign:));
- (void)campaignDidEnd:(nonnull SFCampaign *)campaign NS_SWIFT_NAME(campaignDidEnd(campaign:));
- (void)campaignFailed:(nonnull SFCampaign *)campaign error:(nonnull NSError*)error NS_SWIFT_NAME(campaignFailed(campaign:error:));
- (void)campaignDidClick:(nonnull SFCampaign*)campaign NS_SWIFT_NAME(campaignDidClick(campaign:));

@end
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ typedef NS_ENUM(NSUInteger, SensorsFocusActionType) {
SensorsFocusActionTypeOpenlink,
SensorsFocusActionTypeCopy,
SensorsFocusActionTypeCustomize,
SensorsFocusActionTypeUnknown
};

@interface SensorsFocusActionModel : NSObject

@property (nonatomic) SensorsFocusActionType type;
@property (nonatomic, assign) SensorsFocusActionType type;
@property (nonatomic, copy, nullable) NSString *value;
@property (nonatomic, strong, nullable) NSDictionary *extra;

Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "SensorsFocusActionModel.h"

typedef NS_ENUM(NSUInteger, SFCampaignType) {
SFCampaignTypePreset,
Expand All @@ -21,6 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, copy, readonly, nullable) NSString *name;
@property (nonatomic, copy, readonly, nonnull) NSString *content;
@property (nonatomic, assign, readonly) SFCampaignType type;
@property (nonatomic, strong, readonly, nullable) SensorsFocusActionModel *action;

- (instancetype)init NS_UNAVAILABLE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
- (BOOL)campaignShouldStart:(nonnull SFCampaign *)campaign NS_SWIFT_NAME(campaignShouldStart(campaign:));
- (void)campaignDidEnd:(nonnull SFCampaign *)campaign NS_SWIFT_NAME(campaignDidEnd(campaign:));
- (void)campaignFailed:(nonnull SFCampaign *)campaign error:(nonnull NSError*)error NS_SWIFT_NAME(campaignFailed(campaign:error:));
- (void)campaignDidClick:(nonnull SFCampaign*)campaign NS_SWIFT_NAME(campaignDidClick(campaign:));

@end
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ typedef NS_ENUM(NSUInteger, SensorsFocusActionType) {
SensorsFocusActionTypeOpenlink,
SensorsFocusActionTypeCopy,
SensorsFocusActionTypeCustomize,
SensorsFocusActionTypeUnknown
};

@interface SensorsFocusActionModel : NSObject

@property (nonatomic) SensorsFocusActionType type;
@property (nonatomic, assign) SensorsFocusActionType type;
@property (nonatomic, copy, nullable) NSString *value;
@property (nonatomic, strong, nullable) NSDictionary *extra;

Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<dict>
<key>Headers/SFCampaign.h</key>
<data>
jZKNaOJaEUwLgDkLJwxsF1nVlHo=
v8RcqEnoylgwKI6XIW6h5ko0fRI=
</data>
<key>Headers/SFConfigOptions.h</key>
<data>
RapNKCzoKmTGH78T4W1iOxyhdsU=
</data>
<key>Headers/SFInteractionProtocol.h</key>
<data>
1qxzyn9ERCXyd61skjAuJA+V3Mg=
D6EuqVF1f6fqooxLxSm5Xkyozcw=
</data>
<key>Headers/SensorsFocus-umbrella.h</key>
<data>
Expand All @@ -26,11 +26,11 @@
</data>
<key>Headers/SensorsFocusActionModel.h</key>
<data>
fGeWjr8+pteY0P88kcm42PBSSLA=
XUeVf9VtaBuKhpNJ5bPEvL4EKK4=
</data>
<key>Info.plist</key>
<data>
V3srfwns4RhsMQ1bPw3Jent2B/c=
XPDdZYU4zLfURQx1EZ6W+FBME5U=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand All @@ -51,11 +51,11 @@
<dict>
<key>hash</key>
<data>
jZKNaOJaEUwLgDkLJwxsF1nVlHo=
v8RcqEnoylgwKI6XIW6h5ko0fRI=
</data>
<key>hash2</key>
<data>
kfkIu8m28+hIivvvZFPAj20Hf6fP6htNA6o0k5IBzR0=
0yhTur+8dvCBnWihS5in42p7QmWaByL9Y66KrsSZjeE=
</data>
</dict>
<key>Headers/SFConfigOptions.h</key>
Expand All @@ -73,11 +73,11 @@
<dict>
<key>hash</key>
<data>
1qxzyn9ERCXyd61skjAuJA+V3Mg=
D6EuqVF1f6fqooxLxSm5Xkyozcw=
</data>
<key>hash2</key>
<data>
dw80xcvDLV3NNMmH62hfbKiJue0YWvVMc/BWAz+gr9w=
TnQkfvx5dUehh34tCEHv1Rnme7bOhEzcHrPybUtMSVc=
</data>
</dict>
<key>Headers/SensorsFocus-umbrella.h</key>
Expand Down Expand Up @@ -106,11 +106,11 @@
<dict>
<key>hash</key>
<data>
fGeWjr8+pteY0P88kcm42PBSSLA=
XUeVf9VtaBuKhpNJ5bPEvL4EKK4=
</data>
<key>hash2</key>
<data>
8zpCThWlTDbs7ZQbiYuiXHbsRVJENp1tIe8bcp+6seQ=
Zy6OZReVEkmsheqsY34xyJ4l3LCRl9ymgAtTe59gqK0=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Binary file not shown.
42 changes: 42 additions & 0 deletions SensorsFocus/Static/SensorsFocus.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SensorsFocus.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>SensorsFocus.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// SFCampaign.h
// SensorsFocus
//
// Created by 陈玉国 on 2021/3/30.
// Copyright © 2021 Sensors Data Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SensorsFocusActionModel.h"

typedef NS_ENUM(NSUInteger, SFCampaignType) {
SFCampaignTypePreset,
SFCampaignTypeCustomized,
};

NS_ASSUME_NONNULL_BEGIN

@interface SFCampaign : NSObject

@property (nonatomic, copy, readonly, nullable) NSString *planID;
@property (nonatomic, copy, readonly, nullable) NSString *name;
@property (nonatomic, copy, readonly, nonnull) NSString *content;
@property (nonatomic, assign, readonly) SFCampaignType type;
@property (nonatomic, strong, readonly, nullable) SensorsFocusActionModel *action;

- (instancetype)init NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
//
// SFConfigOptions.h
// SensorsFocus
//
// Created by 陈玉国 on 2020/3/9.
// Copyright © 2020 Sensors Data Co., Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

#if ! __has_feature(objc_arc)
#error This file must be compiled with ARC. Either turn on ARC for the project or use -fobjc-arc flag on this file.
#endif

#import <Foundation/Foundation.h>
#import "SFInteractionProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface SFConfigOptions : NSObject

- (instancetype)init NS_UNAVAILABLE;

/**
Returns an object initialized from base url.
@param apiBaseURL a base url
@return self, initialized using the base url.
*/
- (instancetype)initWithApiBaseURL:(NSString *)apiBaseURL NS_DESIGNATED_INITIALIZER;

/// 可以通过这个接口,设置弹窗展示的代理对象
@property (nonatomic, weak) id<SensorsFocusPopupDelegate> popupDelegate;
@property (nonatomic, weak) id<SensorsFocusCampaignDelegate> campaignDelegate;

//default to YES, if set to NO, will not pre-download image
@property (nonatomic, assign) BOOL preloadImage;

/// set placeholder image while image items in popup was downloading
@property (nonatomic, strong, nullable) NSData *placeholderImage;

@property (nonatomic, copy, nullable) NSString *placeholderImageName;

@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit 81e04fa

Please sign in to comment.