Skip to content

Commit 5748a1b

Browse files
committed
release 3.1.0
1 parent 8a7471e commit 5748a1b

File tree

4 files changed

+39
-27
lines changed

4 files changed

+39
-27
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -137,23 +137,25 @@ BasePopup配备完善的文档,建议您优先查阅文档。
137137

138138
### 更新日志 [(历史更新)](https://www.yuque.com/razerdp/basepopup/uyrsxx)
139139

140-
* **【Snapshot】2.3.2-SNAPSHOT** (2021/05/13)
141-
* 修复屏幕旋转后Popup大小没更新的问题
142-
* 修复update(float,float)失效的问题
143-
* **【Snapshot】3.0.0-SNAPSHOT** (2021/05/14)
144-
* 升级提示:[关于BasePopup 3.0的破坏性更新说明](./Update_3.0.md)
145-
* 删除**BaseLazyPopupWindow**:往后不需要区分懒加载和正常的BasePopupWindow,统一依赖BasePopupWindow
146-
* 删除方法`onCreateConstructor`:该方法实际上是给BaseLazyPopupWindow使用的,现在没有了BaseLazyPopupWindow,自然不需要该方法
147-
* 【重要】删除方法`onCreateContentView`:该方法的删除将会影响所有的BasePopupWindow子类,您需要手动去改动
148-
* 该方法将会被`setContentView(@LayoutRes int layoutResID)``setContentView(final View view)`所代替,您需要修改其使用。
149-
* 当然,如果使用`setContentView(final View view)`,我们依然建议您用setContentView(createPopupById(layoutResID)),以便我们解析到正确的xml配置。
150-
* **【Snapshot】3.1.0-SNAPSHOT** (2021/05/27)
151-
* 增加api:`hideKeyboardOnShow(boolean)`,是否在BasePopup显示时收起键盘,默认收起
152-
* demo增加 issue 369测试用例
153-
* fixed [#369](https://github.com/razerdp/BasePopup/issues/369)
154-
* 蒙层现在只有点击的时候才会执行dismiss(之前是只判断action_up是否在蒙层内)
155-
* `onOutSideTouch`增加isMaskPressed标记
156-
140+
* **【Release】3.1.0** (2021/05/28)
141+
* 本次更新是破坏性更新,更新之前如果您仍处于2.x版本,请务必阅读以下两项事项:
142+
* 由于JCenter已经停止服务,因此3.0版本开始将会迁移到MavenCentral,新的依赖groupId为【io.github.razerdp】,具体请查看上面的[环境依赖]((#环境依赖))
143+
* 3.0版本是破坏性升级,影响范围为所有BasePopupWindow子类,但修改不会很多,具体请看[关于BasePopup 3.0的破坏性更新说明](./Update_3.0.md)
144+
* 【优化】
145+
* 增加api:`hideKeyboardOnShow(boolean)`,是否在BasePopup显示时收起键盘,默认收起
146+
* demo增加 issue 369测试用例
147+
* fixed [#369](https://github.com/razerdp/BasePopup/issues/369)
148+
* 蒙层现在只有点击的时候才会执行dismiss(之前是只判断action_up是否在蒙层内)
149+
* `onOutSideTouch`增加isMaskPressed标记
150+
* 【Api修改】
151+
* 删除**BaseLazyPopupWindow**:往后不需要区分懒加载和正常的BasePopupWindow,统一依赖BasePopupWindow
152+
* 删除方法`onCreateConstructor`:该方法实际上是给BaseLazyPopupWindow使用的,现在没有了BaseLazyPopupWindow,自然不需要该方法
153+
* 删除方法`onCreateContentView`:该方法的删除将会影响所有的BasePopupWindow子类,您需要手动去改动
154+
* 该方法将会被`setContentView(@LayoutRes int layoutResID)``setContentView(final View view)`所代替,您需要修改其使用。
155+
* 如果使用`setContentView(final View view)`,我们依然建议您用setContentView(createPopupById(layoutResID)),以便我们解析到正确的xml配置。
156+
* 【修复】
157+
* 修复屏幕旋转后Popup大小没更新的问题
158+
* 修复`update(float,float)`失效的问题
157159

158160
<br>
159161

README_V2_EN.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,25 @@ Reference document(CN):[**BasePopup manual**](https://www.yuque.com/razerdp/ba
127127

128128
**Snapshot dev log see dev branch:** [**branch-dev**](https://github.com/razerdp/BasePopup/tree/dev)
129129

130-
* **【Snapshot】2.3.0** (2021/04/30)
131-
* Migration to maven central
130+
* **【Release】3.1.0** (2021/05/28)
131+
* This update is a destructive update, so if you are still on version 2.x before updating, please make sure you read the following two notes.
132+
* As JCenter is no longer in service, it will be migrated to MavenCentral starting with version 3.0. The new dependency groupId is `io.github.razerdp`, see [Download](#Download) above for details.
133+
* Version 3.0 is a destructive update that affects all BasePopupWindow subclasses, but the changes will not be extensive, see [Note on destructive update to BasePopup 3.0](./Update_3.0.md)
134+
* 【Optimise】
135+
* Add api: `hideKeyboardOnShow(boolean)`, whether to put away the keyboard when BasePopup is displayed, default is put away
136+
* demo adds issue 369 test cases
137+
* fixed [#369](https://github.com/razerdp/BasePopup/issues/369)
138+
* The mask now only performs a dismiss when it is clicked (previously it only determined if action_up was inside the mask)
139+
* `onOutSideTouch` adds the `isMaskPressed` param
140+
* 【Api Modification】
141+
* Delete **BaseLazyPopupWindow**: henceforth there is no need to distinguish between lazy loading and normal BasePopupWindow, and the reliance on BasePopupWindow is uniform
142+
* Remove the method `onCreateConstructor`: this method is actually for the BaseLazyPopupWindow and is not needed now that there is no more BaseLazyPopupWindow.
143+
* Delete method `onCreateContentView`: the deletion of this method will affect all BasePopupWindow subclasses and you will need to change them manually
144+
* This method will be replaced by `setContentView(@LayoutRes int layoutResID)` or `setContentView(final View view)`, which you will need to modify to use.
145+
* If you use `setContentView(final View view)`, we still recommend that you use setContentView(createPopupById(layoutResID)) so that we parse to the correct xml configuration.
146+
* 【Bug fixed】
147+
* Fix Popup size not updating after screen rotation
148+
* Fix `update(float,float)` not working
132149

133150
<br>
134151

app/src/main/java/razerdp/demo/DemoActivity.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,10 @@
1212
import androidx.recyclerview.widget.LinearLayoutManager;
1313

1414
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions;
15-
import com.pgyersdk.update.DownloadFileListener;
16-
import com.pgyersdk.update.PgyUpdateManager;
17-
import com.pgyersdk.update.UpdateManagerListener;
18-
import com.pgyersdk.update.javabean.AppBean;
1915

20-
import java.io.File;
2116
import java.util.ArrayList;
2217
import java.util.List;
2318

24-
import androidx.annotation.NonNull;
25-
import androidx.recyclerview.widget.LinearLayoutManager;
2619
import butterknife.BindView;
2720
import butterknife.OnClick;
2821
import razerdp.basepopup.QuickPopupBuilder;

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ext {
3939
minLibSdkVersion = 16
4040
targetSdkVersion = 30
4141
versionCode = 302
42-
versionName = '3.1.0-SNAPSHOT'
42+
versionName = '3.1.0'
4343

4444
candy = false
4545
group = 'io.github.razerdp'

0 commit comments

Comments
 (0)