Skip to content

Commit

Permalink
Some QoL updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Mavity committed May 18, 2020
1 parent 3222197 commit ef93874
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ After the user has successfully connected to an Urbit, the app will then query t

#### Notes
- Due to an issue with the Android Server Sent Events library, I was unable to use `channel.js` to connect an `EventSource` to the Urbit. (The library uses a `GET` request to initiate the `EventSource` and Urbit requires a `PUT`)
- I also could not figure out how to set the state during an http request
- I also could not figure out how to set the state during an http request, so the mobile app is readonly for now.


## Setup
Expand All @@ -36,13 +36,13 @@ module.exports = {
After completing the setup, you're ready to install the Urbit `weight-app` agent. You can do so using the following steps
- Run `npm run sync` from the root of the repository
- In the Urbit dojo run
- `> |commit %home`
- `> |start %weight-app`
- `|commit %home`
- `|start %weight-app`

Once installed, you can add some weights to the agent using the following command in the Urbit dojo
`> :weight-app &weight-app-action [%add-weight 180]`
`:weight-app &weight-app-action [%add-weight 180]`

## Mobile App
There are a few ways to install the mobile app on android
- Run locally with emulator: `npx tns run android`
- You can also install the `.apk` located in the [releases]()
- You can also install the `.apk` located in the [releases](https://github.com/bmavity/urbit-weight-app/releases)
Binary file modified app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/App_Resources/Android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Urbit Weight</string>
<string name="title_activity_kimera">Urbit Weight</string>
</resources>

0 comments on commit ef93874

Please sign in to comment.