DeMon

Results 5 comments of DeMon

使用annotationProcessor而非kapt,Glide源码是使用的Java,使用kapt编译时无法找到Java代码的注解类: ``` annotationProcessor 'com.github.bumptech.glide:compiler:4.13.1' ```

![image](https://user-images.githubusercontent.com/19269021/163793224-bb9cc726-6774-43f0-a2db-ffbf976d4428.png)

(version 31 and above) requires that an explicit value for android:exported 31版本以上的手机。要求启动Activity必须设置android:exported="true"否则无法安装

这几个问题我确实没考虑到。 1. ActivityResultCaller作为key其实是传入Activity,这样其实容易内存泄漏。个人是不推荐的。 2. key的保存可以考虑过用LRU缓存优化,也不用担心占用内存过大。这样不remove也没多大关系,也能解决多层fragment嵌套的问题。 3.Activity Result API除了几个官方的系统api,是真的不好用,更推荐GhostFragment。 4. singleTask配合 onNewIntent 模式 暂时还没有解决思路,可以继续探讨。

https://jitpack.io/#samlss/Lighter/V1.0.3