File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11PREFIX? =/usr/local
22
33PRODUCT_NAME =analyticsgen
4- PRODUCT_VERSION =0.6.9
4+ PRODUCT_VERSION =0.6.10
55TEMPLATES_NAME =Templates
66README_NAME =README.md
77LICENSE_NAME =LICENSE
Original file line number Diff line number Diff line change @@ -143,7 +143,18 @@ final class DefaultEventGenerator: EventGenerator {
143143 hasParametersToInit: !internalEvent
144144 . parameters
145145 . filter { !$0. type. oneOf. isNil || !$0. type. swiftType. isNil }
146- . isEmpty
146+ . isEmpty,
147+ isForDesignSystem: event. isForDesignSystem ?? false ,
148+ isDesignSystem: event. isDesignSystem ?? false ,
149+ hhtmSource: internalEvent. hhtmSource. map { hhtmSource in
150+ InternalEventContext . Parameter (
151+ name: hhtmSource. name,
152+ description: hhtmSource. description,
153+ oneOf: hhtmSource. type. oneOf,
154+ const: hhtmSource. type. const,
155+ type: hhtmSource. type. swiftType
156+ )
157+ }
147158 )
148159 )
149160 }
Original file line number Diff line number Diff line change @@ -38,4 +38,7 @@ struct InternalEventContext: Encodable {
3838 let schemePath : String
3939 let parameters : [ Parameter ] ?
4040 let hasParametersToInit : Bool
41+ let isForDesignSystem : Bool
42+ let isDesignSystem : Bool
43+ let hhtmSource : Parameter ?
4144}
Original file line number Diff line number Diff line change @@ -13,4 +13,6 @@ struct Event: Decodable {
1313 let external : ExternalEvent ?
1414 let `internal` : InternalEvent ?
1515 let name : String
16+ let isForDesignSystem : Bool ?
17+ let isDesignSystem : Bool ?
1618}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ struct InternalEvent: Decodable {
4949 let platform : EventPlatform ?
5050 let sql : String ?
5151 let parameters : [ InternalEventParameter ]
52+ let hhtmSource : InternalEventParameter ?
5253
5354 // MARK: -
5455
@@ -66,6 +67,7 @@ struct InternalEvent: Decodable {
6667 self . event = try container. decode ( forKey: . event)
6768 self . platform = try container. decodeIfPresent ( forKey: . platform)
6869 self . sql = try container. decodeIfPresent ( forKey: . sql)
70+ self . hhtmSource = try container. decodeIfPresent ( forKey: . hhtmSource)
6971
7072 self . parameters = try container
7173 . allKeys
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ private extension String {
2020
2121 // MARK: - Type Properties
2222
23- static let version = " 0.6.9 "
23+ static let version = " 0.6.10 "
2424 static let description = " Generate analytics code for you Swift iOS project "
2525}
You can’t perform that action at this time.
0 commit comments