Source code for our mobile application. Written using react-native. Please refer CONTRIBUTING.md for proper code convention and git commit style.
The following has to be installed:
Clone the repository using ssh protocol. Please watch videos on setting up ssh connection to github.
git clone git@github.com:the-v-cube/mobile-core.git
Then simply
cd mobile
npm install
npm run build
npm link
Run npm start inside mobile directory, scan the qr code using the expo go app while being on the same wifi network as your pc/laptop and boom!
Create an expo dev account and run the following:
npm install -g eas-cli
eas login
eas build -p android --profile preview
This would generate an android apk which can be sideloaded on our android device.
Please note, per month each account has the access to get these builds only 30 times, more than that we would have to pay. Ensure to get the apk builds for breaking changes and testing in real time.
As per PART A of our timeline, we're simply going to have a single button which controls the on and off state of a relay in our micro-controller.
This build as of now follows this plan and has the following features required to meet the requirements as of 24th January 2024:
- a simple button
- connects to the micro-controller
- controls the relay!