Skip to content

Releases: jeluchu/jchucomponents

v1.8.0

16 Aug 17:12
Compare
Choose a tag to compare

This is the new major version of the jchucomponents, which will also include the availability of documentation, as well as a complete refactoring of all the functions that are currently in the rest of the projects and the grouping of all the previous ones.

What has changed

  • Include initial app example for library components
  • Include IconProgress in jchucomponents-ui module
  • Update to Kotlin 1.9.0
  • Update to Jetpack Compose 1.5.0
  • Update others dependencies

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.7.5

13 Jul 12:47
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • Renamed functions: fun toFullPrice(...) and fun toDividedPrice(...) in PriceUtils
  • Fixed examples in MainActivity

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.7.4

13 Jul 12:39
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • Include in PriceUtils a new function for converted divide price into full price, and renamed functions: fun convertFullPrice(...) and fun convertDividedPrice(...)

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.7.3

11 Jul 21:14
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • Fixed MarqueeText and Type Composable

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.7.2

08 Jul 01:29
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • Fixes and improves to DataStore

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.7.1

08 Jul 01:10
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • DataStoreService is included to avoid having to rely on the DataStore library within the projects.

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.7.0

08 Jul 00:35
Compare
Choose a tag to compare

This is the new major version of the jchucomponents, which will also include the availability of documentation, as well as a complete refactoring of all the functions that are currently in the rest of the projects and the grouping of all the previous ones.

What has changed

A new preferences module (jchucomponents-prefs) has been included, this way there will be the possibility to use SharedPreferences or DataStore according to the developer's preference in a simple way.

Initialize the module in the onCreate method of your Activity:

initDataStore(context: Context) // for DataStore

or

initSharedPrefs(context: Context) // for SharedPreferences

A class has been created that will allow you to easily access to save your preferences, with a key and the value, in addition, when accessing to retrieve that information, you can pass by parameter a default value, so that in case that value does not exist, it will return something by default.

To access this, we can simply create an object and create a variable with lazy

val preferences by lazy { DataStoreHelpers() }  // for DataStore

or

val preferences by lazy { SharedPrefsHelpers() } // for SharedPreferences

And from there we call the getPreference or savePreference methods depending on what we want to do. For example:

val getAppVersion
  get() = getPreference(KEY_APP_VERSION)

fun savePreference(
   tag: Preferences.Key<Long>,
   value: Long
) = preferences.savePreference(tag, value)

There is also support for Jetpack Compose, as it includes a way to call our preferences via a remember, which would be used as follows:

val badge by rememberPreference(
    KEY_APP_VERSION,
    "1.0.0"
)

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.6.0

06 Jul 12:13
Compare
Choose a tag to compare
Merge branch 'develop' into main

v1.5.4

06 Jul 08:22
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • Improve DragAndDrop for LazyColumns

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue

v1.5.3

05 Jul 15:48
Compare
Choose a tag to compare

This is the new minor release of jchucomponents, which will include fixes to design elements, extensions or core, depending on the issue found.

What has changed

  • Include BlurImage(...) for load network images with blur effect

If you have any problems, or suggestions for adding new components, don't hesitate to open an issue