Tencent's Top 10 Open Source Projects on WeChat and Mobile Development
Category Programming Technology
Tencent has a multitude of open source projects, with 50 projects available on Github.
1. Android Hotfix Framework Tinker
Tinker is the official Android hot patch solution from WeChat. It supports the dynamic deployment of code, So libraries, and resources, enabling applications to update without the need for reinstallation. Of course, you can also use Tinker to update your plugins.
It mainly includes the following parts:
Gradle compilation plugin: tinker-patch-gradle-plugin
Core SDK library: tinker-android-lib
Command line version for non-Gradle compilation users: tinker-patch-cli.jar
Source code address: https://github.com/Tencent/tinker
Documentation address: https://github.com/Tencent/tinker/wiki
2. WeChat Client Cross-Platform Component Mars
Mars is the official terminal basic component of WeChat, a business-irrelevant, platform-irrelevant basic component written in C++. It has been integrated into WeChat clients such as Android, iOS, Mac, Windows, WP, and UWP. Note: Currently, only Android, iOS, Mac, and Windows platforms are supported, with other platforms expected to be supported in subsequent versions soon
It mainly includes the following parts:
Comm: Basic library, including basic tools such as socket, thread, message queue, and coroutine;
Xlog: A universal log module, fully considering the characteristics of mobile terminals, providing high-performance, highly available, secure, and fault-tolerant log functions.
SDT: Network diagnostic module;
STN: Signal transmission network module, responsible for the small data signal channel between the terminal and the server. It includes a large amount of optimization experience and results of WeChat terminals on mobile networks, and has been tested by a large number of WeChat users.
Source code address: https://github.com/Tencent/mars
Documentation address: https://github.com/Tencent/mars/wiki
3. Mini Program Componentized Development Framework WePY
WePY is a framework that supports componentized development of mini-programs, allowing developers to choose their preferred development style through pre-compilation. The framework's detailed optimization, the introduction of Promise, and Async Functions are all aimed at making the development of mini-program projects simpler and more efficient.
The WePY framework refers to some of the syntactic styles and functional features of existing frameworks such as Vue during the development process, re-encapsulating the native mini-program development mode, which is closer to the MVVM architecture and supports some new features of ES6/7.
Source code address: https://github.com/Tencent/wepy
WePY Homepage: https://tencent.github.io/wepy/
Documentation address: https://tencent.github.io/wepy/document.html#/
WePY Resource Summary: https://github.com/aben1188/awesome-wepy
4. Lightweight High-Performance Hybrid Framework VasSonic
VasSonic is named after the Sega game character Sonic the Hedgehog and is a lightweight, high-performance hybrid framework developed by Tencent VAS (SNG Value-Added Product Department QQ Membership) team. It focuses on improving the first-screen loading speed of pages, perfectly supporting both static and dynamic direct output pages, and is compatible with offline package solutions.
Currently, businesses such as QQ Membership, QQ Game Center, QQ Personalized Mall, QQ Shopping, QQ Wallet, and Penguin E-sports are already using it, with a daily PV of over 120 million (only counting the data within HandQ), and the average time for the first screen of the page is below 1 second.
Source code address: https://github.com/Tencent/VasSonic
Documentation address: https://github.com/Tencent/VasSonic/wiki
Figure 1: Before using Sonic mode | Figure 2: After using Sonic mode |
---|---|
5. WeChat Team Front-end Development Tool WeFlow
It has already supported the front-end