Skip to content

Commit

Permalink
修改package.json中versionName;
Browse files Browse the repository at this point in the history
  • Loading branch information
shuiRong committed Apr 20, 2019
1 parent 3e51fa3 commit 88376a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 12 additions & 12 deletions src/pages/Launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 88376a9

Please sign in to comment.