This app has been written in Svelte Native, which involves writing the app in Svelte code, largely similar to Svelte used for webpaegs. However, instead of using HTML DOM elements, we use NativeScript elements.
Setup:
- Clone the repo locally.
- Run
npm intallto install everything necessary. - Run
npm install -g nativescript
Building the app:
- First, connect your Android device via USB to your computer. Set up USB for file transfer.
- Enable Developer Mode and USB Debugging in Settings on your Android device.
- After setting everything up, you can run
ns run androidto build for android.
Setup:
- Clone the repo locally.
- Run
npm intallto install everything necessary. - Run
npm install -g nativescript - Run
npm install @nativescript/theme - Run
rbenv install 3.3.6 - Run
rbenv global 3.3.6 - Run
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc - Run
source ~/.zshrc - Run
ruby -v(should say 3.3.6) - Run
gem install ffi -v 1.17.3 - Run
gem update --system 4.0.8 - Run
sudo gem install cocoapods
Building the app:
- Run
open platforms/ios/BAGELApp.xcodeproj - Within Xcode window click ‘BagelAPP’ with blue square next to it, click ‘Signing & Capabilities’ from the bar on the screen, give new name in Bundle Identifier (ex: ‘com.name.bagelapp’)
- Look above at the Team and add your apple account.
- First, connect your IOS device via USB to your computer.
- On the top of xcode search bar select your device.
- Click play button on xcode.
- Run
ns run ios - On phone settings go to Device Management and trust yourself
- Go to privacy and security within settings and scroll down to developer mode and turn that on
- Open bagel app on your phone and enable bluetooth in phone settings for Bagel.
If you have any questions, ask Melody and Alyssa.
Alternatively, ask our good friend Claude.