Releases: adef145/Ktan
Releases · adef145/Ktan
1.2
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
intocom.ktan.processor.integrations=livedata/flow
- Change option from
Features
- Annotation
@FlowExtra
. To help processor to generateStateFlow
data type onBinding
class. And also can combine with another annotation likes:- Annotation
@Required
. To define non null when consumer receiving the data. - Annotation
@Mutable
. To define asMutableStateFlow
instead ofStateFlow
.
- Annotation
Enhancement
- Refactoring Ksp processor, more easier to read and adding more integration.
1.1
Release Highlights
Having LiveData
integration for getting extras data.
Features
- Annotation
@LiveExtra
. To help processor to generateLiveData
data type onBinding
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 asMutableLiveData
instead ofLiveData
.
- Annotation
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 generateBinding
andRouting
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
- 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 severalextras
- Property
- Having
bindExtras
extension function inActivity
andFragment
. - 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