Skip to content

Releases: google/ksp

1.4.10-dev-experimental-20201023

23 Oct 21:57
2e2e505
Compare
Choose a tag to compare

Highlights

  • Implemented asMemberOf. Thanks to @yigit !
    Because generic functions generally cannot be represented in Kotlin type system, KSFunction is introduced to hold the information (type parameters). Note that KSFunction is not a KSType and they cannot interact, e.g., equals and isAssignableFrom, directly.

Resolved Issues
#49 Add helper for equivlent of Types.asMemeberOf
#123 baseMethod.overrides(childMethod) returns true

Merged PRs
#110 Implement Resolver.asMemberOf for Properties and Functions
#124 Check for type hierarchy while checking overrides

1.4.10-dev-experimental-20201009

09 Oct 22:16
Compare
Choose a tag to compare

Highlights

  • Added KSType.isMarkedNullable for checking if a type has explicit nullable mark (i.e. ?)
  • Added createKSTypeReferenceFromKSType API to Resolver for generating pseudo KSTypeReference from a KSType
  • Breaking Change Refactored override checking function. Override checking is now a member function of resolver which will take in 2 declarations.
  • Breaking Change Renamed KSVariableParameter to KSValueParameter to align with grammar

Resolved Issues
#82 Incorrect nullability reported for type variables
#83 Lookup of constructor JVM signature throws exception if not found
#93 add support for checking overrides for property getters/setters from Java code
#94 crash in overrides check for java classes that implement kotlin interfaces
#96 cannot read annotation values from java code
#98 Synthetic constructors are not created for Java sources
#99 KSP returns the same constructor twice for java sources
#101 KSTypeReference.resolve throws IllegalStateException for wildcard types
#105 KSP is enabled in KAPT tasks
#107 isError for a non-existing type returns false

commits
728505e fix variance and classifier reference for Java unbounded type argument <?>
c34bf72 support array initializer expression as annotation value argument for Java symbols
37e2d07 Handle unresolved types for types from Java symbols.
fddfece Enhance document on KSPropertyAccessor on how to get full annotations for an accessor
54687cf fix override checking for property accessors from Java
a7085af move overrides() to Resolver
172f7cc Disable KSP in KAPT tasks
3077421 Add Github Workflow file to run tests in pre/post-submit (#116)
167d88a fix jvm signature for synthetic constructor
6ee0964 Fix Java class constructor calculation. * Add support for default constructor of Java class. * Fixed getDeclaredFunctions which will return duplicate elements for all constructors.
6c45a3b Update contribution guide to not use TestGenerator (#92)
e1c5ca1 expose KSType.isMarkedNullable API
37a1e8e add createKSTypeReferenceFromKSType API to Resolver
a43bfc0 rename KSVariableParameter to KSValueParameter to align with grammar
d8de8b2 Update class diagram and docs
4f4c624 Add file path for KSFile. Fix fileName documentation
f5b6219 Remove a redundant example.
c3b2860 Fix examples in README

1.4.10-dev-experimental-20200924

25 Sep 18:54
Compare
Choose a tag to compare

Highlights

  • Rebased to 1.4.10
  • Changed package name to com.google.devtools.ksp
  • Changed Group ID to com.google.devtools.ksp
  • Changed Artifact ID to symbol-processing-api and symbol-processing
  • See migration from old KSP releases

Resolved Issues
#72 KSClassDeclaration.primaryConstructor might return a non-existing constructor
#66 KSTypeReference.resolve should not be null
#64 KSClassDeclaration.getAllProperties
#62 fix source jar