airbnb / DeepLinkDispatch

A simple, annotation-based library for making deep link handling better on Android
http://nerds.airbnb.com/deeplinkdispatch/
4.38k stars 406 forks source link

Address xprocessing api change #343

Closed elihart closed 2 years ago

elihart commented 2 years ago

There was this change in xprocessing to wrap annotation list values in JavacAnnotationValue

before:

    override fun visitArray(vals: MutableList<out AnnotationValue>, env: JavacProcessingEnv) =
        vals.map { it.accept(this, env) }

after:

    override fun visitArray(vals: MutableList<out AnnotationValue>, data: VisitorData) =
        vals.map { JavacAnnotationValue(data.env, data.method, it) { it.accept(this, data) } }

To make this safe so that it works with multiple versions of xprocessing depending on where the library is used (and since the breaking change is only in the xprocessing snapshot version right now) I have updated DLD to work in both cases