From 44dfd5d81ad50bac906eee3cfbb13baa0dd9a619 Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Fri, 13 Oct 2017 11:13:11 -0700 Subject: [PATCH] We need to provide a mechanism to define types in the objc package header that don't exist in java. --- tools/objc/interface/package.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/objc/interface/package.tpl b/tools/objc/interface/package.tpl index 22dcca1..1ae2a60 100644 --- a/tools/objc/interface/package.tpl +++ b/tools/objc/interface/package.tpl @@ -4,6 +4,9 @@ // //------------------------------------------------------------------------------ +{% for type in package.additional_types %} +@class {{ type }}; +{% endfor %} {% for type in package.types %} {% if type.is_protocol %} @protocol @@ -13,6 +16,9 @@ {{ type.name.objc_name }}; {% endfor %} +{% for type in package.additional_types %} +#import "{{ type }}.h" +{% endfor %} {% for type in package.types %} #import "{{ type.name.objc_name }}.h" -{% endfor %} \ No newline at end of file +{% endfor %}