Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
update settings page and API config
Browse files Browse the repository at this point in the history
- remove Expo version from settings
- deprecate bare API key in config file
  • Loading branch information
doowzs committed Mar 2, 2019
1 parent 26b8f59 commit 0628db8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ios",
"android"
],
"version": "0.2.0",
"version": "0.2.1",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"splash": {
Expand Down
6 changes: 2 additions & 4 deletions components/SettingsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ export default class SettingsView extends React.Component {
}

render() {
const { expoVersion, manifest } = Constants;
const { manifest } = Constants;
const sections = [
{ data: [{ value: this.state.username }], title: 'Username (Student ID)' },
{ data: [{ value: expoVersion }], title: 'Expo Version' },
{ data: [{ value: manifest.sdkVersion }], title: 'SDK Version' },
{ data: [{ value: manifest.version }], title: 'version' },
{ data: [{ value: manifest.version }], title: 'Version' },
{ data: [{ value: (
<Text
style={{ textDecorationLine: "underline" }}
Expand Down
2 changes: 1 addition & 1 deletion screens/LoginScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class LoginScreen extends React.Component {
onChangeText={(password) => this.setState({password})}
/>
</Item>
<Button iconLeft full bordered
<Button iconLeft full success
style={[styles.rounded, styles.auth_button]}
onPress={this._handleLogin.bind(this)}
>
Expand Down
2 changes: 1 addition & 1 deletion services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const login = async (username, password) => {
const params = {
grant_type: 'password',
client_id: Config.clientID,
client_secret: Config.clientSecret,
client_secret: atob(Config.clientSecret),
username: username,
password: password
};
Expand Down

0 comments on commit 0628db8

Please sign in to comment.