You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `group` value allows for basic scheduling of code generators. All code generators with the same group will be executed in a loop together until no new code is generated.
Copy file name to clipboardexpand all lines: CHANGELOG.md
+2-14
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
### Added
6
6
7
+
- Added `CodeGenerator.group` for scheduling of code generators. All code generators with the same group will be executed in a loop together until no new code is generated.
8
+
7
9
### Changed
8
10
9
11
- Anvil's generated hints are now all generated to the same `anvil.hint` package, which simplifies hint lookups and better future-proofs future KSP work. Note that this is a user-invisible change, but it will require a one-time recompilation of any Anvil-generated hints.
@@ -22,24 +24,10 @@
22
24
23
25
## [2.5.0-beta07] - 2024-04-16
24
26
25
-
### Added
26
-
27
-
### Changed
28
-
29
-
### Deprecated
30
-
31
-
### Removed
32
-
33
27
### Fixed
34
28
35
29
* Another mangled name workaround in KSP ([#966](https://github.com/square/anvil/pull/966))
Copy file name to clipboardexpand all lines: compiler-api/api/compiler-api.api
+11
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,21 @@ public abstract interface class com/squareup/anvil/compiler/api/AnvilContext {
48
48
}
49
49
50
50
public abstract interface class com/squareup/anvil/compiler/api/CodeGenerator : com/squareup/anvil/compiler/api/AnvilApplicabilityChecker {
51
+
public static final field Companion Lcom/squareup/anvil/compiler/api/CodeGenerator$Companion;
52
+
public static final field GROUP_DEFAULT I
51
53
public abstract fun generateCode (Ljava/io/File;Lorg/jetbrains/kotlin/descriptors/ModuleDescriptor;Ljava/util/Collection;)Ljava/util/Collection;
54
+
public abstract fun getGroup ()I
52
55
public abstract fun isApplicable (Lcom/squareup/anvil/compiler/api/AnvilContext;)Z
53
56
}
54
57
58
+
public final class com/squareup/anvil/compiler/api/CodeGenerator$Companion {
59
+
public static final field GROUP_DEFAULT I
60
+
}
61
+
62
+
public final class com/squareup/anvil/compiler/api/CodeGenerator$DefaultImpls {
63
+
public static fun getGroup (Lcom/squareup/anvil/compiler/api/CodeGenerator;)I
64
+
}
65
+
55
66
public final class com/squareup/anvil/compiler/api/CodeGeneratorKt {
56
67
public static final fun createGeneratedFile (Lcom/squareup/anvil/compiler/api/CodeGenerator;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/squareup/anvil/compiler/api/GeneratedFile;
57
68
public static final fun createGeneratedFile (Lcom/squareup/anvil/compiler/api/CodeGenerator;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;[Ljava/io/File;)Lcom/squareup/anvil/compiler/api/GeneratedFileWithSources;
0 commit comments