Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit bf5103e6 authored by Luca Stefani's avatar Luca Stefani
Browse files

Recorder: Migrate generatebp to plugin declaration

Change-Id: Iad849154ffe4b1903e79ac6e5c9eefa8a3fc9ffb
parent bc7d6099
Loading
Loading
Loading
Loading
+2 −16
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2023-2024 The LineageOS Project
 * SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
 * SPDX-License-Identifier: Apache-2.0
 */

import org.lineageos.generatebp.GenerateBpPlugin
import org.lineageos.generatebp.GenerateBpPluginExtension
import org.lineageos.generatebp.models.Module

plugins {
    id("com.android.application")
    id("kotlin-android")
}

apply {
    plugin<GenerateBpPlugin>()
}

buildscript {
    repositories {
        maven("https://raw.githubusercontent.com/lineage-next/gradle-generatebp/v1.17/.m2")
    }

    dependencies {
        classpath("org.lineageos:gradle-generatebp:+")
    }
    id("org.lineageos.generatebp")
}

android {
+2 −1
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2023-2024 The LineageOS Project
 * SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
 * SPDX-License-Identifier: Apache-2.0
 */

@@ -7,6 +7,7 @@
plugins {
    id("com.android.application") version "8.7.2" apply false
    id("org.jetbrains.kotlin.android") version "1.7.10" apply false
    id("org.lineageos.generatebp") version "+" apply false
}

tasks.register<Delete>("clean").configure {
+4 −1
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2023 The LineageOS Project
 * SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
 * SPDX-License-Identifier: Apache-2.0
 */

@@ -8,8 +8,10 @@ pluginManagement {
        gradlePluginPortal()
        google()
        mavenCentral()
        maven("https://raw.githubusercontent.com/lineage-next/gradle-generatebp/v1.21/.m2")
    }
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
@@ -17,5 +19,6 @@ dependencyResolutionManagement {
        mavenCentral()
    }
}

rootProject.name = "Recorder"
include(":app")