diff options
author | Ting-Yuan Huang <laszio@google.com> | 2022-02-18 12:53:25 -0800 |
---|---|---|
committer | laszio <ting-yuan@users.noreply.github.com> | 2022-02-18 15:28:46 -0800 |
commit | 79171188699f250b7667fefaf5e6a69b45281bd4 (patch) | |
tree | f7cde99f8befdec724e4ea307eac32bb1d191616 /api | |
parent | 8e0e2f3774e737059ea10061681df1161a80ae4b (diff) | |
download | ksp-79171188699f250b7667fefaf5e6a69b45281bd4.tar.gz |
Fix ABI compatibility
Also verified with japi-compliance-checker.
Diffstat (limited to 'api')
-rw-r--r-- | api/src/main/kotlin/com/google/devtools/ksp/processing/SymbolProcessorEnvironment.kt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/api/src/main/kotlin/com/google/devtools/ksp/processing/SymbolProcessorEnvironment.kt b/api/src/main/kotlin/com/google/devtools/ksp/processing/SymbolProcessorEnvironment.kt index e33f6ff3..bbe47f8a 100644 --- a/api/src/main/kotlin/com/google/devtools/ksp/processing/SymbolProcessorEnvironment.kt +++ b/api/src/main/kotlin/com/google/devtools/ksp/processing/SymbolProcessorEnvironment.kt @@ -54,4 +54,20 @@ class SymbolProcessorEnvironment( * There can be multiple platforms in a metadata compilation. */ val platforms: List<PlatformInfo>, -) +) { + // For compatibility with KSP 1.0.2 and earlier + constructor( + options: Map<String, String>, + kotlinVersion: KotlinVersion, + codeGenerator: CodeGenerator, + logger: KSPLogger + ) : this( + options, + kotlinVersion, + codeGenerator, + logger, + kotlinVersion, + kotlinVersion, + emptyList() + ) +} |