App Setup
This guide will help you set up the development environment for the Purrsistence Android application.
Prerequisites
- Android Studio
- JDK
- SDK
Initial Configuration
The app requires connection details for Supabase. These are sensitive and should be kept in your local.properties file.
- Open
local.propertiesin the root of the project. - Add the following lines (replace with actual values):
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_PUBLISHABLE_KEY=your-key
[!NOTE] These values are injected into the app's
BuildConfigduring compilation by theapp/build.gradle.ktsscript.
Building the App
- Open the project in Android Studio.
- Wait for the Gradle sync to finish.
- Select the
apprun configuration. - Click Run to build and deploy to an emulator or physical device.
Troubleshooting
Gradle Sync Fails
- Check that your
local.propertiescontains the required Supabase keys. - Try File -> Invalidate Caches / Restart.
Supabase Connectivity
- If the app crashes on launch or fails to sync, verify your
SUPABASE_URLandSUPABASE_PUBLISHABLE_KEY. - Ensure the Supabase project is active.