|
@@ -172,9 +172,8 @@ onResult:接收同步结果通知
|
|
|
|
|
|
##### 4.2. 添加 SDK 包
|
|
##### 4.2. 添加 SDK 包
|
|
```
|
|
```
|
|
-1. 将 Demo 里面的 allpaysdk 文件夹拷贝到自己的项目中,并选择相应模块添加到项目,
|
|
|
|
-2. Add 主驱动模块 AllPaySDK.h,libAllPaySDK.a 到项目中
|
|
|
|
-3. 在 APPDelegate.m 类中导入头文件:
|
|
|
|
|
|
+1. 将 allpaysdk 下的 AllPaySDK.h,libAllPaySDK.a文件add到项目中
|
|
|
|
+2. 在 APPDelegate.m 类中导入头文件:
|
|
|
|
|
|
#import "allpaysdk/AllPaySDK.h" 并添加如下方法
|
|
#import "allpaysdk/AllPaySDK.h" 并添加如下方法
|
|
|
|
|
|
@@ -196,7 +195,7 @@ onResult:接收同步结果通知
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-4. 根据要使用的渠道的专属配置,对项目进行配置
|
|
|
|
|
|
+3. 根据要使用的渠道的专属配置,对项目进行配置
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
|
@@ -256,10 +255,14 @@ resultDic,转为 json 字符串,格式如下:
|
|
#### 5.渠道专属配置
|
|
#### 5.渠道专属配置
|
|
##### 5.1 EB渠道
|
|
##### 5.1 EB渠道
|
|
* 渠道专属配置:
|
|
* 渠道专属配置:
|
|
- 1.将EBModule文件夹下的文件add到项目中
|
|
|
|
|
|
+ 1.将allpaysdk/EBModule文件夹下的文件add到项目中
|
|
|
|
+
|
|
2.Set Always embed swift standard libraries to YES from project build settings
|
|
2.Set Always embed swift standard libraries to YES from project build settings
|
|
-ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
|
|
|
|
- 3.To simply disable ATS, you can follow this steps by open Info.plist, and add the following lines:
|
|
|
|
|
|
+ ```
|
|
|
|
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
|
|
|
|
+ ```
|
|
|
|
+
|
|
|
|
+ 3.To simply disable ATS, you can follow this steps by open Info.plist, and add the following lines:
|
|
|
|
|
|
```
|
|
```
|
|
<key>NSAppTransportSecurity</key>
|
|
<key>NSAppTransportSecurity</key>
|