Mentalys is a mental health detection app designed to provide insights and support for mental well-being.
- Use Android Studio - Ladybug or a later version.
- The app requires compileSdkVersion 35 for Android Core Library version 1.15.0.
If you prefer compileSdkVersion 34, downgrade the Android Core Library to version 1.12.0 in thebuild.gradle
file. - While updating Android Studio is recommended, it's not mandatory as long as your version supports the required SDK settings.
Ensure your build.gradle
contains:
compileSdkVersion 35
minSdkVersion 24
- To ensure the Liquid Swiper dependency works correctly, you'll need to configure authentication for GitHub Packages.
- Add your GitHub user ID (
gpr.user
) and GitHub personal access token (gpr.key
) with theread:packages
permission.
Clone this repository to your local machine:
git clone https://github.com/Mentalys-App/mentalys-app-android.git
To enable access to the Liquid Swiper dependency:
-
Open the
local.properties
file in the root directory of the project. -
Add the following lines with your GitHub credentials:
gpr.user=your_github_user_id gpr.key=your_github_personal_access_token
-
Save the file.
Note: Ensure your personal access token has the
read:packages
permission.
- Make sure your
local.properties
file includes the necessary properties for build configuration. Here's an example of some required properties:GEMINI_API_KEY=your_api_key_here MAPS_API_KEY=your_maps_api_key_here FREE_SOUND_API_KEY=your_free_sound_api_key_here
- For a full list of properties, refer to the build configuration section in your project:
- Open
[app/build.gradle.kts]([url](https://github.com/Mentalys-App/mentalys-app-android/blob/master/app/build.gradle.kts))
to see all the requiredbuildConfigField
entries.
- Open
Important: Even though Free Sound is not currently in use, you must still provide the
FREE_SOUND_API_KEY
because the code references it during the build process.
- Open Android Studio.
- Select File > Open and locate the cloned repository.
- Allow Android Studio to configure the project and download required dependencies.
- Sync the project with Gradle:
- Click Sync Now, or
- Select File > Sync Project with Gradle Files.
If there are SDK version issues, verify the following settings in build.gradle
:
- Module-level
build.gradle
:compileSdkVersion 35 targetSdkVersion 35 minSdkVersion 24
- Connect a physical Android device with Developer Options and USB Debugging enabled, or set up an Android Emulator in Android Studio.
- Build and run the app:
- Click the Run button, or
- Use the shortcut
Shift + F10
.
- Gradle Sync Errors:
Ensure you have correctly added
gpr.user
andgpr.key
inlocal.properties
. - Liquid Swiper Issues:
Verify your GitHub personal access token has the
read:packages
permission. - Build Errors:
Confirm all required keys and properties are set in
local.properties
.
Mentalys App is released under the MIT License.
For support or questions, please open an issue.