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

Unverified Commit 1a8f18bc authored by Luca Stefani's avatar Luca Stefani
Browse files

ExactCalculator: Migrate generatebp to plugin declaration

Change-Id: I38020976a6414c297ff37bbba7d2c7d1aaa4423f
parent 3ba7fcc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,10 +26,10 @@ android_app {

    static_libs: [
        // DO NOT EDIT THIS SECTION MANUALLY
        "kotlin-stdlib",
        "androidx.gridlayout_gridlayout",
        "androidx.webkit_webkit",
        "com.google.android.material_material",
        "ExactCalculator_com.hp_crcalc",
        "kotlin-stdlib",
    ],
}
+2 −15
Original line number Diff line number Diff line
@@ -3,27 +3,13 @@
 * 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") version "8.7.1"
    id("org.jetbrains.kotlin.android") version "1.9.23"
}

apply {
    plugin<GenerateBpPlugin>()
}

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

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

android {
@@ -82,6 +68,7 @@ dependencies {

configure<GenerateBpPluginExtension> {
    targetSdk.set(android.defaultConfig.targetSdk!!)
    minSdk.set(android.defaultConfig.minSdk!!)
    availableInAOSP.set { module: Module ->
        when {
            module.group.startsWith("androidx") -> true
+2 −14
Original line number Diff line number Diff line
@@ -6,26 +6,14 @@
// DO NOT EDIT THIS FILE MANUALLY

java_import {
    name: "ExactCalculator_com.hp_crcalc-nodeps",
    jars: ["com/hp/crcalc/1.0/crcalc-1.0.jar"],
    sdk_version: "35",
    min_sdk_version: "14",
    apex_available: [
        "//apex_available:platform",
        "//apex_available:anyapex",
    ],
}

java_library_static {
    name: "ExactCalculator_com.hp_crcalc",
    jars: ["com/hp/crcalc/1.0/crcalc-1.0.jar"],
    sdk_version: "35",
    min_sdk_version: "14",
    min_sdk_version: "31",
    apex_available: [
        "//apex_available:platform",
        "//apex_available:anyapex",
    ],
    static_libs: [
        "ExactCalculator_com.hp_crcalc-nodeps",
    ],
    java_version: "1.7",
}
+3 −3
Original line number Diff line number Diff line
SPDX-FileCopyrightText: 2024 The Android Open Source Project
SPDX-FileCopyrightText: 2024 Silicon Graphics, Inc.
SPDX-FileCopyrightText: 2024 Hewlett-Packard Company
SPDX-FileCopyrightText: The Android Open Source Project
SPDX-FileCopyrightText: Silicon Graphics, Inc.
SPDX-FileCopyrightText: Hewlett-Packard Company

SPDX-License-Identifier: Apache-2.0
+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 {
@@ -18,4 +20,5 @@ dependencyResolutionManagement {
        maven("https://raw.githubusercontent.com/lineage-next/crcalc/main/.m2")
    }
}

rootProject.name = "ExactCalculator"