reflections icon indicating copy to clipboard operation
reflections copied to clipboard

android support

Open ronmamo opened this issue 4 years ago • 2 comments

support for android environments is highly desirable

  • to be able to instantiate Reflections within android rt
  • to be able to query the Store
  • easy integration with gradle (+ instructions)

some options: 1) with a different metadata scanner than javassist that supports dalvik, or 2) as a solution for generating scanned metadata on build time and collecting on runtime with Reflections.collect()

2 seems simpler and better for android rt performance, though it's more a workaround. a one liner integration for gradle or similar is preferred.

ronmamo avatar Sep 25 '21 17:09 ronmamo

There's also another problem with the current version: at least on the version I have downloaded, the scanner crashes in scan because File.toPath() doesn't exist. I am on a modern enough Android version that this should be supported.

rdrpenguin04 avatar Oct 29 '21 15:10 rdrpenguin04

I can try to work on this. I see it is tagged as a good first issue so I will take a look

VinWin99 avatar Nov 17 '21 09:11 VinWin99