Meituan-Dianping/Robust hiện có 4.5k sao trên GitHub, viết chủ yếu bằng Java. Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without publishing apk.
中文说明
More help on Wiki
Environment
Mac Linux and Windows
Gradle 2.10+ , include 3.0
Java 1.7 +
Usage
Add below codes in the module's build.gradle.
apply plugin: 'com.android.application'
//please uncomment fellow line before you build a patch
//apply plugin: 'auto-patch-plugin'
apply plugin: 'robust'
compile 'com.meituan.robust:robust:0.4.99'
Add below codes in the outest project's build.gradle file.
There are some configure items in app/robust.xml,such as classes which Robust will insert code,this may diff from projects to projects.Please copy this file to your project.
Advantages
Support 2.3 to 10 Android OS
Perfect compatibility
Patch takes effect without a reboot
Support fixing at method level,including static methods
Support add classes and methods
Support ProGuard,including inline methods or changing methods' signature
When you build APK,you may need to save "mapping.txt" and the files in directory "build/outputs/robust/".
AutoPatch
AutoPatch will generate patch for Robust automatically. You just need to fellow below steps to genrate patches. For more details please visit website http://tech.meituan.com/android_autopatch.html
Steps
Put 'auto-patch-plugin' just behind 'com.android.application',but in the front of others plugins。like this:
Put mapping.txt and methodsMap.robust which are generated when you build the apks in diretory app/robust/,if not exists ,create it!
After modifying the code ,please put annotation @Modify on the modified methods or invoke RobustModify.modify() (designed for Lambda Expression )in the modified methods:
Use annotation @Add when you neeed to add methods or classes.
//add method
@Add
public String getString() {
return "Robust";
}
//add class
@Add
public class NewAddCLass {
public static String get() {
return "robust";
}
}
After those steps,you need to run the same gradle command as you build the apk,then you will get patches in directory app/build/outputs/robust/patch.jar.
Generating patches always end like this,which means patches is done
After install apk on your phone,you need to save mapping.txt and app/build/outputs/robust/methodsMap.robust
Put mapping.txt and methodsMap.robust which are generated when you build the apks into diretory app/robust/,if directory not exists ,create it!
After modifying the code ,please put annotation @Modify on the modified methods or invoke RobustModify.modify() (designed for Lambda Expression )in the modified methods.
patch directory can be configured in PatchManipulateImp.
Open app,and click Patch button,patch is used.
Also you can use our sample patch in app/robust/sample_patch.jar ,this dex change text after you click Jump_second_Activity Button.
In the demo ,we change the text showed on the second activity which is configured in the method getTextInfo(String meituan) in class SecondActivity
Attentions
You should modify inner classes' private constructors to public modifier.
AutoPatch cannot handle situations which method returns this,you may need to wrap it like belows:
method a(){
return this;
}
changed to
method a(){
return new B().setThis(this).getThis();
}
Not Support add fields,but you can add classes currently, this feature is under testing.
Classes added in patch should be static nested classes or non-inner classes,and all fields and methods in added class should be public.
Support to fix bugs in constructors currently is under testing.
Not support methods which only use fields,without method call or new expression.
Support to resources and so file is under testing.
For more help, please visit Wiki
License
Copyright 2017 Meituan-Dianping
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.
Meituan-Dianping/Robust thuộc nhóm Mobile trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về Meituan-Dianping/Robust ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Meituan-Dianping/Robust là nguồn chính thức.
Meituan-Dianping/Robust có phải mã nguồn mở không?
Có — Meituan-Dianping/Robust phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/Meituan-Dianping/Robust.
Meituan-Dianping/Robust là gì?
Meituan-Dianping/Robust (Meituan-Dianping/Robust) là dự án Java trên GitHub. Theo mô tả gốc: Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Meituan-Dianping/Robust so với các dự án Mobile khác thế nào?
Meituan-Dianping/Robust được TopGit xếp vào nhóm Mobile, với 4.5k sao GitHub và viết bằng Java. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao Meituan-Dianping/Robust được xếp vào nhóm Mobile?
TopGit xếp Meituan-Dianping/Robust vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "android", "dynamic", "gradle"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Robust có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về Robust.