Commit 7f8ebc68 authored by Rebecca Hughes's avatar Rebecca Hughes

Merge pull request #36 from chetstone/buildVersion

Add build version
parents c9575c59 9870cc06
......@@ -114,6 +114,8 @@ console.log("Bundle Id", DeviceInfo.getBundleId()); // e.g. com.learnium.mobile
console.log("Build Number", DeviceInfo.getBuildNumber()); // e.g. 89
console.log("Build Version", DeviceInfo.getBuildVersion()); // on iOS, full build info, e.g. v0.5.9-51-g71ec8a0+
console.log("App Version", DeviceInfo.getVersion()); // e.g. 1.1.0
console.log("App Version (Readable)", DeviceInfo.getReadableVersion()); // e.g. 1.1.0.89
......
......@@ -160,6 +160,7 @@ RCT_EXPORT_MODULE()
@"bundleId": [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"],
@"appVersion": [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"],
@"buildNumber": [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"],
@"buildVersion": [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleBuildVersion"],
@"systemManufacturer": @"Apple",
@"userAgent": self.userAgent,
};
......
......@@ -29,6 +29,9 @@ module.exports = {
getBuildNumber: function() {
return RNDeviceInfo.buildNumber;
},
getBuildVersion: function() {
return RNDeviceInfo.buildVersion;
},
getVersion: function() {
return RNDeviceInfo.appVersion;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment