Skip to content

Commit fc69db8

Browse files
committed
Prepare release v0.3.7-RC
1 parent e3323b1 commit fc69db8

File tree

3 files changed

+47
-15
lines changed

3 files changed

+47
-15
lines changed

CHANGELOG.md

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,60 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
56
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
67

8+
## [0.3.7-RC] 2021-10-29
9+
10+
### Changed
11+
12+
- Updated kotlin to 1.6.0-RC
13+
- Updated ksp to 1.6.0-RC-1.0.1-RC
14+
- Several improvements to code generation which often means less code is generated.
15+
16+
### Added
17+
18+
- Multiple rounds handling: This includes support for using types generated by other ksp processors. As a side effect
19+
there is better error reporting for unresolved types.
20+
- Support for multiplatform/native. Check out
21+
the [sample project](https://github.com/evant/kotlin-inject-samples/tree/main/multiplatform/echo).
22+
723
## [0.3.6] - 2021-07-16
824

925
### Changed
26+
1027
- Updated kotlin to 1.5.20
1128
- Experimental kotlin js support
1229

1330
### Fixed
14-
- Fix generated code for @Inject functions with a receiver
15-
ex: `@Inject fun Foo.bar() = ...`
31+
32+
- Fix generated code for @Inject functions with a receiver ex: `@Inject fun Foo.bar() = ...`
1633
- Fix not using the typealias for function return types
1734

1835
## [0.3.5] - 2021-06-02
1936

2037
### Changed
38+
2139
- Updated kotlin to 1.5.10
2240
- Updated ksp to beta01
2341

2442
## [0.3.4] - 2021-05-30
2543

2644
### Fixed
45+
2746
- Fix metata parsing issue with kapt on kotlin 1.5.0
2847
- Fix declaring function injection in another module in ksp
2948

3049
### Changed
50+
3151
- Updated kotlin to 1.5.0
3252
- Updated ksp to alpha10
3353

3454
## [0.3.3] - 2021-04-20
3555

3656
### Added
57+
3758
- **Allow cycles when there is delayed construction**
3859

3960
You can now break cycles by using `Lazy` or a function. For example,
@@ -51,10 +72,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5172
@Inject class Foo(bar: () -> Bar)
5273
@Inject class Bar(foo: Foo)
5374
```
54-
This uses `lateinit` under the hood. You will get a runtime exception if you try to use the dependency before
75+
This uses `lateinit` under the hood. You will get a runtime exception if you try to use the dependency before
5576
construction completes.
56-
- Added option `me.tatarka.inject.dumpGraph` to print the dependency graph while building. This can be useful for
57-
debugging issues.
77+
- Added option `me.tatarka.inject.dumpGraph` to print the dependency graph while building. This can be useful for
78+
debugging issues.
5879
- **Allow type-alias usage with `@IntoMap`.**
5980

6081
You can now do
@@ -70,13 +91,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7091
```
7192

7293
### Changed
94+
7395
- Code-gen optimization to reduce code size
7496
- ksp performance improvements
7597
- **Made handling of nullable and platform types consistent on the different backends.**
7698

7799
It is now an error to return a platform type from a `@Provides` methods, you must declare the return type explicitly.
78100

79101
### Fixed
102+
80103
- Fix using `@Qualifier` on scoped dependencies
81104
- Fix declaring components as an inner class
82105
- Fix annotating java class constructors with `@Inject`
@@ -85,6 +108,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
85108
## [0.3.2] - 2021-04-05
86109

87110
### Changed
111+
88112
- Updated ksp to [1.4.30-1.0.0-alpha05](https://github.com/google/ksp/releases/tag/1.4.30-1.0.0-alpha05)
89113

90114
## [0.3.1] - 2021-02-25
@@ -97,14 +121,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
97121
## [0.3.0] - 2021-01-14
98122

99123
### Changed
100-
- **Updated ksp to [1.4.20-dev-experimental-20210111](https://github.com/google/ksp/releases/tag/1.4.20-dev-experimental-20210111)**
124+
125+
- **Updated ksp
126+
to [1.4.20-dev-experimental-20210111](https://github.com/google/ksp/releases/tag/1.4.20-dev-experimental-20210111)**
101127

102128
Key changes:
103-
- You no longer have to define `resolutionStrategy` in your `settings.gradle`.
104-
- The plugin id has changed from `symbol-processing` to `com.google.devtools.ksp`.
129+
- You no longer have to define `resolutionStrategy` in your `settings.gradle`.
130+
- The plugin id has changed from `symbol-processing` to `com.google.devtools.ksp`.
105131
- Minimum supported kotlin version is now 1.4.20
106132

107133
### Added
134+
108135
- **Support injecting suspend functions**
109136

110137
You can now define `suspend` component and provides methods
@@ -147,23 +174,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
147174
```
148175

149176
### Fixed
177+
150178
- Respect component's class visibility
151179
- Fix generating incorrect code for fun providers
152180

153181
## [0.2.0] - 2020-09-28
154182

155183
### Changed
156-
- [Migrate](https://github.com/google/ksp/blob/master/old-ksp-release.md) ksp
184+
185+
- [Migrate](https://github.com/google/ksp/blob/master/old-ksp-release.md) ksp
157186
- Improve kapt error messaging
158187
- Build performance improvements
159-
188+
160189
### Added
190+
161191
- Allow annotating interfaces with `@Component`
162192
- Support `javax.inject.Qualifer`
163193

164194
### Fixed
195+
165196
- Fixed companion generation (`me.tatarka.inject.generateCompanionExtensions=true`) for ksp
166197
- Throw error when parent component is missing val instead of generating incorrect code.
167198

168199
## [0.1.0] - 2020-09-17
200+
169201
- Initial Release

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies {
4949
}
5050
```
5151

52-
### Experimental KSP Support
52+
### or with KSP
5353

5454
You can use [ksp](https://github.com/google/ksp) instead of kapt.
5555

@@ -59,7 +59,7 @@ You can use [ksp](https://github.com/google/ksp) instead of kapt.
5959
pluginManagement {
6060
repositories {
6161
gradlePluginPortal()
62-
google()
62+
mavenCentral()
6363
}
6464
}
6565
```
@@ -68,8 +68,8 @@ pluginManagement {
6868

6969
```groovy
7070
plugins {
71-
id("org.jetbrains.kotlin.jvm") version "1.5.21"
72-
id("com.google.devtools.ksp") version "1.5.21-1.0.0-beta05"
71+
id("org.jetbrains.kotlin.jvm") version "1.5.31"
72+
id("com.google.devtools.ksp") version "1.5.31-1.0.0"
7373
}
7474
7575
repositories {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
kotlin-inject = "0.3.7-SNAPSHOT"
2+
kotlin-inject = "0.3.7-RC"
33
kotlin = "1.6.0-RC"
44
ksp = "1.6.0-RC-1.0.1-RC"
55
kotlinpoet = "1.10.1"

0 commit comments

Comments
 (0)