Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
leancloud
adapters
Repository navigation
Code
Issues
2
(2)
Pull requests
17
(17)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Motivation
Jump to bottom
Lee Yeh edited this page
Jul 9, 2020
·
2 revisions
在 LeanCloud 我们现在有三个 SDK(storage、realtime、play),他们都支持多个平台。只要其中一个平台的 API 有更新,我们就得升级三个 SDK 并更新版本号,这是机械重复的工作。我们之前抽象了
https://github.com/leancloud/weapp-polyfill
来在三个 SDK 之间共享一部分代码,但是 SDK 对 polyfill 依然是依赖关系,「升级」的重复工作仍然存在。
我们支持的平台越多,这种与特性平台相关的升级就会越来频繁,很快我们的 SDK 就会更新到 v3.103.4。更糟糕的是如果某个平台 API 发生了对我们有影响的 breaking change,我们的 SDK 也需要升大版本(比如 React Native deprecate 了内置的 AsyncStorage)。这些升级会导致 SDK 真正有意义的更新信息在版本号里得不到体现。
我们没有精力去维护所有市面上的平台,所以我们需要把 adapters 这一层协议标准化并公开出来让用户能方便的自行去实现 platform-adapters,这个标准化的结果就是 @leancloud/adapter-types。
Wiki pages
Pages
2
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Motivation
Clone this wiki locally
You can’t perform that action at this time.