• Stars
    star
    318
  • Rank 127,599 (Top 3 %)
  • Language
    C
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

mPaaS Demo 合集,mPaaS 是源自于支付宝的移动开发平台。The collection of demos for mPaaS components. mPaaS is the Mobile Development Platform which oriented from Alipay.

mPaaS H5 容器 10.1.60

30 分钟接入

mPaaS 离线包是什么?

Hybrid 开发模式已不是什么新鲜的话题,不仅可以快速发布新业务,同时无需考虑 App 发版时间,为业务更新迭代提供了极强的灵活性。相比于 Web 开发,Hybrid 开发模式提供了丰富的设备 API,让业务形态可以更加多元和丰富。

mPaaS 离线包源自于支付宝原生方案,经历了严苛的业务考验,让你直接和支付宝使用同一套框架层代码,拥有统一容器及内核,相对系统内核获取更低 Crash 率和 ANR 率,适配性强,并具备良好的、弹性的扩展能力,结合具体业务需求定制 JSAPI。

它解决什么问题?

  • 减少白屏
  • 解决 Hybrid App 跨平台兼容与适配
  • 提升 Hybrid App 性能
  • 原生开发下的包大小优化

实现原理

  • 减少白屏

为了优化 HTML5 容器用户体验,减少白屏时间,我们在 H5 容器中引入了离线包技术。离线包可以简单理解为一个 zip 压缩包,其中包含前端页面所需的 HTML、CSS、JS、图片等资源。内置到客户端后,H5 容器打开离线包页面时会直接从离线包中获取资源,这个是毫秒的访问时间,消除了打开页面白屏现象。

  • 解决 Hybrid App 跨平台兼容与适配

通过 mPaaS 提供的统一 UC 内核,从而快速解决在 Android 设备上“一套代码因系统内核不同,导致展现形式不同”的兼容适配问题。

  • 提升 Hybrid App 性能

为了提升 HTML5 容器稳定性,我们在安卓系统上使用了 UC WebView,其崩溃率和 ANR 率远低于系统浏览器,而且彻底规避了安卓系统 Webview 碎片化问题。

  • 原生开发下的包大小优化

针对离线包,我们做了“业务资源包”和“公共资源包”分类。公共资源包中包含框架 JS、CSS、常见图片等,同时此类资源在整个 App 内仅保存一份;业务资源包仅保存业务所需的页面静态资源,同时各业务间相互独立解耦。从而保证一个业务的页面资源能够同时来自业务资源包和公共资源包,充分优化 App 大小。 基于以上方案,Native 业务可将转化成 HTML5,从而进一步优化 App 大小,实现业务动态下发,按需下载。

你需要准备的

  • 一个原生安卓工程,添加签名切编译出 APK 安装包
  • 在 mPaaS 控制台创建了应用并上传加签后的安装包获得了 *.config 配置文件
  • 配置开发环境(在本教程中以 macOS 下的安卓开发环境为例进行说明)。更多信息,请参考[准备配置](文档中心 - 蚂蚁金服金融科技)
  • 网络连接和网络浏览器(推荐使用 Chrome 浏览器)
  • 一部安卓手机及配套的数据线(手机系统版本为安卓 4.3 或更新,您也可以选择使用模拟器进行调试)

你可以如何接入它?

[步骤零:申请试用]

申请试用 mPaaS 离线包

[Android 端]

[iOS 端]

[步骤四:申请 UC 内核]

申请 UC 内核 Key,预计半个工作日内生效

具体接入文档可参考:mPaaS 容器文档

我们已经服务了谁

容器能力 - 案例墙

欢迎交流 + 反馈 + 拍砖

  • Issue 反馈(如果你遇到任何 bug 或者功能需求,欢迎第一时间让我们知道)
    Issue 地址
  • 加入技术交流群,有问题随时交流

mPaaS 功能试用 - 引流关注

开源许可

This project is under the Apache 2.0 License. See the LICENSE file for the full license text.

Copyright (C) 2015-present, Ant Financial Services Group

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Disclaimer(免责声明)

免责声明

More Repositories

1

SoloPi

SoloPi 自动化测试工具
Java
5,605
star
2

alipay-easysdk

Alipay Easy SDK for multi-language(java、c#、php、ts etc.) allows you to enjoy a minimalist programming experience and quickly access the various high-frequency capabilities of the Alipay Open Platform.
Java
1,055
star
3

alipay-sdk-java-all

支付宝开放平台 Alipay SDK for Java
Java
487
star
4

alipay-sdk-nodejs-all

支付宝开放平台 Alipay SDK for Node.js
JavaScript
390
star
5

alipay-sdk-python-all

支付宝开放平台 Alipay SDK for Python
Python
252
star
6

PainlessInferenceAcceleration

Python
243
star
7

Owfuzz

Owfuzz: a WiFi protocol fuzzing tool
C
203
star
8

alipay-sdk-net-all

支付宝开放平台 Alipay SDK for .NET
C#
186
star
9

cvpr2020-plant-pathology

Python
170
star
10

antcloud-node-stack

蚂蚁金融科技官方 Node 技术栈脚本
JavaScript
159
star
11

rdf-file

Rdf-File是一个处理结构化文本文件的工具组件
Java
146
star
12

SOFAStack

SOFAStack™ (Scalable Open Financial Architecture Stack) is a collection of cloud native middleware components, which are designed to build distributed systems with high performance and reliability, and have been fully validated by mission-critical financial business scenarios.
135
star
13

ant-application-security-testing-benchmark

Java
131
star
14

alipay-sdk-php-all

支付宝开放平台 Alipay SDK for PHP
PHP
129
star
15

Pyraformer

Python
100
star
16

financial_evaluation_dataset

Python
97
star
17

ios-malicious-bithunter

iOS Malicious Bit Hunter is a malicious plug-in detection engine for iOS applications. It can analyze the head of the macho file of the injected dylib dynamic library based on runtime. If you are interested in other programs of the author, please visit https://github.com/SecurityLife
C
81
star
18

goldfish

A development framework for Alipay Mini Program.
TypeScript
79
star
19

container-observability-service

Simplify Kubernetes applications operation with one-stop observability services, including resource delivery SLO,root cause diagnoses and container lifecycle tracing and more.
Go
76
star
20

SQLFlow

SQLFlow is a bridge that connects a SQL engine, e.g. MySQL, Hive, SparkSQL or SQL Server, with TensorFlow and other machine learning toolkits. SQLFlow extends the SQL language to enable model training, prediction and inference.
72
star
21

KnowledgeGraphEmbeddingsViaPairedRelationVectors_PairRE

Python
61
star
22

Antchain-MPC

Antchain-MPC is a library of MPC (Multi-Parties Computation)
Terra
57
star
23

VCSL

Video Copy Segment Localization (VCSL) dataset and benchmark [CVPR2022]
Python
49
star
24

StructuredLM_RTDT

A library for building hierarchical text representation and corresponding downstream applications.
Python
48
star
25

Z-RareCharacterSolution

TypeScript
42
star
26

jpmml-sparkml-lightgbm

JPMML-SparkML plugin for converting LightGBM-Spark models to PMML
Java
41
star
27

quic-lb

nginx-quic-lb is an implementation of ietf-quic-lb, based on nginx-release-1.18.0, you can see the detailed code in this pull request
C
40
star
28

RJU_Ant_QA

The RJUA-QA (RenJi hospital department of Urology and Antgroup collaborative Question and Answer dataset) is an innovative medical urology specialty QA inference dataset.
40
star
29

Ant-Multi-Modal-Framework

Research Code for Multimodal-Cognition Team in Ant Group
Python
39
star
30

PASE

C
35
star
31

container-auto-tune

Container Auto Tune is an intelligent parameter tuning product that helps developers, operators automatically adjust the application, analyzes JVM reasonable configuration parameters through intelligent algorithms.Please visit the official site for the quick start guide and documentation.
Java
34
star
32

global-open-sdk-java

Ant global gateway SDK
Java
32
star
33

promo-mini-component

支付宝营销玩法小程序组件库
JavaScript
29
star
34

private_llm

Python
27
star
35

tls13-sm-spec

IETF Internet-Draft (I-D) of Chinese cipher suites in TLSv1.3 and related documentation.
Makefile
26
star
36

alipay-intellij-plugin

Intellij IDEA Plugin
20
star
37

character-js

TypeScript
17
star
38

microservice_system_twin_graph_based_anomaly_detection

Python
17
star
39

mobile-agent

Python
15
star
40

ams-java-sdk

AMS Java binding
Java
13
star
41

global-open-sdk-php

Ant global gateway SDK
PHP
12
star
42

antchain-openapi-prod-sdk

PHP
9
star
43

AOP-Based-Runtime-Security-Analysis-Toolkit

TypeScript
8
star
44

ant-application-security-testing-benchmark-nodejs

JavaScript
8
star
45

RGSL

Python
8
star
46

global-open-sdk-python

Ant global gateway SDK
Python
7
star
47

payment-code-widget

A lightweight library provides UI widgets to display payment code in mobile applications. The dimension of the payment code is optimal and scanner-friendly.
Java
6
star
48

TDEER

Code For TDEER: An Efficient Translating Decoding Schema for Joint Extraction of Entities and Relations (EMNLP 2021)
Python
5
star
49

Parameter_Inference_Efficient_PIE

Python
4
star
50

NMCDR

Python
4
star
51

A2-efficient-automated-attacker-for-boosting-adversarial-training

Python
4
star
52

global-open-sdk-dotnet

C#
3
star
53

antchain-openapi-util-sdk

C#
3
star
54

Automatic_AI_Model_Greenness_Track_Toolkit

JavaScript
3
star
55

ComBERT

2
star
56

Timestep-aware-SentenceEmbedding-and-AcmeCoverage

Python
2
star
57

hypro_tpp

Python
1
star
58

BehaviorAugmentedRelevanceModel

Implementation and data of the paper "Beyond Semantics: Learning a Behavior Augmented Relevance Model with Self-supervised Learning" in CIKM'23.
Python
1
star