Anzidcodogen
Annotation proccessor for generate public observers
Supported annotation PublicSharedFlow, PublicLiveData, InternalSharedFlow, InternalLiveData
Example:
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.haizerdev:anzidcodogen:0.3'
kapt 'com.github.haizerdev:anzidcodogen:0.3'
}
Step 3. Please add the Kotlin-generated files folder to your source set. This is done via sourceSets block in your module’s build.gradle. The srcDir is the path to which the files were generated which was indicated by the kapt.kotlin.generated option. If you do not add this block, you’ll be flagged by a method not found error message in the IDE.
android {
...
sourceSets {
main {
java {
srcDir "${buildDir.absolutePath}/generated/source/kaptKotlin/"
}
}
}
}