Skip to content

Commit bda1a09

Browse files
author
xiaoqi
committed
update to 2.0.3
1 parent 7e3464e commit bda1a09

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@
1616
2.0.0 去掉NeedSave注解中的isParcelable字段,自动可以支持不同类型;
1717
如果字段被标记为private在编译的时候会抛异常;
1818
支持基本所有bundle可以传入的类型,包括SparseParcelableArray等, 如果传入的类型bundle不支持会抛异常(如果有遗漏的类型,请在github 提出issue);
19-
2.0.2 修复通过继承去实现Serializable的对象不能识别的bug
19+
2.0.2 修复通过继承去实现Serializable的对象不能识别的bug;
20+
2.0.3 优化异常提示
2021

2122

2223
引入方式,在app的gradle中加入下面依赖即可:
2324

2425

25-
compile 'com.noober:savehelper:2.0.2'
26-
compile 'com.noober:savehelper-api:2.0.2'
27-
annotationProcessor 'com.noober:processor:2.0.2'
26+
compile 'com.noober:savehelper:2.0.3'
27+
compile 'com.noober:savehelper-api:2.0.3'
28+
annotationProcessor 'com.noober:processor:2.0.3'
2829

2930
# 引入
3031

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ext {
3535
userOrg = 'noober'
3636
groupId = 'com.noober'
3737
uploadName = 'AutoSaver'
38-
publishVersion = '2.0.2'
38+
publishVersion = '2.0.3'
3939
desc = "A light weight framework can automatically generate 'OnSaveInstanceState' code"
4040
website = 'https://github.com/JavaNoober/AutoSave'
4141
// gradlew clean build bintrayUpload -PbintrayUser=xiaoqiandroid -PbintrayKey=xxxxxxxxxxxxxxxx -PdryRun=false

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ dependencies {
2929
})
3030
implementation 'com.android.support:appcompat-v7:+'
3131
testImplementation 'junit:junit:4.12'
32-
implementation 'com.noober:savehelper:2.0.2'
33-
annotationProcessor 'com.noober:processor:2.0.2'
34-
implementation 'com.noober:savehelper-api:2.0.2'
32+
implementation 'com.noober:savehelper:2.0.3'
33+
annotationProcessor 'com.noober:processor:2.0.3'
34+
implementation 'com.noober:savehelper-api:2.0.3'
3535
// implementation project(':savehelper')
3636
// implementation project(':savehelper-api')
3737
// annotationProcessor project(':savehelper-processor')

savehelper/src/main/java/com/noober/savehelper/SaveHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ private static <T> ISaveInstanceStateHelper<T> findSaveHelper(T cl) {
5454
saveInstanceStateHelper = (ISaveInstanceStateHelper<T>)findClass.newInstance();
5555
helperCache.put(clazz,saveInstanceStateHelper);
5656
} catch (ClassNotFoundException e) {
57-
e.printStackTrace();
57+
// ignore
58+
//e.printStackTrace();
5859
} catch (InstantiationException e) {
5960
e.printStackTrace();
6061
} catch (IllegalAccessException e) {

0 commit comments

Comments
 (0)