- Improve: Shortbread is now an isolating annotation processor, which improves the performance of incremental annotation processing.
Before, the processor was of type aggregating and it would generate a single class
ShortbreadGenerated. Now it generates one class for each activity that contains shortcuts, e.g.MoviesActivity_Shortcuts. The generated classes are still only used by the library itself, the consumer does not interact with them. - Improve: Shortcut methods/functions don't have to be
publicanymore. Any visibility higher thanprivateis enough. - Fix: When using
R2, resource values sometimes were not properly read when the incremental annotation processing was incremental - New: The module
:sample-libraryshows how to use Shortbread in a library module
- New: Shortbread is now initialized automatically using App Startup
- Deprecated:
Shortbread.create(context)- no need to call this anymore as the shortcuts are set automatically during app startup - Fix: Resource values sometimes were not properly read when the incremental annotation processing was incremental
- Improve:
ActivityLifecycleCallbackswill not be registered if there are no method shortcuts
- New: Support for non-final resource IDs. See README.md for detailed usage instructions.
- Update:
androidx.annotation:annotationto1.1.0 - Update: Android Gradle plugin to
4.1.2 - Migrated publishing from JCenter to Maven Central
- New: Support for incremental annotation processing
- Switch from Support annotations library to
androidx.annotation - Java 8 is now required
- Minimum SDK increased from
9to14(app shortcuts are still not available before25) - Update: Android Gradle plugin to
3.6.4 - Some small changes to bring everything to 2020
-
Fix: Annotated methods are called before
onCreate()(#13) -
Update: Support annotations library to
26.0.2. This requires the new Google Maven Repository:google()
or
maven { url "https://maven.google.com" }
- Fix:
Shortbread.create(context)can now also be called if there are no@Shortcutannotations in the code, which before produced a crash. Previously created shortcuts are now removed. - Fix: Internal
NullPointerExceptionwhen an activity containing method shortcuts is not launched via a method shortcut - Add Javadoc for the public API
Initial release