2_1_setup.md 4.6 KB


                       

Continuing the legacy of Vanced

👶 Setting up a development environment

To start developing patches with ReVanced Patcher, you must prepare a development environment.

📝 Prerequisites

🏃 Prepare the environment

Throughout the documentation, ReVanced Patches will be used as an example project.

  1. Clone the repository
   git clone https://github.com/revanced/revanced-patches && cd revanced-patches
  1. Build the project
   ./gradlew build

[!NOTE] If the build fails due to authentication, you may need to authenticate to GitHub Packages. Create a PAT with the scope read:packages here and add your token to ~/.gradle/gradle.properties.

Example gradle.properties file:

gpr.user = user
gpr.key = key
  1. Open the project in your IDE

[!TIP] It is a good idea to set up a complete development environment for ReVanced, so that you can also test your patches by following the ReVanced documentation.

⏭️ What's next

The next page will go into details about a ReVanced patch.

Continue: 🧩 Anatomy of a patch