Skip to content

Commit b8cc009

Browse files
authored
Merge pull request #162 from yeliulee/ohos
add support for OpenHarmony
2 parents ff1b1d1 + 3c9f0f4 commit b8cc009

File tree

42 files changed

+1042
-36
lines changed

Some content is hidden

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

42 files changed

+1042
-36
lines changed

CHANGELOG.md

Lines changed: 76 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,180 @@
1-
# 4.0.0
1+
## 4.0.1
2+
3+
* 新增对 OpenHarmony 的支持
4+
5+
## 4.0.0
6+
27
* iOS中的AliPay SDK升级到15.8.18
38
* iOS的支付功能需要添加universal link
49

5-
# 3.3.2
10+
## 3.3.2
11+
612
* Merge #155: 增加iOS privacy manifest
713

8-
# 3.3.1
14+
## 3.3.1
15+
916
* Android 增加namespace
1017

11-
# 3.3.0
18+
## 3.3.0
19+
1220
* AliPay SDK升级到15.8.17
1321

14-
# 3.2.2
22+
## 3.2.2
23+
1524
* Fix #151
1625

17-
# 3.2.1
26+
## 3.2.1
27+
1828
* iOS新增ignore_security选项,详见#576
1929

20-
# 3.2.0
30+
## 3.2.0
31+
2132
* AliPay SDK升级到15.8.15
2233
* iOS切换至xcframework
2334

24-
# 3.1.3
35+
## 3.1.3
36+
2537
* 修复Flutter module编译问题
2638
* 降级SDK约束以支持dart 2.
2739

28-
# 3.1.2
40+
## 3.1.2
41+
2942
* 支持检查AliPay HongKong是否安装
3043

31-
# 3.1.1
44+
## 3.1.1
45+
3246
* 优化iOS yaml读取.
3347

34-
# 3.1.0
48+
## 3.1.0
49+
3550
* iOS支持在pubspec.yaml中设置是否使用no_utdid.
3651

37-
# 3.0.0
52+
## 3.0.0
53+
3854
* 重构Flutter端
3955
* 现在可以在pubspec.yaml里直接配置url_schme
4056
* 自动在iOS添加Queries
4157

4258
## 2.4.2
43-
* compileSdkVersion -> compileSdk
59+
60+
* compileSdkVersion -> compileSdk
4461

4562
## 2.4.1+1
63+
4664
* Kotlin 1.7.10
4765
* AGP 7.4.1
4866

4967
## 2.4.1
68+
5069
* 更新原生SDK
5170
* 升级Kotlin
5271

5372
## 2.4.0+2
73+
5474
* 更新文档
5575

5676
## 2.4.0+1
77+
5778
* 修复iOS编译问题
5879

5980
## 2.4.0
81+
6082
* 升级SDK到15.8.08
6183

6284
## 2.3.0
85+
6386
* Update Android configurations
6487

6588
## 2.2.0
89+
6690
* Update AlipaySDK to 15.8.06
6791

6892
## 2.1.2+1
93+
6994
* Update compileSdk version to 30
7095

7196
## 2.1.2
97+
7298
* Use Android no-uuid sdk
7399

74100
## 2.1.1
101+
75102
* Merge #99
76103
* Update Android SDK to 15.08.03
77104

78105
## 2.1.0
106+
79107
* NullSafety
80108

81109
## 2.0.0-nullsafety.3
110+
82111
* Fix #82
83112

84113
## 2.0.0-nullsafety.2
114+
85115
* Update dependency
86116

87117
## 2.0.0-nullsafety.1
118+
88119
* Support NullSafety
89120

90121
## 1.7.1+3
122+
91123
* Fix #82
92124

93125
## 1.7.1+2
126+
94127
* Update libs.
95128

96129
## 1.7.1+1
130+
97131
* Fix #57
98132

99133
## 1.7.1
134+
100135
* Fix #55
101136

102137
## 1.7.0
138+
103139
* 支付SDK升级至15.7.9
104140
* 兼容Flutter 1.20
105141
* Android 依赖升级
106142

107143
## 1.6.1+1
144+
108145
* 删除不必要的权限
109146
* Android的支付宝SDK升级到15.7.6
110147

111148
## 1.6.1
149+
112150
* Android的支付宝SDK升级到15.7.5
113151
* iOS的支付宝SDK升级到15.7.4
114152
* Kotlin->1.3.72
115153

116154
## 1.6.0+1
155+
117156
* 升级
118157

119158
## 1.6.0
159+
120160
* Fix #41
121161
* 升级kotlin coroutine
122162

123163
## 1.5.0
164+
124165
* 改进Android代码
125166

126167
## 1.4.0
168+
127169
* 修复1.3.0的问题
128170

129171
## 1.3.0
172+
130173
* 删除过时方法
131174
* 升级Android plugin以兼容新API
132175

133176
## 1.2.3
177+
134178
* Android的支付宝SDK升级到15.7.3
135179

136180
## 1.2.2
@@ -152,71 +196,89 @@
152196
* 修复ios获取版本的bug。
153197

154198
## 1.1.0+1
199+
155200
* 兼容swift
156201

157202
## 1.1.0
203+
158204
* 升级sdk,同时ios源换成官方源
159205

160206
## 1.0.0+1
207+
161208
* 按照pub意见进行修改
162209

163210
## 1.0.0
164211

165212
* ios不必重写AppDelegate
166213

167214
## 0.1.6+2
215+
168216
* 按照pub意见进行修改
169217

170218
## 0.1.6+1
219+
171220
* 按照pub意见进行修改
172221

173222
## 0.1.6
223+
174224
* 支付宝SDK升级到15.6.4
175225
* 升级Kotlin
176226

177227
## 0.1.5
228+
178229
* 支持检查客户端是否安装了支付宝App。
179230

180231
## 0.1.4
232+
181233
* Fix #18
182234

183235
## 0.1.3
184-
* Android支持沙箱了
185236

237+
* Android支持沙箱了
186238

187239
## 0.1.2
240+
188241
* 修复在ios上调用登录报错的问题
189242

190243
## 0.1.1
244+
191245
* 修复ios上通过webview登录无回调的问题
192246

193247
## 0.1.0
248+
194249
* 支持支付宝登录了。
195250

196251
## 0.0.8
252+
197253
* kotlin升级至1.3.21
198254
* kotlinx-coroutines升级至1.1.1
199255
* AliPaySDK升级至15.6.0
200256

201257
## 0.0.7
258+
202259
* android构建工具升级
203260
* AliPaySDK升级至15.5.9
204261

205262
## 0.0.6
263+
206264
* android构建工具升级
207265
* AliPaySDK升级至15.5.7
208266

209267
## 0.0.5
268+
210269
* *build.gradle*升级到了*3.2.0*
211270
* *kotlin*升级到了*1.2.71*
212271

213272
## 0.0.4
273+
214274
* 修复iOS无回调问题
215275

216276
## 0.0.3
277+
217278
* 删除AliPayModel
218279

219280
## 0.0.2
281+
220282
* 修复iOS支付bug
221283

222284
## 0.0.1

README.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
![logo](./arts/tobias_logo.png)
2+
3+
[![pub package](https://img.shields.io/pub/v/tobias.svg)](https://pub.dartlang.org/packages/tobias)
24
![Build status](https://github.com/OpenFlutter/tobias/actions/workflows/build_test.yml/badge.svg)
5+
[![GitHub stars](https://img.shields.io/github/stars/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/stargazers)
6+
[![GitHub forks](https://img.shields.io/github/forks/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/network)
7+
[![GitHub license](https://img.shields.io/github/license/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/blob/master/LICENSE)
8+
[![GitHub issues](https://img.shields.io/github/issues/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/issues)
9+
<a target="_blank" href="https://qm.qq.com/q/TJ29rkzywM"><img border="0" src="https://pub.idqqimg.com/wpa/images/group.png" alt="OpenFlutter" title="OpenFlutter"></a>
310

411
[中文移步这里](./README_CN.md)
512

@@ -9,27 +16,43 @@
916

1017
## What's Tobias
1118

12-
Tobias is a flutter plugin for AliPaySDK.
19+
Tobias is a flutter plugin for AliPaySDK, works on iOS, Android and OpenHarmony
1320

1421
## Getting Started
1522

1623
I highly recommend that you read [the official documents](https://docs.open.alipay.com/204/105051/) before using tobias.
1724

18-
1. You have to config `url_scheme` in [pubspec.yaml](./example/pubspec.yaml). Url scheme is a unique string to
25+
1. You have to config `url_scheme` in [pubspec.yaml](./example/pubspec.yaml). Url scheme is a unique string to
1926
resume you app on iOS but please note that `_` is invalid.
2027

28+
2. for OpenHarmony, you have to add scheme `alipays` to module.json5 in your project like this:
29+
30+
```json5
31+
{
32+
"module": {
33+
"querySchemes": [
34+
"alipays"
35+
],
36+
}
37+
}
38+
```
39+
2140
## Payment
41+
2242
It's simple,pass Tobias your order info from server :
43+
2344
```dart
2445
import 'package:tobias/tobias.dart' ;
2546
Tobias tobias = Tobias();
2647
tobias.pay(yourOrder);
2748
```
49+
2850
If you're working with iOS, please add and pass universal link. See [how to configure universal link](https://opendocs.alipay.com/open/0b9qzi).
2951

3052
The result is map contains results from AliPay.The result also contains an external filed named `platform` which
3153
means the result is from `iOS` or `android`.
3254
Result sample:
55+
3356
```dart
3457
{
3558
result: partner="2088411752388544"&seller_id="[email protected]"&out_trade_no="180926084213001"&subject="test pay"&total_fee="0.01"&notify_url="http://127.0.0.1/alipay001"&service="mobile.securitypay.pay"&payment_type="1"&_input_charset="utf-8"&it_b_pay="30m"&return_url="m.alipay.com"&success="true"&sign_type="RSA"&sign="nCZ8MDhsNvYNAbrLZJZ2VUy6vydgAp+JCq1aQo6ORDYtI9zwtnja3qNGQNiDJCuktoIj7fSTM487XhjPDqnOreZjIA1GJpxu9D1I3nMXIn1M7DfZ0noDwXcYZ438/jbYac7g8mhpwdKGweLCAni9mO3Y6q3iBFkox8i9PcsGxJY=",
@@ -39,9 +62,9 @@ resultStatus: 9000,
3962
}
4063
4164
```
42-
65+
4366
> NOTE:Tobias use pay_V2.
44-
67+
4568
> If you're facing conflicts with `utdid` on iOS, you can set `no_utdid: true` in [pubspec.yaml](./example/pubspec.yaml)
4669
4770
## Auth
@@ -61,10 +84,9 @@ var result = await tobias.isAliPayInstalled;
6184

6285
You can also call `tobias.version` which returns a map contains `version` and `platform`.
6386

64-
6587
## Upgrade to 1.0.0
6688

67-
There's no need to override `AppDelegate` since `tobais 1.0.0`. If you have done that before, please remove
89+
There's no need to override `AppDelegate` since `tobais 1.0.0`. If you have done that before, please remove
6890
the following code in your `AppDelegate`:
6991

7092
```objective-c
@@ -79,6 +101,7 @@ the following code in your `AppDelegate`:
79101
```
80102

81103
If you have to override these two functions, make sure you have called the `super`:
104+
82105
```objective-c
83106

84107
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
@@ -92,20 +115,18 @@ If you have to override these two functions, make sure you have called the `supe
92115
}
93116
```
94117

95-
96-
97118
### Donate
119+
98120
Buy me a cup of coffee。
99121

100122
<img src="./arts/wx.jpeg" height="300"> <img src="./arts/ali.jpeg" height="300">
101123

102-
103124
### Subscribe Us On WeChat
125+
104126
![subscribe](./arts/wx_subscription.png)
105127

106128
## LICENSE
107129

108-
109130
Copyright 2018 OpenFlutter Project
110131

111132
Licensed to the Apache Software Foundation (ASF) under one or more contributor

0 commit comments

Comments
 (0)