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

Commit a032c353 authored by Spandan Das's avatar Spandan Das
Browse files

Create core_platform system modules from .txt files

Create a parallel set of java_system_modules that build using stubs from
.txt files. decodeSdkDep will be updated to use these system modules
behind a flag.

Since stub generation from .txt is not available at ToT yet, these
modules have been marked "enabled: false"

Test: None (will test when the enabled flag is turned on)
Change-Id: Ie9d465f5542a5430f03ba2e0861325011ac8e8c5
parent 4f771f14
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
@@ -82,3 +82,61 @@ java_library {
    // TODO: Enable after stub generation from .txt file is available
    enabled: false,
}

// Same as legacy-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files
java_system_modules {
    name: "legacy-core-platform-api-stubs-system-modules.from-text",
    visibility: core_platform_visibility,
    libs: [
        "legacy.core.platform.api.no.annotations.stubs.from-text",
        "core-lambda-stubs-for-system-modules",
    ],
    // TODO: Enable after stub generation from .txt file is available
    enabled: false,
}

java_library {
    name: "legacy.core.platform.api.no.annotations.stubs.from-text",
    visibility: core_platform_visibility,
    defaults: [
        "system-modules-no-annotations",
    ],
    hostdex: true,
    compile_dex: true,

    static_libs: [
        "legacy.core.platform.api.stubs.from-text",
    ],
    patch_module: "java.base",
    // TODO: Enable after stub generation from .txt file is available
    enabled: false,
}

// Same as stable-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files
java_system_modules {
    name: "stable-core-platform-api-stubs-system-modules.from-text",
    visibility: core_platform_visibility,
    libs: [
        "stable.core.platform.api.no.annotations.stubs.from-text",
        "core-lambda-stubs-for-system-modules",
    ],
    // TODO: Enable after stub generation from .txt file is available
    enabled: false,
}

java_library {
    name: "stable.core.platform.api.no.annotations.stubs.from-text",
    visibility: core_platform_visibility,
    defaults: [
        "system-modules-no-annotations",
    ],
    hostdex: true,
    compile_dex: true,

    static_libs: [
        "stable.core.platform.api.stubs.from-text",
    ],
    patch_module: "java.base",
    // TODO: Enable after stub generation from .txt file is available
    enabled: false,
}