Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
added build and version number to JS API
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Dec 3, 2013
1 parent 218ff13 commit 9546f19
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Hive/Controllers/HIAppRuntimeBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ @interface HIAppRuntimeBridge ()
NSInteger _uBTCInSatoshi;
NSString *_IncomingTransactionType;
NSString *_OutgoingTransactionType;
NSString *_hiveVersionNumber;
NSString *_hiveBuildNumber;
}

@end
Expand All @@ -47,6 +49,9 @@ - (id)init

_IncomingTransactionType = @"incoming";
_OutgoingTransactionType = @"outgoing";

_hiveBuildNumber = [[NSBundle mainBundle] infoDictionary][@"CFBundleVersion"];
_hiveVersionNumber = [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"];
}

return self;
Expand Down Expand Up @@ -233,7 +238,9 @@ + (NSDictionary *)keyMap
@"_mBTCInSatoshi": @"MBTC_IN_SATOSHI",
@"_uBTCInSatoshi": @"UBTC_IN_SATOSHI",
@"_IncomingTransactionType": @"TX_TYPE_INCOMING",
@"_OutgoingTransactionType": @"TX_TYPE_OUTGOING"
@"_OutgoingTransactionType": @"TX_TYPE_OUTGOING",
@"_hiveBuildNumber": @"BUILD_NUMBER",
@"_hiveVersionNumber": @"VERSION",
};
}

Expand Down

0 comments on commit 9546f19

Please sign in to comment.