Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

1.0.0-beta19.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@AlexanderEggers AlexanderEggers released this 22 Feb 21:19

This release marks another major release include breaking changes and several optimizations. This is probably the last major release before reaching the stable level. The releases within 19.x will only focus on minor code optimizations and completing the javadoc. The next major release beta20 will probably be the RC1 version (therefore the release will be called RC1 of course).

Library changes

  • The library has been split into two artifacts with different purposes:
  1. org.hitogo:hitogo-core:{VERSION} This artifact is responsible for the library implementation. It includes all relevant builder and objects.
  2. org.hitogo:hitogo-testing:{VERSION} This artifact is responsible for the testing of this library. It will include mocks for unit tests and certain testing tools.
  • Both artifacts can be reached using the jCenter() reference.
  • The version of both artifacts should always be the same to avoid conflicts.
  • The minimum Android SDK level has been increased to 16 (previously 14).

hitogo-core

Features

  • The button API has been revamped. The ActionButton has been seperated into three different button classes:
  1. TextButton: This button can only have a listener and one text element.
  2. ViewButton: This button can have a listener, a reference to a view (and it's relevant click view) and multiple text elements.
  3. CloseButton: This button type is extending the ViewButton. The only difference is the internal usage of certain values.
  • The method setText (Button API) has been changed into addText to allow more than one text element for the button. This implementation is similar to the method addText used inside the AlertBuilder.
  • The ViewButton has the method setView to reference the button to a certain view.
  • The alert and button builders got the method addDrawable(...) which can be used to attach drawables to a certain alert/button.
  • Some methods of the HitogoHelper class has been moved to the new class HitogoAccessor. This class should be used to access resource data from the app. That can be useful to create unit tests.
  • Added asFullscreen(boolean) to the PopupBuilder implementation to specify whether the popup should be displayed in full screen.
  • The HitogoController has been added to the HitogoParams to provide default values. HitogoParams is the parent class for all Params objects (like ViewAlertParams).
  • Several method inside HitogoController has been renamed to improve readability.
  • The class HitogoService has been added to provide a basic interface that can be used to create a MVVM based alert implementation for the own project. If the project is using MVVM, it is highly recommended to use this new class.

Bugfixes

  • Fixed a bug in HitogoController which was missing a function to differ between the priority of different alert types (the controller only has one priority member, but four were actually needed).

hitogo-testing

Features

  • Initial release of the artifact which includes mocks for all builder, the Hitogo object and the HitogoService object.