updates for release
This commit is contained in:
parent
b82759c78e
commit
4ac36b0bc7
6 changed files with 24 additions and 24 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -5640,8 +5640,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lbry-redux": {
|
"lbry-redux": {
|
||||||
"version": "github:lbryio/lbry-redux#f06e1e64a8587a183bd7333f628fca821fe81fa4",
|
"version": "github:lbryio/lbry-redux#dff1ecb195a03c5443526329116058b94d7391f7",
|
||||||
"from": "github:lbryio/lbry-redux#f06e1e64a8587a183bd7333f628fca821fe81fa4",
|
"from": "github:lbryio/lbry-redux#dff1ecb195a03c5443526329116058b94d7391f7",
|
||||||
"requires": {
|
"requires": {
|
||||||
"proxy-polyfill": "0.1.6",
|
"proxy-polyfill": "0.1.6",
|
||||||
"reselect": "^3.0.0",
|
"reselect": "^3.0.0",
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"base-64": "^0.1.0",
|
"base-64": "^0.1.0",
|
||||||
"@expo/vector-icons": "^8.1.0",
|
"@expo/vector-icons": "^8.1.0",
|
||||||
"gfycat-style-urls": "^1.0.3",
|
"gfycat-style-urls": "^1.0.3",
|
||||||
"lbry-redux": "lbryio/lbry-redux#f06e1e64a8587a183bd7333f628fca821fe81fa4",
|
"lbry-redux": "lbryio/lbry-redux#91848445aa9e1efb76488947a32a7fc52543d52d",
|
||||||
"lbryinc": "lbryio/lbryinc#02d8571cd7fafd00d1a60f133d884eb8c5f1a306",
|
"lbryinc": "lbryio/lbryinc#02d8571cd7fafd00d1a60f133d884eb8c5f1a306",
|
||||||
"lodash": ">=4.17.11",
|
"lodash": ">=4.17.11",
|
||||||
"merge": ">=1.2.1",
|
"merge": ">=1.2.1",
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
import { BarPasswordStrengthDisplay } from 'react-native-password-strength-meter';
|
import { BarPasswordStrengthDisplay } from 'react-native-password-strength-meter';
|
||||||
import AsyncStorage from '@react-native-community/async-storage';
|
import AsyncStorage from '@react-native-community/async-storage';
|
||||||
import Colors from 'styles/colors';
|
import Colors from 'styles/colors';
|
||||||
import Constants from 'constants';
|
import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api
|
||||||
import firstRunStyle from 'styles/firstRun';
|
import firstRunStyle from 'styles/firstRun';
|
||||||
import Icon from 'react-native-vector-icons/FontAwesome5';
|
import Icon from 'react-native-vector-icons/FontAwesome5';
|
||||||
|
|
||||||
|
@ -62,7 +62,14 @@ class WalletPage extends React.PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { onPasswordChanged, onWalletViewLayout, getSyncIsPending, hasSyncedWallet, syncApplyIsPending } = this.props;
|
const {
|
||||||
|
onPasswordChanged,
|
||||||
|
onWalletViewLayout,
|
||||||
|
getSyncIsPending,
|
||||||
|
hasSyncedWallet,
|
||||||
|
syncApplyIsPending,
|
||||||
|
syncApplyStarted,
|
||||||
|
} = this.props;
|
||||||
|
|
||||||
let content;
|
let content;
|
||||||
if (!this.state.walletReady || !this.state.hasCheckedSync || getSyncIsPending) {
|
if (!this.state.walletReady || !this.state.hasCheckedSync || getSyncIsPending) {
|
||||||
|
@ -72,11 +79,11 @@ class WalletPage extends React.PureComponent {
|
||||||
<Text style={firstRunStyle.paragraph}>Retrieving your account information...</Text>
|
<Text style={firstRunStyle.paragraph}>Retrieving your account information...</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
} else if (syncApplyIsPending) {
|
} else if (syncApplyStarted || syncApplyIsPending) {
|
||||||
content = (
|
content = (
|
||||||
<View style={firstRunStyle.centered}>
|
<View style={firstRunStyle.centered}>
|
||||||
<ActivityIndicator size="large" color={Colors.White} style={firstRunStyle.waiting} />
|
<ActivityIndicator size="large" color={Colors.White} style={firstRunStyle.waiting} />
|
||||||
<Text style={firstRunStyle.paragraph}>Validating password...</Text>
|
<Text style={firstRunStyle.paragraph}>{syncApplyIsPending ? 'Validating password' : 'Synchronizing'}...</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -81,8 +81,8 @@ class FirstRunScreen extends React.PureComponent {
|
||||||
|
|
||||||
if (this.state.syncApplyStarted && !syncApplyIsPending) {
|
if (this.state.syncApplyStarted && !syncApplyIsPending) {
|
||||||
if (syncApplyErrorMessage && syncApplyErrorMessage.trim().length > 0) {
|
if (syncApplyErrorMessage && syncApplyErrorMessage.trim().length > 0) {
|
||||||
notify({ message: syncApplyErrorMessage, syncApplyStarted: false, isError: true });
|
notify({ message: syncApplyErrorMessage, isError: true });
|
||||||
this.setState({ showBottomContainer: true });
|
this.setState({ showBottomContainer: true, syncApplyStarted: false });
|
||||||
} else {
|
} else {
|
||||||
// password successfully verified
|
// password successfully verified
|
||||||
NativeModules.UtilityModule.setSecureValue(
|
NativeModules.UtilityModule.setSecureValue(
|
||||||
|
@ -132,9 +132,9 @@ class FirstRunScreen extends React.PureComponent {
|
||||||
const { navigation } = this.props;
|
const { navigation } = this.props;
|
||||||
const resetAction = StackActions.reset({
|
const resetAction = StackActions.reset({
|
||||||
index: 0,
|
index: 0,
|
||||||
actions: [NavigationActions.navigate({ routeName: 'Splash', params: { launchUri: this.state.launchUri } })],
|
actions: [NavigationActions.navigate({ routeName: 'Splash', params: { launchUri: this.state.launchUrl } })],
|
||||||
});
|
});
|
||||||
navigation.dispatch(resetAction);
|
setTimeout(() => navigation.dispatch(resetAction), 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleLeftButtonPressed = () => {
|
handleLeftButtonPressed = () => {
|
||||||
|
@ -367,6 +367,7 @@ class FirstRunScreen extends React.PureComponent {
|
||||||
hasSyncedWallet={hasSyncedWallet}
|
hasSyncedWallet={hasSyncedWallet}
|
||||||
getSyncIsPending={getSyncIsPending}
|
getSyncIsPending={getSyncIsPending}
|
||||||
syncApplyIsPending={syncApplyIsPending}
|
syncApplyIsPending={syncApplyIsPending}
|
||||||
|
syncApplyStarted={this.state.syncApplyStarted}
|
||||||
onWalletViewLayout={this.onWalletViewLayout}
|
onWalletViewLayout={this.onWalletViewLayout}
|
||||||
onPasswordChanged={this.onWalletPasswordChanged}
|
onPasswordChanged={this.onWalletPasswordChanged}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -38,12 +38,6 @@ class SplashScreen extends React.PureComponent {
|
||||||
subscriptionsFetched: false,
|
subscriptionsFetched: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount() {
|
|
||||||
if (NativeModules.DaemonServiceControl) {
|
|
||||||
NativeModules.DaemonServiceControl.startService();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
updateStatus() {
|
updateStatus() {
|
||||||
Lbry.status().then(status => {
|
Lbry.status().then(status => {
|
||||||
this._updateStatusCallback(status);
|
this._updateStatusCallback(status);
|
||||||
|
@ -58,7 +52,7 @@ class SplashScreen extends React.PureComponent {
|
||||||
});
|
});
|
||||||
navigation.dispatch(resetAction);
|
navigation.dispatch(resetAction);
|
||||||
|
|
||||||
const launchUrl = navigation.state.params.launchUrl || this.state.launchUrl;
|
const launchUrl = navigation.state.params ? navigation.state.params.launchUrl : this.state.launchUrl;
|
||||||
if (launchUrl) {
|
if (launchUrl) {
|
||||||
if (launchUrl.startsWith('lbry://?verify=')) {
|
if (launchUrl.startsWith('lbry://?verify=')) {
|
||||||
let verification = {};
|
let verification = {};
|
||||||
|
@ -89,9 +83,10 @@ class SplashScreen extends React.PureComponent {
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
const { emailToVerify, getSync, setEmailToVerify, verifyUserEmail, verifyUserEmailFailure } = this.props;
|
const { emailToVerify, getSync, setEmailToVerify, verifyUserEmail, verifyUserEmailFailure } = this.props;
|
||||||
|
const { daemonReady, shouldAuthenticate } = this.state;
|
||||||
const { user } = nextProps;
|
const { user } = nextProps;
|
||||||
|
|
||||||
if (this.state.daemonReady && this.state.shouldAuthenticate && user && user.id) {
|
if (daemonReady && shouldAuthenticate && user && user.id) {
|
||||||
this.setState({ shouldAuthenticate: false }, () => {
|
this.setState({ shouldAuthenticate: false }, () => {
|
||||||
// user is authenticated, navigate to the main view
|
// user is authenticated, navigate to the main view
|
||||||
if (user.has_verified_email) {
|
if (user.has_verified_email) {
|
||||||
|
@ -243,10 +238,7 @@ class SplashScreen extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if (NativeModules.Firebase) {
|
|
||||||
NativeModules.Firebase.track('app_launch', null);
|
NativeModules.Firebase.track('app_launch', null);
|
||||||
}
|
|
||||||
|
|
||||||
NativeModules.Firebase.setCurrentScreen('Splash');
|
NativeModules.Firebase.setCurrentScreen('Splash');
|
||||||
|
|
||||||
this.props.fetchRewardedContent();
|
this.props.fetchRewardedContent();
|
||||||
|
|
|
@ -54,7 +54,7 @@ reducers[Constants.ACTION_POP_DRAWER_STACK] = (state, action) => {
|
||||||
reducers[Constants.ACTION_REACT_NAVGIATION_RESET] = (state, action) => {
|
reducers[Constants.ACTION_REACT_NAVGIATION_RESET] = (state, action) => {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
currentRoute: Constants.DRAWER_ROUTE_DISCOVER, // default to Discover upon reset
|
// currentRoute: Constants.DRAWER_ROUTE_DISCOVER, // default to Discover upon reset
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue