Notice: As of this release, the navi library is deprecated in favor of lifecycle-aware components. No more development will be taking place.
- #103 Switched to AndroidX libraries
- #93 Make NaviAppCompatDialogFragment extend from AppCompatDialogFragment
- #96 Fail early on null component or event
- #97 Remove unnecessary throws Exception in NaviOnSubscribe
- #98 Disable BuildConfig generation
This major revision was made to support RxJava 2. Navi 2.0 lives in a new namespace and package names so that it can work side-by-side with Navi 1.0 (while transitioning).
The one major behavior change to be aware of is that, since RxJava 2 does not allow nulls, Navi
no longer emits nulls either. This means that any former Void
types are now Object
types
(where the Object
is just a signal). There were also cases of null Bundles
that are now replaced
by empty Bundles
.
- #79 Made all base
Activities
/Fragments
abstract - #77 Switch to using RxJava 2.0
- #76 Avoid using null
- #75 Use AutoValue for models (which changed the method signature of
RequestPermissionsResult.permissions()
) - #74 Change signature of
NaviEmitter.onViewCreated()
to match the rest of the API - #73 Bumped version to 2.0 and use com.trello.navi2
First and (hopefully) final release of 1.x branch!
This release marks the start of maintenance mode for RxJava 1 support. Future work will be devoted to supporting RxJava 2. Important bugs may be squashed but new features will have to be extraordinarily compelling in order to be added.
- #62 Added
Event.POST_CREATE
andEvent.POST_CREATE_PERSISTABLE
- #57 Added
Event.VIEW_CREATED
forFragments
- #54 Use
final
modifier for interface implementations - #53 Add
@CallSuper
annotation on component classes
There are a few method signature and behavior changes, so upgrade carefully.
-
#47 Added
Type.CREATE_PERSISTABLE
,Type.SAVE_INSTANCE_STATE_PERSISTABLE
andType.RESTORE_INSTANCE_STATE_PERSISTABLE
so that theALL
tracker can distinguish between events.Also avoided calling
CREATE
,SAVE_INSTANCE_STATE
andRESTORE_INSTANCE_STATE
too often in persistableActivities
. -
#46 Destruction events now emit before their super() calls.
-
#41 Removed unnecessary
Event
parameter fromNaviComponent.removeListener()
. -
#39 Added
NaviAppCompatDialogFragment
.
- #24 Converted hasEvent() -> handlesEvents()
- #20 Added
Event.ALL
for listening to all events
- #16 Fixed concurrency problems with add/removing listeners while emitting an event
Initial release!