Skip to content

Commit 622f8f8

Browse files
committed
Update SDK to 4.0.59 (2021-3-31)
1 parent b368bad commit 622f8f8

File tree

7 files changed

+63
-35
lines changed

7 files changed

+63
-35
lines changed

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- TalkingDataAppAnalytics (4.0.58):
3-
- TalkingDataAppAnalytics/Basic (= 4.0.58)
4-
- TalkingDataAppAnalytics/Basic (4.0.58)
2+
- TalkingDataAppAnalytics (4.0.59):
3+
- TalkingDataAppAnalytics/Basic (= 4.0.59)
4+
- TalkingDataAppAnalytics/Basic (4.0.59)
55

66
DEPENDENCIES:
77
- TalkingDataAppAnalytics (from `.`)
@@ -11,7 +11,7 @@ EXTERNAL SOURCES:
1111
:path: "."
1212

1313
SPEC CHECKSUMS:
14-
TalkingDataAppAnalytics: 392264724323e1f6f3e57380b6a304836d74896a
14+
TalkingDataAppAnalytics: ef94df65e37d08e1b4b67e53dd12e87ecbc8cfd8
1515

1616
PODFILE CHECKSUM: 35754c89eeba1b9b40bb4122152db7e67428c231
1717

SDK/Basic/libTalkingData.a

0 Bytes
Binary file not shown.

SDK/Full/TalkingData.h

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,20 +251,34 @@ typedef NS_ENUM(NSUInteger, TDVendorIdType) {
251251
+ (void)trackPageEnd:(NSString *)pageName;
252252

253253
#if TARGET_OS_IOS
254+
+ (void)onPlaceOrder:(NSString *)profileId order:(TalkingDataOrder *)order API_DEPRECATED_WITH_REPLACEMENT("onPlaceOrder:amount:currencyType:", ios(1, 1));
255+
256+
+ (void)onOrderPaySucc:(NSString *)profileId payType:(NSString *)payType order:(TalkingDataOrder *)order API_DEPRECATED_WITH_REPLACEMENT("onOrderPaySucc:amount:currencyType:paymentType:", ios(1, 1));
257+
254258
/**
255259
* @method onPlaceOrder 下单
256-
* @param profileId 账户ID 类型:NSString
257-
* @param order 订单 类型:TalkingDataOrder
260+
* @param orderId 订单ID 类型:NSString
261+
* @param amount 金额 类型:int
262+
* @param currencyType 货币类型 类型:NSString
263+
*/
264+
+ (void)onPlaceOrder:(NSString *)orderId amount:(int)amount currencyType:(NSString *)currencyType;
265+
266+
/**
267+
* @method onOrderPaySucc 支付订单
268+
* @param orderId 订单ID 类型:NSString
269+
* @param amount 金额 类型:int
270+
* @param currencyType 货币类型 类型:NSString
271+
* @param paymentType 支付类型 类型:NSString
258272
*/
259-
+ (void)onPlaceOrder:(NSString *)profileId order:(TalkingDataOrder *)order;
273+
+ (void)onOrderPaySucc:(NSString *)orderId amount:(int)amount currencyType:(NSString *)currencyType paymentType:(NSString *)paymentType;
260274

261275
/**
262-
* @method onOrderPaySucc 支付
263-
* @param profileId 账户ID 类型:NSString
264-
* @param payType 支付类型 类型:NSString
265-
* @param order 订单详情 类型:TalkingDataOrder
276+
* @method onCancelOrder 取消订单
277+
* @param orderId 订单ID 类型:NSString
278+
* @param amount 金额 类型:int
279+
* @param currencyType 货币类型 类型:NSString
266280
*/
267-
+ (void)onOrderPaySucc:(NSString *)profileId payType:(NSString *)payType order:(TalkingDataOrder *)order;
281+
+ (void)onCancelOrder:(NSString *)orderId amount:(int)amount currencyType:(NSString *)currencyType;
268282

269283
/**
270284
* @method onViewItem

SDK/Full/TalkingDataSDKDemo/PhoneDemo/AppAnalytics/TDAAStandardViewController.m

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,25 @@
1212
@implementation TDAAStandardViewController
1313

1414
- (IBAction)placeOrder {
15-
TalkingDataOrder *order = [TalkingDataOrder createOrder:@"order01" total:2466400 currencyType:@"CNY"];
16-
[order addItem:@"A1660" category:@"手机" name:@"iPhone 7" unitPrice:538800 amount:2];
17-
[order addItem:@"MLH12CH" category:@"电脑" name:@"MacBook Pro" unitPrice:1388800 amount:1];
18-
[TalkingData onPlaceOrder:@"user01" order:order];
15+
[TalkingData onPlaceOrder:@"order01" amount:2466400 currencyType:@"CNY"];
1916
}
20-
17+
2118
- (IBAction)payOrder {
22-
TalkingDataOrder *order = [TalkingDataOrder createOrder:@"order01" total:2466400 currencyType:@"CNY"];
23-
[order addItem:@"A1660" category:@"手机" name:@"iPhone 7" unitPrice:538800 amount:2];
24-
[order addItem:@"MLH12CH" category:@"电脑" name:@"MacBook Pro" unitPrice:1388800 amount:1];
25-
[TalkingData onOrderPaySucc:@"user01" payType:@"Apple Pay" order:order];
19+
[TalkingData onOrderPaySucc:@"order01" amount:2466400 currencyType:@"CNY" paymentType:@"Apple Pay"];
20+
}
21+
22+
- (IBAction)cancelOrder {
23+
[TalkingData onCancelOrder:@"order01" amount:2466400 currencyType:@"CNY"];
2624
}
27-
25+
2826
- (IBAction)viewItem {
2927
[TalkingData onViewItem:@"A1660" category:@"手机" name:@"iPhone 7" unitPrice:538800];
3028
}
31-
29+
3230
- (IBAction)addItem {
3331
[TalkingData onAddItemToShoppingCart:@"MLH12CH" category:@"电脑" name:@"MacBook Pro" unitPrice:1388800 amount:1];
3432
}
35-
33+
3634
- (IBAction)viewShoppingCart {
3735
TalkingDataShoppingCart *shoppingCart = [TalkingDataShoppingCart createShoppingCart];
3836
[shoppingCart addItem:@"A1660" category:@"手机" name:@"iPhone 7" unitPrice:538800 amount:2];

SDK/Full/TalkingDataSDKDemo/PhoneDemo/Base.lproj/Main.storyboard

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@
886886
</connections>
887887
</button>
888888
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CCz-jD-875">
889-
<rect key="frame" x="156" y="8" width="120" height="30"/>
889+
<rect key="frame" x="28" y="46" width="120" height="30"/>
890890
<color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
891891
<constraints>
892892
<constraint firstAttribute="height" constant="30" id="Vz1-Dj-Dw6"/>
@@ -899,8 +899,22 @@
899899
<action selector="payOrder" destination="nqT-cq-CPl" eventType="touchUpInside" id="IFM-ZW-W3x"/>
900900
</connections>
901901
</button>
902+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EV3-Uk-j4v">
903+
<rect key="frame" x="28" y="84" width="120" height="30"/>
904+
<color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
905+
<constraints>
906+
<constraint firstAttribute="height" constant="30" id="5Dp-uf-XHS"/>
907+
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="120" id="mPp-4e-xYa"/>
908+
</constraints>
909+
<state key="normal" title="取消订单">
910+
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
911+
</state>
912+
<connections>
913+
<action selector="cancelOrder" destination="nqT-cq-CPl" eventType="touchUpInside" id="vw9-7w-VKN"/>
914+
</connections>
915+
</button>
902916
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sMF-0H-fpj">
903-
<rect key="frame" x="28" y="46" width="120" height="30"/>
917+
<rect key="frame" x="156" y="8" width="120" height="30"/>
904918
<color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
905919
<constraints>
906920
<constraint firstAttribute="height" constant="30" id="Wge-cB-dO2"/>
@@ -928,7 +942,7 @@
928942
</connections>
929943
</button>
930944
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g1m-im-MUU">
931-
<rect key="frame" x="28" y="84" width="120" height="30"/>
945+
<rect key="frame" x="156" y="84" width="120" height="30"/>
932946
<color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
933947
<constraints>
934948
<constraint firstAttribute="height" constant="30" id="0DV-Np-JQd"/>
@@ -947,14 +961,16 @@
947961
<constraint firstAttribute="height" constant="122" id="8V7-zY-MIZ"/>
948962
<constraint firstItem="vuK-vc-u2B" firstAttribute="top" secondItem="Knb-lL-YGo" secondAttribute="top" constant="8" id="BB3-Kj-i8m"/>
949963
<constraint firstItem="vuK-vc-u2B" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="-64" id="Hx9-xt-IMR"/>
950-
<constraint firstItem="CCz-jD-875" firstAttribute="top" secondItem="Knb-lL-YGo" secondAttribute="top" constant="8" id="Ku9-J0-xKf"/>
951-
<constraint firstItem="CCz-jD-875" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="64" id="Npj-OT-Txr"/>
952-
<constraint firstItem="sMF-0H-fpj" firstAttribute="top" secondItem="vuK-vc-u2B" secondAttribute="bottom" constant="8" id="Un0-s7-2jM"/>
953-
<constraint firstItem="sMF-0H-fpj" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="-64" id="dY7-lY-Nkx"/>
954-
<constraint firstItem="WVu-dP-vcE" firstAttribute="top" secondItem="CCz-jD-875" secondAttribute="bottom" constant="8" id="eZd-Fi-bZR"/>
964+
<constraint firstItem="CCz-jD-875" firstAttribute="top" secondItem="vuK-vc-u2B" secondAttribute="bottom" constant="8" id="Ku9-J0-xKf"/>
965+
<constraint firstItem="CCz-jD-875" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="-64" id="Npj-OT-Txr"/>
966+
<constraint firstItem="EV3-Uk-j4v" firstAttribute="top" secondItem="CCz-jD-875" secondAttribute="bottom" constant="8" id="Psc-hH-E3D"/>
967+
<constraint firstItem="EV3-Uk-j4v" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="-64" id="Q3J-PS-ju5"/>
968+
<constraint firstItem="sMF-0H-fpj" firstAttribute="top" secondItem="Knb-lL-YGo" secondAttribute="top" constant="8" id="Un0-s7-2jM"/>
969+
<constraint firstItem="sMF-0H-fpj" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="64" id="dY7-lY-Nkx"/>
970+
<constraint firstItem="WVu-dP-vcE" firstAttribute="top" secondItem="sMF-0H-fpj" secondAttribute="bottom" constant="8" id="eZd-Fi-bZR"/>
955971
<constraint firstItem="WVu-dP-vcE" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="64" id="fSp-OZ-oKU"/>
956-
<constraint firstItem="g1m-im-MUU" firstAttribute="top" secondItem="sMF-0H-fpj" secondAttribute="bottom" constant="8" id="hdY-B9-FHs"/>
957-
<constraint firstItem="g1m-im-MUU" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="-64" id="kWG-Bp-Uvx"/>
972+
<constraint firstItem="g1m-im-MUU" firstAttribute="top" secondItem="WVu-dP-vcE" secondAttribute="bottom" constant="8" id="hdY-B9-FHs"/>
973+
<constraint firstItem="g1m-im-MUU" firstAttribute="centerX" secondItem="Knb-lL-YGo" secondAttribute="centerX" constant="64" id="kWG-Bp-Uvx"/>
958974
</constraints>
959975
</view>
960976
</subviews>

SDK/Full/libTalkingData.a

224 KB
Binary file not shown.

TalkingDataAppAnalytics.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'TalkingDataAppAnalytics'
3-
s.version = '4.0.58'
3+
s.version = '4.0.59'
44
s.summary = 'TalkingData App Analytics SDK'
55
s.homepage = 'https://github.com/ElfSundae/TalkingDataAppAnalytics'
66
s.documentation_url = 'https://doc.talkingdata.com/posts/20'

0 commit comments

Comments
 (0)