diff --git a/README.md b/README.md index 7435671..5f871aa 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@

- +

- FinClip iOS DEMO
+ PhizClip iOS DEMO

本项目提供在 iOS 环境中运行小程序的 DEMO 样例

- 👉 https://www.finclip.com/ 👈 + 👉 https://www.phizclip.com/ 👈

@@ -22,9 +22,6 @@ - - -
@@ -38,13 +35,13 @@ ----- -## 🤔 FinClip 是什么? +## 🤔 PhizClip 是什么? 有没有**想过**,开发好的微信小程序能放在自己的 APP 里直接运行,只需要开发一次小程序,就能在不同的应用中打开它,是不是很不可思议? 有没有**试过**,在自己的 APP 中引入一个 SDK ,应用中不仅可以打开小程序,还能自定义小程序接口,修改小程序样式,是不是觉得更不可思议? -这就是 FinClip ,就是有这么多不可思议! +这就是 PhizClip ,就是有这么多不可思议! ## ⚙️ 操作步骤 ### 第一步 修改 Podfile 文件,增加 FinApplet 依赖 @@ -84,20 +81,20 @@ NSString *appId = @"小程序id"; }]; ``` -- **SDK KEY** 和 **SDK SECRET** 可以从 [FinClip](https://finclip.com/#/home) 获取,点 [这里](https://finclip.com/#/register) 注册账号; +- **SDK KEY** 和 **SDK SECRET** 可以从 [PhizClip](https://finclip.com/#/home) 获取,点 [这里](https://finclip.com/#/register) 注册账号; - 进入平台后,在「应用管理」页面添加你自己的包名后,点击「复制」即可获得 key\secret\apisever 字段; - **apiServer** 和 **apiPrefix** 是固定字段,请直接参考本 DEMO ; - **小程序 ID** 是管理后台上架的小程序 APP ID,需要在「小程序管理」中创建并在「应用管理」中关联; -> 小程序 ID 与 微信小程序ID 不一样哦!(这里是特指 FinClip 平台的 ID ) +> 小程序 ID 与 微信小程序ID 不一样哦!(这里是特指 PhizClip 平台的 ID ) ## 📋 集成文档 [点击这里](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 快速集成文档 ## 🔗 常用链接 -以下内容是您在 FinClip 进行开发与体验时,常见的问题与指引信息 +以下内容是您在 PhizClip 进行开发与体验时,常见的问题与指引信息 -- [FinClip 官网](https://www.finclip.com/#/home) +- [PhizClip 官网](https://www.finclip.com/#/home) - [示例小程序](https://www.finclip.com/#/market) - [文档中心](https://www.finclip.com/mop/document/) - [SDK 部署指南](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html) @@ -118,3 +115,8 @@ NSString *appId = @"小程序id"; ## Forkers [![Forkers repo roster for @finogeeks/finclip-ios-demo](https://reporoster.com/forks/finogeeks/finclip-ios-demo)](https://github.com/finogeeks/finclip-ios-demo/network/members) + +## 🌏 多语言文档 +- [简体中文](./README.md) +- [English](./readme_en.md) +- [Português](./readme_pt.md) \ No newline at end of file diff --git a/media/image/phizlogo.png b/media/image/phizlogo.png new file mode 100644 index 0000000..b1f3a08 Binary files /dev/null and b/media/image/phizlogo.png differ diff --git a/readme_en.md b/readme_en.md new file mode 100644 index 0000000..51c3ac5 --- /dev/null +++ b/readme_en.md @@ -0,0 +1,119 @@ +

+ + + +

+ +

+ PhizClip iOS DEMO
+

+ +

+ 👉 https://www.phizclip.com/ 👈 +

+ +
+ + + + + + + + +
+ +

+ +

+ +[Home Page](https://www.finclip.com/) | [Example Mini-App](https://www.finclip.com/#/market) | [Documentation](https://www.finclip.com/mop/document/) | [Deployment Guide](https://www.finclip.com/mop/document/introduce/quickStart/cloud-server-deployment-guide.html)
[SDK Integration Guide](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html) | [API List](https://www.finclip.com/mop/document/develop/api/overview.html) | [Component List](https://www.finclip.com/mop/document/develop/component/overview.html) | [Privacy Commitment](https://www.finclip.com/mop/document/operate/safety.html) + +
+ +----- +## 🤔 What is PhizClip? + +Have you ever **thought** that the developed WeChat Mini-App can be put in your own APP to run directly, and you only need to develop the Mini-App once, and then you can open it in different applications, isn't it incredible? + +Have you ever **tried** to introduce an SDK in your own APP, and you can not only open the Mini-App in the app, but also customize the Mini-App interface and modify the Mini-App style, don't you think it is more incredible? + +**This is PhizClip, with much INCREDIBLE !** + +## ⚙️ Steps +### The first step is to modify the Podfile file and add FinApplet dependency +```pod +source 'https://github.com/CocoaPods/Specs.git' +pod 'FinApplet' +``` + +### Step 2 Complete SDK initialization +In the following method in the project's `AppDelegate`, call the SDK's initialization method. +```objc +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + + // Code that needs to be added to the App--start + NSMutableArray *storeArrayM = [NSMutableArray array]; + FATStoreConfig *storeConfig = [[FATStoreConfig alloc] init]; + storeConfig.sdkKey = @"Your sdkKey information"; + storeConfig.sdkSecret = @"Your sdkSecret information"; + storeConfig.apiServer = @"Server domain name"; + storeConfig.apmServer = @"Domain name of apm statistics event"; + [storeArrayM addObject:storeConfig]; + + FATConfig *config = [FATConfig configWithStoreConfigs:storeArrayM]; + [[FATClient sharedClient] initWithConfig:config error:nil]; + // Code that needs to be added to the App--end + + return YES; +} +``` + +### Step 3 Open the mini program +```objc +NSString *appId = @"Mini program id"; +// Open the applet +[[FATClient sharedClient] startRemoteApplet:appId startParams:nil InParentViewController:self completion:^(BOOL result, NSError *error) { + NSLog(@"result:%d---error:%@", result, error); +}]; +``` + +- Open the mini program - **SDK KEY** and **SDK SECRET** can be obtained from [PhizClip](https://finclip.com/#/home), click [here](https://finclip.com/#/register) Register an account; +- After entering the platform, add your own package name on the "Application Management" page and click "Copy" to get the key\secret\apisever field; +- **apiServer** and **apiPrefix** are fixed fields, please refer to this DEMO directly; +- **Mini Program ID** is the Mini Program APP ID listed in the management background. It needs to be created in "Mini Program Management" and associated in "Application Management"; +> The Mini Program ID is different from the WeChat Mini Program ID! (This refers specifically to the ID of the PhizClip platform) + +## 📋 Integrated documentation +[Click here](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) View the iOS Quick Integration documentation + + +## 🔗 Links +The following is information on common questions and guidelines for your development and experience with PhizClip + +- [Home Page](https://www.finclip.com/#/home) +- [Example Mini-App](https://www.finclip.com/#/market) +- [Documentation](https://www.finclip.com/mop/document/) +- [SDK Integration Guide](https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide.html) +- [Structure of PhizClip](https://www.finclip.com/mop/document/develop/guide/structure.html) +- [Integration Guidelines(iOS)](https://www.finclip.com/mop/document/runtime-sdk/ios/ios-integrate.html) +- [Integration Guidelines(Android)](https://www.finclip.com/mop/document/runtime-sdk/android/android-integrate.html) +- [Integration Guidelines(Flutter)](https://www.finclip.com/mop/document/runtime-sdk/flutter/flutter-integrate.html) + +## ☎️ Contact +Scan the QR code below with WeChat and follow the official public number **Finogeeks** for more exciting content.
+ + +Scan the QR code below with WeChat and invite into the official WeChat exchange group (add friend note: **finclip consulting**) to get more exciting content.
+ + +## Stargazers +[![Stargazers repo roster for @finogeeks/finclip-ios-demo](https://reporoster.com/stars/finogeeks/finclip-ios-demo)](https://github.com/finogeeks/finclip-ios-demo/stargazers) + +## Forkers +[![Forkers repo roster for @finogeeks/finclip-ios-demo](https://reporoster.com/forks/finogeeks/finclip-ios-demo)](https://github.com/finogeeks/finclip-ios-demo/network/members) + +## 🌏 Languages +- [简体中文](./README.md) +- [English](./readme_en.md) +- [Português](./readme_pt.md) \ No newline at end of file