From 88376a96da1762d1932252ce7cdb28b087067482 Mon Sep 17 00:00:00 2001 From: shuiRong Date: Sat, 20 Apr 2019 19:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9package.json=E4=B8=ADversionN?= =?UTF-8?q?ame;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/pages/Launcher.js | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) 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 => {