Merge pull request #281 from lbryio/mobile-platform

send Platform.OS as operating system value for the install/new request
This commit is contained in:
Akinwale Ariwodola 2018-09-03 20:35:32 +01:00 committed by GitHub
commit 2c22780c91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

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

View file

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

View file

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