Skip to content

Commit

Permalink
Release v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dewantawsif committed Aug 7, 2024
1 parent 2b4dbda commit 17cb41d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v0.5.0]
### Added
- `FlexibleHilt.get()` and `FlexibleHilt.getLazy()`

### Changed
- Generated classes and their file structure

### Deprecated
- `MakeFlexible` annotation, as it is no longer needed due to recent compiler changes
- `getFromFlexibleHilt()` and `lazyFromFlexibleHilt()` in favor of `FlexibleHilt.get()` and `FlexibleHilt.getLazy()`
Expand All @@ -32,7 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [v1.0.0]
Initial release

[Unreleased]: https://github.com/dewantawsif/flexible-hilt/compare/v0.4.0...HEAD
[Unreleased]: https://github.com/dewantawsif/flexible-hilt/compare/v0.5.0...HEAD
[v0.5.0]: https://github.com/dewantawsif/flexible-hilt/compare/v0.4.0...v0.5.0
[v0.4.0]: https://github.com/dewantawsif/flexible-hilt/compare/v0.3.0...v0.4.0
[v0.3.0]: https://github.com/dewantawsif/flexible-hilt/compare/v0.2.1...v0.3.0
[v0.2.1]: https://github.com/dewantawsif/flexible-hilt/compare/v0.1.1...v0.2.1
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
The library requires your app's `minSdk` to be 21+

### Add dependencies
- KSP (https://github.com/google/ksp)

```kotlin
plugiin {
id("com.google.devtools.ksp") version "2.0.0-1.0.21"
alias(libs.plugins.ksp)
}

dependencies {
implementation("me.tawsif.hilt:flexible-hilt-core:0.4.0")
ksp("me.tawsif.hilt:flexible-hilt-compiler:0.4.0")
implementation("me.tawsif.hilt:flexible-hilt-core:0.5.0")
ksp("me.tawsif.hilt:flexible-hilt-compiler:0.5.0")
}
```

### Prepare class/interface
Make your base class/interface inherit `FlexibleHiltItem `
Make your base class/interface inherit `FlexibleHiltItem`
```kotlin
class Pet @Inject constructor(): FlexibleHiltItem {
val type = "dog"
Expand Down

0 comments on commit 17cb41d

Please sign in to comment.