Skip to content

Commit

Permalink
Recorder: Migrate generatebp to plugin declaration
Browse files Browse the repository at this point in the history
Change-Id: Iad849154ffe4b1903e79ac6e5c9eefa8a3fc9ffb
  • Loading branch information
luca020400 committed Jan 10, 2025
1 parent bc7d609 commit bf5103e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
18 changes: 2 additions & 16 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
/*
* 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 {
Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*
* SPDX-FileCopyrightText: 2023-2024 The LineageOS Project
* SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/

// Top-level build file where you can add configuration options common to all sub-projects/modules.
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 {
Expand Down
5 changes: 4 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 The LineageOS Project
* SPDX-FileCopyrightText: 2023-2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -8,14 +8,17 @@ 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 {
google()
mavenCentral()
}
}

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

0 comments on commit bf5103e

Please sign in to comment.