๐ Installing zMantra from GitHub using Android Studio
This guide explains all possible ways to set up the zMantra project from GitHub into Android Studio.
1๏ธโฃ Clone via Android Studio (Built-in Git Integration)
- Open Android Studio.
- On the Welcome screen, click โGet from VCSโ (or File โ New โ Project from Version Control if a project is already open).
-
In the dialog:
-
Version control: Select Git.
-
Repository URL: Paste the zMantra GitHub repo URL:
https://github.com/<username>/zMantra.git
* Choose the local directory to clone into. 4. Click Clone. 5. Android Studio will automatically detect the Gradle project and sync dependencies.
โ This is the recommended method.
2๏ธโฃ Clone via Command Line (Git CLI) + Open in Android Studio
- Open a terminal.
- Run:
bash
git clone https://github.com/<username>/zMantra.git
or with SSH (if set up):
bash
git clone git@github.com:<username>/zMantra.git
3. Open Android Studio โ File โ Open.
4. Select the cloned project folder.
5. Let Gradle sync finish.
3๏ธโฃ Download ZIP (No Git Required)
If you donโt have Git installed:
- Go to the GitHub repository page.
- Click Code โ Download ZIP.
- Extract the ZIP file to a folder.
- Open Android Studio โ File โ Open โ select the extracted folder.
- Wait for Gradle sync.
โ ๏ธ Updates require downloading a new ZIP manually.
4๏ธโฃ Import via GitHub Plugin (If Connected to GitHub Account)
-
In Android Studio:
-
Go to File โ Settings โ Version Control โ GitHub.
- Log in with your GitHub account (using token authentication).
- Go to File โ New โ Project from Version Control โ GitHub.
- Search for the
zMantra
repo under your account or organization. - Select and Clone.
5๏ธโฃ Fork and Clone (For Contributors)
If you want to contribute:
- On GitHub, click Fork on the
zMantra
repo. - Clone your fork:
bash
git clone https://github.com/<your-username>/zMantra.git
3. Add the upstream repo for syncing changes:
bash
git remote add upstream https://github.com/<original-author>/zMantra.git
4. Open in Android Studio.
๐ ๏ธ After Import โ Setup Checklist
- Ensure Android Studio Bumblebee (2021.1) or newer.
- Install Java 17 (Temurin or OpenJDK recommended).
- Sync Gradle: File โ Sync Project with Gradle Files.
- If using Hilt + KSP, ensure
ksp
plugin is enabled (Android Studio will auto-install). - Build the app with:
bash
./gradlew assembleDebug
โ Verification
Once setup is complete:
- Run the app on an emulator or physical Android device.
- Check TalkBack accessibility works.
- Explore modes like Quick Play, Shake, Tap, Number Line, etc.