add 百度地图、高德地图的使用代码,以及update readme

master
wanghualei 2022-08-03 11:54:58 +08:00
parent f5b020c9d3
commit bd20f3c556
5 changed files with 45 additions and 15 deletions

View File

@ -11,6 +11,7 @@ target "demo" do
pod 'FinAppletWebRTC'
pod 'FinAppletBDMap'
pod 'FinAppletGDMap'
pod 'FinAppletBLE'
pod 'WechatOpenSDK'
end

View File

@ -53,16 +53,23 @@ source 'https://github.com/CocoaPods/Specs.git'
pod 'FinApplet'
```
### 第二步 五行代码完成SDK初始化
### 第二步 完成SDK初始化
`AppDelegate` SDK
```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSString *appKey = @"SDKKEY";
FATConfig *config = [FATConfig configWithAppSecret:@"SECRET" appKey:appKey];
config.apiServer = @"https://api.finclip.com";
config.apiPrefix = @"/api/v1/mop";
// App--start
NSMutableArray *storeArrayM = [NSMutableArray array];
FATStoreConfig *storeConfig = [[FATStoreConfig alloc] init];
storeConfig.sdkKey = @"您的sdkKey信息";
storeConfig.sdkSecret = @"您的sdkSecret信息";
storeConfig.apiServer = @"服务器域名";
storeConfig.apmServer = @"apm统计事件的域名";
[storeArrayM addObject:storeConfig];
FATConfig *config = [FATConfig configWithStoreConfigs:storeArrayM];
[[FATClient sharedClient] initWithConfig:config error:nil];
// App--end
return YES;
}
@ -83,6 +90,25 @@ NSString *appId = @"小程序id";
- ** ID** APP ID
> ID ID FinClip ID
## 📋 Demo功能介绍
****
api`login`SDK
`FINExtensionHelper` `login`
****
api`requestPayment`SDK
`FINExtensionHelper` `requestPayment`
****
Map使Mapapi使MapDemo`FinAppletBDMap`SDK
使MapFinClip SDK`[FATBDMapComponent setBDMapAppKey:@"申请的key"];`
`AppDelegate``application:didFinishLaunchingWithOptions:`
****
使MapDemo`FinAppletGDMap`SDK
使MapFinClip SDK`[FATGDMapComponent setGDMapAppKey:@"申请的key"];`
`AppDelegate``application:didFinishLaunchingWithOptions:`
## 📋 集成文档
[](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html#_1-ios-%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90) iOS

View File

@ -172,7 +172,7 @@
9DD565B623EC45080011FC4A /* Frameworks */,
9DD565B723EC45080011FC4A /* Resources */,
DFB054DF507DE3B18CCCE932 /* [CP] Embed Pods Frameworks */,
74745716D7A4B2CB6E4BC657 /* [CP] Copy Pods Resources */,
33C306F0B0B6C469FD078FB0 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -231,7 +231,7 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
74745716D7A4B2CB6E4BC657 /* [CP] Copy Pods Resources */ = {
33C306F0B0B6C469FD078FB0 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@ -441,10 +441,7 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = demo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.finogeeks.finclip.demo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -464,10 +461,7 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = demo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.finogeeks.finclip.demo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = github_demo_adhoc;

View File

@ -10,7 +10,10 @@
#import "MainViewController.h"
#import "FINExtensionHelper.h"
#import "FINDemoClientHelper.h"
#import <FinApplet/FinApplet.h>
#import <FinAppletBDMap/FinAppletBDMap.h>
#import <FinAppletGDMap/FinAppletGDMap.h>
@interface AppDelegate ()
@ -49,6 +52,11 @@
// api
[[FINExtensionHelper sharedHelper] registerCustomApis];
// //
// [FATBDMapComponent setBDMapAppKey:@"申请的key"];
// //
// [FATGDMapComponent setGDMapAppKey:@"申请的key"];
if ([bundleId isEqualToString:@"com.finogeeks.mop.finosprite"]) {
// appIDwx85663af68a0cbbc8BundleIDcom.finogeeks.mop.finosprite
[WXApi registerApp:@"wx85663af68a0cbbc8" universalLink:@"https://www.finclip.com/finosprite/"];

View File

@ -60,6 +60,7 @@ static FINExtensionHelper *instance = nil;
NSDictionary *resDic = @{@"userInfo":userInfo};
callback(FATExtensionCodeSuccess,resDic);
}];
//
[[FATClient sharedClient] registerExtensionApi:@"login" handler:^(FATAppletInfo *appletInfo, id param, FATExtensionApiCallback callback) {
//