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

Commit 3be82c00 authored by Baligh Uddin's avatar Baligh Uddin
Browse files

Create manifest_utils library target.

This utility can also be used for parsing and
managing the Android Manifest for apex under
system/apex/apexer.

Test:
python manifest_fixer_test.py
python manifest_check_test.py

BUG: 148198056
Change-Id: Iffe465b5f36b2a3fbf81414d6f19e241c5f5648f
parent 44885e29
Loading
Loading
Loading
Loading
+34 −7
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@ python_binary_host {
    main: "manifest_fixer.py",
    srcs: [
        "manifest_fixer.py",
        "manifest.py",
    ],
    version: {
        py2: {
@@ -13,6 +12,9 @@ python_binary_host {
            enabled: false,
        },
    },
    libs: [
        "manifest_utils",
    ],
}

python_test_host {
@@ -21,7 +23,6 @@ python_test_host {
    srcs: [
        "manifest_fixer_test.py",
        "manifest_fixer.py",
        "manifest.py",
    ],
    version: {
        py2: {
@@ -31,15 +32,32 @@ python_test_host {
            enabled: false,
        },
    },
    libs: [
        "manifest_utils",
    ],
    test_suites: ["general-tests"],
}

python_library_host {
    name: "manifest_utils",
    srcs: [
        "manifest.py",
    ],
    version: {
        py2: {
            enabled: true,
        },
        py3: {
            enabled: false,
        },
    },
}

python_binary_host {
    name: "manifest_check",
    main: "manifest_check.py",
    srcs: [
        "manifest_check.py",
        "manifest.py",
    ],
    version: {
        py2: {
@@ -49,6 +67,9 @@ python_binary_host {
            enabled: false,
        },
    },
    libs: [
        "manifest_utils",
    ],
}

python_test_host {
@@ -57,7 +78,6 @@ python_test_host {
    srcs: [
        "manifest_check_test.py",
        "manifest_check.py",
        "manifest.py",
    ],
    version: {
        py2: {
@@ -67,6 +87,9 @@ python_test_host {
            enabled: false,
        },
    },
    libs: [
        "manifest_utils",
    ],
    test_suites: ["general-tests"],
}

@@ -91,7 +114,6 @@ python_binary_host {
    main: "test_config_fixer.py",
    srcs: [
        "test_config_fixer.py",
        "manifest.py",
    ],
    version: {
        py2: {
@@ -101,6 +123,9 @@ python_binary_host {
            enabled: false,
        },
    },
    libs: [
        "manifest_utils",
    ],
}

python_test_host {
@@ -109,7 +134,6 @@ python_test_host {
    srcs: [
        "test_config_fixer_test.py",
        "test_config_fixer.py",
        "manifest.py",
    ],
    version: {
        py2: {
@@ -119,5 +143,8 @@ python_test_host {
            enabled: false,
        },
    },
    libs: [
        "manifest_utils",
    ],
    test_suites: ["general-tests"],
}