File tree Expand file tree Collapse file tree 4 files changed +47
-7
lines changed
molecule-gradle-plugin/src/main/java/app/cash/molecule/gradle Expand file tree Collapse file tree 4 files changed +47
-7
lines changed Original file line number Diff line number Diff line change 3
3
## [ Unreleased]
4
4
5
5
6
+ ## [ 1.2.0] - 2023-08-09
7
+
8
+ New:
9
+ - Support for specifying custom Compose compiler versions. This will allow you to use the latest
10
+ version of Molecule with newer versions of Kotlin than it explicitly supports.
11
+
12
+ See [ the README] ( https://github.com/cashapp/molecule/#custom-compose-compiler ) for more information.
13
+
14
+ Fixed:
15
+ - Ensure frame times sent by ` RecompositionMode.Immediate ` always increase. Previously,
16
+ when targeting JS, the same frame time could be seen since the clock only has millisecond
17
+ precision. Since the frame time is in nanoseconds, synthetic nanosecond offsets will be added to
18
+ ensure each timestamp is strictly greater than the last.
19
+ - Perform teardown of the composition on cancellation within an existing coroutine rather than in
20
+ a job completion listener. This ensures it executes on the same dispatcher as the rest of the
21
+ system, rather than on the canceling caller's thread.
22
+
23
+
6
24
## [ 1.1.0] - 2023-07-20
7
25
8
26
New:
@@ -161,7 +179,8 @@ Initial release
161
179
162
180
163
181
164
- [ Unreleased ] : https://github.com/cashapp/molecule/compare/1.1.0...HEAD
182
+ [ Unreleased ] : https://github.com/cashapp/molecule/compare/1.2.0...HEAD
183
+ [ 1.2.0 ] : https://github.com/cashapp/molecule/releases/tag/1.2.0
165
184
[ 1.1.0 ] : https://github.com/cashapp/molecule/releases/tag/1.1.0
166
185
[ 1.0.0 ] : https://github.com/cashapp/molecule/releases/tag/1.0.0
167
186
[ 0.11.0 ] : https://github.com/cashapp/molecule/releases/tag/0.11.0
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ buildscript {
171
171
mavenCentral()
172
172
}
173
173
dependencies {
174
- classpath 'app.cash.molecule:molecule-gradle-plugin:1.1 .0'
174
+ classpath 'app.cash.molecule:molecule-gradle-plugin:1.2 .0'
175
175
}
176
176
}
177
177
@@ -183,7 +183,7 @@ certain versions of Kotlin.
183
183
184
184
| Kotlin | Molecule |
185
185
| --------| ----------------|
186
- | 1.9.0 | 1.1.0 |
186
+ | 1.9.0 | 1.1.0 - 1.2.0 |
187
187
| 1.8.22 | 0.11.0 - 1.0.0 |
188
188
| 1.8.21 | 0.10.0 |
189
189
| 1.8.20 | 0.9.0 |
@@ -208,7 +208,7 @@ buildscript {
208
208
}
209
209
}
210
210
dependencies {
211
- classpath 'app.cash.molecule:molecule-gradle-plugin:1.2 .0-SNAPSHOT'
211
+ classpath 'app.cash.molecule:molecule-gradle-plugin:1.3 .0-SNAPSHOT'
212
212
}
213
213
}
214
214
@@ -270,6 +270,27 @@ android {
270
270
}
271
271
```
272
272
273
+ ### Custom Compose Compiler
274
+
275
+ Each version of Molecule ships with a specific JetBrains Compose compiler version which works with
276
+ a single version of Kotlin (see [ version table] ( #Usage ) above). Newer versions of the Compose
277
+ compiler or alternate Compose compilers can be specified using the Gradle extension.
278
+
279
+ To use a new version of the JetBrains Compose compiler version:
280
+ ``` kotlin
281
+ molecule {
282
+ kotlinCompilerPlugin.set(" 1.4.8" )
283
+ }
284
+ ```
285
+
286
+ To use an alternate Compose compiler dependency:
287
+ ``` kotlin
288
+ molecule {
289
+ kotlinCompilerPlugin.set(" com.example:custom-compose-compiler:1.0.0" )
290
+ }
291
+ ```
292
+
293
+
273
294
## License
274
295
275
296
Copyright 2021 Square, Inc.
Original file line number Diff line number Diff line change 1
1
GROUP =app.cash.molecule
2
2
3
3
# HEY! If you change the major version here be sure to update release.yaml doc target folder!
4
- VERSION_NAME =1.2.0-SNAPSHOT
4
+ VERSION_NAME =1.2.0
5
5
6
6
SONATYPE_AUTOMATIC_RELEASE =true
7
7
SONATYPE_HOST =DEFAULT
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ interface MoleculeExtension {
24
24
*
25
25
* Example: using a custom version of the JetBrains Compose compiler
26
26
* ```kotlin
27
- * redwood {
27
+ * molecule {
28
28
* kotlinCompilerPlugin.set("1.4.8")
29
29
* }
30
30
* ```
31
31
*
32
32
* Example: using a custom Maven coordinate for the Compose compiler
33
33
* ```kotlin
34
- * redwood {
34
+ * molecule {
35
35
* kotlinCompilerPlugin.set("com.example:custom-compose-compiler:1.0.0")
36
36
* }
37
37
* ```
You can’t perform that action at this time.
0 commit comments