This article collects all the sample codes of mPaaS.
The code samples are updated occasionally with feature iterations. It is recommended that you download the latest version of the code samples when integrating the component. Please see README.md
file for the release notes of the code samples and how to use them.
See Release notes for the changes between each version of SDK.
V10.1.68 & 10.1.60
iOS
Component | Extension Integration | Cocoapods Integration |
Mobile Framework | ||
Mobile Gateway Service | ||
Mobile Push Service | ||
Mobile Sync Service | ||
Mobile Analytics Service | Mobile Analytics Service Code Sample Cocoapods and Extension | |
Upgrade | ||
Switch Configuration | ||
Log Diagnosis | ||
Content Delivery Platform | Content Delivery Platform Code Sample Cocoapods and Extension | |
H5 Container | ||
Tiny Program | ||
Native UI Component (AntUI) | Native UI Component (AntUI) Code Sample Cocoapods and Extension | |
Social Sharing | ||
Code Scanner | ||
Datacenter | ||
Location Based Service | ||
Mobile Real-Time Communication | Mobile Real-Time Communication Code Sample Cocoapods and Extension |
Android
Component | AAR | |
Mobile Framework | ||
Mobile Gateway Service | ||
Mobile Push Service | ||
Mobile Sync Service | ||
Mobile Analytics Service | Mobile Analytics Service Code Sample Cocoapods and Extension | |
Upgrade | ||
Switch Configuration | ||
Hotpatch | ||
Content Delivery Platform | Content Delivery Platform Code Sample Cocoapods and Extension | |
H5 Container and Offline Package | H5 Container and Offline Package Code Sample Cocoapods and Extension | |
Tiny Program | ||
Native UI Component (AntUI) | Native UI Component (AntUI) Code Sample Cocoapods and Extension | |
Social Sharing | ||
Code Scanner | ||
Datacenter | ||
Location Based Service | ||
Mobile Real-Time Communication | Mobile Real-Time Communication Code Sample Cocoapods and Extension |
Front-end Framework
mPaaS has already provided updated and more stable Mini Program components as the main direction for future maintenance and development, and has ceased maintenance for Kylin. Compared to the Kylin solution, the Mini Program components offer higher usability and stability, and can adapt to various scenarios. Therefore, new users are advised to integrate with the Mini Program components. For users who have already integrated with the Kylin framework, it is recommended to switch to the Mini Program components as well. For more information, see Mini Program.
V10.1.32
Android
The Android code samples of all components are packaged in one .zip
file.
You can integrate Android SDK in two ways: Based on mPaaS Framework or Based on Natice Framework. You can download the corresponding code sample according to your needs. For more information, see Integration method introduction.
Based on mPaaS framework: mpaas_android_demo_10.1.32_201906101936.zip
Based on natice framework: mpaas_platfrom_aar_demo_android.zip
iOS
You can integrate iOS SDK in two ways: CocoaPods or mPaaS Plugin. For more information, see Integration method introduction.
The addresses of code samples are as follows:
The code samples for all components in the table below are packaged in the All-in-on zip file, and you can get the code samples for all the components from this table in one go.
Component | CocoaPods | mPaaS Plugin | Extension Plugin |
All-in-one (including all components) | N/A | N/A | |
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A | |||
N/A |