revanced-patcher/docs/2_1_setup.md
oSumAtrIX 11a911dc67 feat: Convert APIs to Kotlin DSL (#298)
This commit converts various APIs to Kotlin DSL.

BREAKING CHANGE: Various old APIs are removed, and DSL APIs are added instead.
2024-08-06 16:53:42 +02:00

4.6 KiB


                       

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
    
  2. 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