Files
NanoJason/MindShift-Windows/BUILD_APK.md

31 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 📱 How to Build the Offline APK
I have converted the application to **Offline Mode**. It now stores all data locally on the device, so you **DO NOT** need to deploy a backend server.
## 🚀 Steps to Build APK
1. **Copy the Project:**
Download the entire `MindShift-Windows` folder to your local machine.
2. **Install Dependencies:**
Open a terminal in the `MindShift-Windows` folder and run:
```bash
npm install
```
3. **Open Android Studio:**
Run the following command to open the project in Android Studio (you must have Android Studio installed):
```bash
npx cap open android
```
4. **Build & Run:**
- In Android Studio, wait for Gradle to sync.
- Click the **Run** (Play) button to test on an emulator/device.
- To build the APK: Go to `Build > Build Bundle(s) / APK(s) > Build APK(s)`.
## Notes
- The app now uses `localStorage` to save your Moods, Thoughts, and Gratitude entries.
- If you uninstall the app, your data will be cleared (standard behavior for local-only apps).
- No internet connection is required for the app to function.