Skip to content

Commit

Permalink
fix: enum insertion for android sdk (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo authored Jan 10, 2025
1 parent 97b1d11 commit dfa0942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generators/android/templates/class.java.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public final class {{name}} extends SerializableProperties {
{{/if}}
*/
public Builder {{name}}(final {{#if isVariableNullable}}@Nullable{{else}}@NonNull{{/if}} {{#if hasEnum}}{{enumName}}{{else}}{{type}}{{/if}} {{name}}) {
{{#if isListType}}
{{#if hasEnum}}
properties.put("{{rawName}}", {{name}}.getValue());
{{else if isListType}}
List<?> p = RudderTyperUtils.serializeList({{name}});
properties.put("{{rawName}}", p);
{{else if implementsSerializableProperties}}
Expand Down

0 comments on commit dfa0942

Please sign in to comment.