Skip to content

Commit

Permalink
[NEW] topic in HTTP json payload
Browse files Browse the repository at this point in the history
[NEW] 9.5.5
  • Loading branch information
ckrey committed Jun 14, 2017
1 parent d8c9f6c commit 4aabd6c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracks WatchKit App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracks WatchKit Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
Expand Down
8 changes: 7 additions & 1 deletion OwnTracks/OwnTracks/Connection.m
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,13 @@ - (UInt16)sendData:(NSData *)data topic:(NSString *)topic qos:(NSInteger)qos ret
[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding],
(long)qos,
retainFlag);


NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
if (json && [json isKindOfClass:[NSDictionary class]] && self.url) {
NSMutableDictionary *mutableJson = [json mutableCopy];
[mutableJson setObject:topic forKey:@"topic"];
data = [NSJSONSerialization dataWithJSONObject:mutableJson options:0 error:nil];
}
NSData *outgoingData = (self.key && self.key.length) ? [self encrypt:data] : data;

if (self.url) {
Expand Down
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracks/OwnTracks-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -111,7 +111,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracks/de.lproj/Launch Screen.strings
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
/* Class = "UILabel"; text = "OwnTracks"; ObjectID = "kId-c2-rCX"; */
"kId-c2-rCX.text" = "OwnTracks";

/* Class = "UILabel"; text = "9.5.4"; ObjectID = "wg9-vU-Qvm"; */
"wg9-vU-Qvm.text" = "9.5.4";
/* Class = "UILabel"; text = "9.5.5"; ObjectID = "wg9-vU-Qvm"; */
"wg9-vU-Qvm.text" = "9.5.5";
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracks/en.lproj/Launch Screen.strings
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
/* Class = "UILabel"; text = "OwnTracks"; ObjectID = "kId-c2-rCX"; */
"kId-c2-rCX.text" = "OwnTracks";

/* Class = "UILabel"; text = "9.5.4"; ObjectID = "wg9-vU-Qvm"; */
"wg9-vU-Qvm.text" = "9.5.4";
/* Class = "UILabel"; text = "9.5.5"; ObjectID = "wg9-vU-Qvm"; */
"wg9-vU-Qvm.text" = "9.5.5";
4 changes: 2 additions & 2 deletions OwnTracks/OwnTracksToday/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9.5.4</string>
<string>9.5.5</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>
Expand Down

0 comments on commit 4aabd6c

Please sign in to comment.