Skip to content

Commit

Permalink
Add the imports for supporting Custom and Memory distributions (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexterp37 authored Oct 4, 2019
1 parent b4d58a8 commit 9b7ab4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ History
Unreleased
----------

* BUGFIX: add `HistogramType` and `MemoryUnit` imports in Kotlin generated code.

1.8.4 (2019-10-02)
------------------

Expand Down
2 changes: 2 additions & 0 deletions glean_parser/templates/kotlin.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Jinja2 template is not. Please file bugs! #}
@file:Suppress("PackageNaming")
package {{ namespace }}

import {{ glean_namespace }}.private.HistogramType // ktlint-disable import-ordering no-unused-imports
import {{ glean_namespace }}.private.Lifetime // ktlint-disable import-ordering no-unused-imports
import {{ glean_namespace }}.private.MemoryUnit // ktlint-disable import-ordering no-unused-imports
import {{ glean_namespace }}.private.NoExtraKeys // ktlint-disable import-ordering no-unused-imports
import {{ glean_namespace }}.private.TimeUnit // ktlint-disable import-ordering no-unused-imports
{% for obj_type in obj_types %}
Expand Down

0 comments on commit 9b7ab4f

Please sign in to comment.