Hacker News new | ask | show | jobs
FrankenRobot - Android injection library based on resources qualifier mechanism. (github.com)
1 points by menny 4915 days ago
A simple injection library for Android: uses Android resources qualification mechanism to map interfaces to concrete implementations. FrankenRobot takes two string-array resources; one of canonical interface names, and the second of canonical concrete implementations. You can specify a different implementation for every imaginable resource qualifier (be it API level, screen-size, locale, etc.), and FrankenRobot will instantize the most appropriate implementation using Android's resource qualifier mechanism.