-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Expected Behavior
I would have expected the code generated to compile, but there is a type mismatch
Current Behavior
The code generated has compile errors
Possible Solution
Not sure exactly how the codegen works, but it should generate a non-nullable type for the event parameter in the method signature for the identify function, for example:
open fun identify(userId: String?, event: Identify, options: EventOptions? = null, extra: MiddlewareExtra? = null)
Steps to Reproduce
- create a jvm source
- add an event
- add a user property
- set up the cli tool
- set up a kotlin project with all required dependencies
- do ampli pull
- check the Ampli.kt file, there are compilation errors
Environment
- Unity Plugin Version: not sure what this is, but i am using com.amplitude:java-sdk:1.10.1
- Device: MACBOOK AIR M1
- Device OS and Version: MONTEREY 12.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels