From 6db57fa74bd6977bced4725e0cee68df4f644baa Mon Sep 17 00:00:00 2001 From: William <452522426@qq.com> Date: Wed, 16 Feb 2022 15:47:46 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f5b605..6bbee0e 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,19 @@ android { ``` open class *** : VBApplication() { + override fun initData() { + val netOptions = VBNetOptions.Builder() + .setBaseUrl("https://www.wanandroid.com/") + .build() + + val options = VBConfigOptions.Builder() + .setNetOptions(netOptions) + .setStatusBarColor(Color.parseColor("#ffffff")) + .build() + + VBConfig.init(options) + } + } ``` @@ -143,4 +156,4 @@ open class *** : VBApplication() { -keepclassmembers class **$** extends com.chad.library.adapter.base.viewholder.BaseViewHolder { (...); } -``` \ No newline at end of file +``` From 281f0ad8598f522215e5310b70b4cb7e8c86a768 Mon Sep 17 00:00:00 2001 From: William <452522426@qq.com> Date: Wed, 16 Feb 2022 15:48:28 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6bbee0e..0399dbc 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ android { open class *** : VBApplication() { override fun initData() { + //设置全局通用配置 val netOptions = VBNetOptions.Builder() .setBaseUrl("https://www.wanandroid.com/") .build()