send Platform.OS as operating system value for the install/new request #281

Merged
akinwale merged 1 commit from mobile-platform into master 2018-09-03 21:35:32 +02:00
3 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,6 @@ import {
Text, Text,
View View
} from 'react-native'; } from 'react-native';
import { doInstallNew } from 'lbryinc';
import Colors from '../../styles/colors'; import Colors from '../../styles/colors';
import Link from '../../component/link'; import Link from '../../component/link';
import PhoneNumberRewardSubcard from '../../component/phoneNumberRewardSubcard'; import PhoneNumberRewardSubcard from '../../component/phoneNumberRewardSubcard';

View file

@ -17,7 +17,7 @@ const select = state => ({
}); });
const perform = dispatch => ({ const perform = dispatch => ({
authenticate: (appVersion, deviceId) => dispatch(doAuthenticate(appVersion, deviceId)), authenticate: (appVersion, os) => dispatch(doAuthenticate(appVersion, os)),
deleteCompleteBlobs: () => dispatch(doDeleteCompleteBlobs()), deleteCompleteBlobs: () => dispatch(doDeleteCompleteBlobs()),
balanceSubscribe: () => dispatch(doBalanceSubscribe()), balanceSubscribe: () => dispatch(doBalanceSubscribe()),
notify: data => dispatch(doNotify(data)), notify: data => dispatch(doNotify(data)),

View file

@ -149,7 +149,7 @@ class SplashScreen extends React.PureComponent {
balanceSubscribe(); balanceSubscribe();
NativeModules.VersionInfo.getAppVersion().then(appVersion => { NativeModules.VersionInfo.getAppVersion().then(appVersion => {
this.setState({ shouldAuthenticate: true }); this.setState({ shouldAuthenticate: true });
authenticate(`android-${appVersion}`); authenticate(appVersion, Platform.OS);
}); });
}); });