2023-06-07 12:01:36 +02:00
# 🛠️ Building from source
2024-03-04 12:42:46 +01:00
Learn how to build ReVanced Manager from source.
2023-06-07 12:01:36 +02:00
2024-03-04 12:42:46 +01:00
1. Setup the Flutter environment for your [platform ](https://docs.flutter.dev/get-started/install )
2023-06-07 12:01:36 +02:00
2024-03-04 12:42:46 +01:00
2. Clone the repository
2023-06-07 12:01:36 +02:00
```sh
git clone https://github.com/revanced/revanced-manager.git & & cd revanced-manager
```
2024-03-04 12:42:46 +01:00
3. Get dependencies
2023-06-07 12:01:36 +02:00
```sh
flutter pub get
```
2024-03-04 12:42:46 +01:00
4. Generate temporary files
2024-02-12 00:22:25 +01:00
```sh
dart run slang
2023-11-11 11:14:54 +01:00
dart run build_runner build --delete-conflicting-outputs
2023-06-07 12:01:36 +02:00
```
2024-03-04 12:42:46 +01:00
5. Build the APK
2023-06-07 12:01:36 +02:00
```sh
flutter build apk
```
2024-03-04 12:47:38 +01:00
> [!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](https://github.com/settings/tokens/new?scopes=read:packages&description=ReVanced) and add your token to ~/.gradle/gradle.properties.
>
> Example `gradle.properties` file:
>
> ```properties
> gpr.user = user
> gpr.key = key
> ```