File tree Expand file tree Collapse file tree
savehelper/src/main/java/com/noober/savehelper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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')
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments