From fd15052d6af811c4115d405b2340b47420d0b7b8 Mon Sep 17 00:00:00 2001 From: allenns <18856907654@163.com> Date: Wed, 3 Jun 2020 23:51:05 +0800 Subject: [PATCH] update README --- README.md | 37 ++++++++++++++++++++++++++++++++++++- lib_dialog/build.gradle | 15 +++++++++++++-- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bf14bda..070bfc9 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,39 @@ SheetDialog(this) }) .setCancelTvMsg("取消") .show() -``` \ No newline at end of file +``` + +## 设计思路 + +- BaseDialog + +基础的dialog 控制dialog 大小,显示隐藏等基本功能 + +- BottomDialog + +继承BaseDialog,实现重底部弹出的效果 + +- SheetDialog + +继承BottomDialog + + +# More + +可以扫描二维码下载体验Demo + +![](https://allens-blog.oss-cn-beijing.aliyuncs.com/uPic/2020-05-20-16-10-49-1589962249%20.png) + +# License + + 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. \ No newline at end of file diff --git a/lib_dialog/build.gradle b/lib_dialog/build.gradle index 00179e0..f1d99c7 100644 --- a/lib_dialog/build.gradle +++ b/lib_dialog/build.gradle @@ -6,5 +6,16 @@ apply plugin: 'kotlin-android-extensions' //apply from: 'maven.gradle' //编译配置 apply from: '../config_compile.gradle' -//是否混淆 -//apply from: '../proguard.gradle' \ No newline at end of file + +android{ + //========================================================================================== + // lib 模块是否开启自定义的混淆 + //========================================================================================== + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + +} \ No newline at end of file