Skip to content

Commit

Permalink
fixed versionin info for swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Sneed committed Oct 8, 2020
1 parent 117bfc2 commit 116e923
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typewriter",
"version": "7.1.0",
"version": "7.2.0",
"description": "A compiler for generating strongly typed analytics clients via Segment Protocols",
"repository": "ssh://git@github.com/segmentio/typewriter.git",
"homepage": "https://github.com/segmentio/typewriter",
Expand Down
2 changes: 1 addition & 1 deletion src/generators/swift/templates/TypewriterUtils.swift.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TypewriterUtils {
let typewriterContext = [
"typewriter": [
"language": "swift",
"version": "7.1.0"
"version": "{{typewriterVersion}}"
]
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public final class TypewriterUtils {

static {
typewriterCtx = new HashMap<>();
typewriterCtx.put("version", "7.1.0");
typewriterCtx.put("version", "7.2.0");
typewriterCtx.put("language", "java");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ + (nonnull SERIALIZABLE_DICT)withTypewriterContextFields:(nullable SERIALIZABLE_
NSDictionary<NSString *, id> *typewriterContext = @{
@"typewriter": @{
@"language": @"objective-c",
@"version": @"7.1.0"
@"version": @"7.2.0"
}
};
NSMutableDictionary *context = [NSMutableDictionary dictionaryWithCapacity:customContext.count + typewriterContext.count];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TypewriterUtils {
let typewriterContext = [
"typewriter": [
"language": "swift",
"version": "7.1.0"
"version": "7.2.0"
]
]

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/node-javascript/analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function withTypewriterContext(message) {
context: __assign({}, message.context || {}, {
typewriter: {
language: 'javascript',
version: '7.1.0',
version: '7.2.0',
},
}),
})
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/node-typescript/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ function withTypewriterContext<P, T extends Segment.TrackMessage<P>>(
...(message.context || {}),
typewriter: {
language: 'typescript',
version: '7.1.0',
version: '7.2.0',
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/web-javascript/analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function withTypewriterContext(message = {}) {
...(message.context || {}),
typewriter: {
language: 'javascript',
version: '7.1.0',
version: '7.2.0',
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/web-typescript/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ function withTypewriterContext(message: Segment.Options = {}): Segment.Options {
...(message.context || {}),
typewriter: {
language: 'typescript',
version: '7.1.0',
version: '7.2.0',
},
},
}
Expand Down

0 comments on commit 116e923

Please # to comment.