diff --git a/package.json b/package.json index c0a92bb..556adae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gakki", - "version": "1.1.2", + "version": "1.1.3", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", diff --git a/src/pages/Launcher.js b/src/pages/Launcher.js index ae1bfa1..cb8cabd 100644 --- a/src/pages/Launcher.js +++ b/src/pages/Launcher.js @@ -17,24 +17,24 @@ let color = {} @observer export default class Login extends Component { componentDidMount() { - if (!__DEV__) { + if (__DEV__) { mobx.updateDomain('cmx.im') save('access_token', token).then(() => { mobx.updateAccessToken(token) this.props.navigation.navigate('Home') }) } else { - // codePush.sync({ - // updateDialog: { - // appendReleaseDescription: true, - // descriptionPrefix: '更新内容:', - // title: '更新', - // mandatoryUpdateMessage: '', - // mandatoryContinueButtonLabel: '更新' - // }, - // mandatoryInstallMode: codePush.InstallMode.IMMEDIATE, - // deploymentKey: deploymentKey - // }) + codePush.sync({ + updateDialog: { + appendReleaseDescription: true, + descriptionPrefix: '更新内容:', + title: '更新', + mandatoryUpdateMessage: '', + mandatoryContinueButtonLabel: '更新' + }, + mandatoryInstallMode: codePush.InstallMode.IMMEDIATE, + deploymentKey: deploymentKey + }) const loginPage = () => this.props.navigation.navigate('Login') fetch('access_token').then(access_token => {