Skip to content

Releases: adef145/Ktan

1.2

15 Jan 08:31
Compare
Choose a tag to compare

Release Highlights

  • Having Flow integration for getting extras data.
  • Update ksp option to turn on or off single integration (live data or flow)
    • Change option from com.ktan.processor.LIVE_DATA=true/false into com.ktan.processor.integrations=livedata/flow

Features

  • Annotation @FlowExtra. To help processor to generate StateFlow data type on Binding class. And also can combine with another annotation likes:
    • Annotation @Required. To define non null when consumer receiving the data.
    • Annotation @Mutable. To define as MutableStateFlow instead of StateFlow.

Enhancement

  • Refactoring Ksp processor, more easier to read and adding more integration.

1.1

30 Aug 15:17
Compare
Choose a tag to compare
1.1

Release Highlights

Having LiveData integration for getting extras data.

Features

  • Annotation @LiveExtra. To help processor to generate LiveData data type on Binding class. And also can combine with another annotation likes:
    • Annotation @Required. To define non null when receive the data from observe.
    • Annotation @Mutable. To define as MutableLiveData instead of LiveData.

1.0

26 Aug 10:11
Compare
Choose a tag to compare
1.0

Release Highlights

This initial version, we try to make easier and simpler to get and put intent extras / arguments.
To make it come true, we create some convention to generated some boilerplate function, so we don't need do and write the same things again and again

Features

  • Annotation @Extras. To help processor to generate Binding and Routing class, and some extension function to populate extras to intent / bundle.
    • Annotation @Required. To define non null extra.
    • Annotation @Mutable. To define extra can modified (var).
  • Annotation @Route. To help processor to generate some extension function to help us to know which extras need to pass to route particular Activity / Fragment.
    • Property extras. To define for particular @Route need several extras
  • Having bindExtras extension function in Activity and Fragment.
  • Having basic Extra class such as:
    • BinderExtra
    • BooleanExtra
    • BundleExtra
    • ByteArrayExtra
    • ByteExtra
    • CharArrayExtra
    • CharExtra
    • CharSequenceArrayExtra
    • CharSequenceExtra
    • DoubleArrayExtra
    • DoubleExtra
    • FloatArrayExtra
    • FloatExtra
    • IntArrayExtra
    • IntExtra
    • LongArrayExtra
    • LongExtra
    • ParcelableArrayExtra
    • ParcelableExtra
    • SerializableExtra
    • ShortArrayExtra
    • ShortExtra
    • SizeExtra
    • SizeFExtra
    • StringArrayExtra
    • StringArrayListExtra
    • StringExtra
  • Having ParcelerExtra to integrate with johncarl81/parceler