5f364b63b8
This allows to reuse SDK version comparison routine from other Python scripts. With the addition of non-numeric versions comparison has become more complex, and the deleted shell script did it incorrectly: it used comparisons like `[[ "S" -lt 28 ]]` which results in "true" as strings are converted to zero in numeric context. This resulted in adding legacy libraries to class loader context of apps targeting recent SDK versions. The error was masked because currently there is only one non-AOSP app that uses the script (GoogleDialer), and it targets numeric SDK version. Test: lunch aosp_cf_x86_phone-userdebug && m Bug: 132357300 Change-Id: I26e752e29b5453fd3e29d5dbfbe4d9df9c0a55b7
196 lines
3.3 KiB
Text
196 lines
3.3 KiB
Text
python_binary_host {
|
|
name: "manifest_fixer",
|
|
main: "manifest_fixer.py",
|
|
srcs: [
|
|
"manifest_fixer.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
}
|
|
|
|
python_test_host {
|
|
name: "manifest_fixer_test",
|
|
main: "manifest_fixer_test.py",
|
|
srcs: [
|
|
"manifest_fixer_test.py",
|
|
"manifest_fixer.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
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",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
}
|
|
|
|
python_test_host {
|
|
name: "manifest_check_test",
|
|
main: "manifest_check_test.py",
|
|
srcs: [
|
|
"manifest_check_test.py",
|
|
"manifest_check.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "jsonmodify",
|
|
main: "jsonmodify.py",
|
|
srcs: [
|
|
"jsonmodify.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
}
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "test_config_fixer",
|
|
main: "test_config_fixer.py",
|
|
srcs: [
|
|
"test_config_fixer.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
}
|
|
|
|
python_test_host {
|
|
name: "test_config_fixer_test",
|
|
main: "test_config_fixer_test.py",
|
|
srcs: [
|
|
"test_config_fixer_test.py",
|
|
"test_config_fixer.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "construct_context",
|
|
main: "construct_context.py",
|
|
srcs: [
|
|
"construct_context.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
}
|
|
|
|
python_test_host {
|
|
name: "construct_context_test",
|
|
main: "construct_context_test.py",
|
|
srcs: [
|
|
"construct_context_test.py",
|
|
"construct_context.py",
|
|
],
|
|
version: {
|
|
py2: {
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
libs: [
|
|
"manifest_utils",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "lint-project-xml",
|
|
main: "lint-project-xml.py",
|
|
srcs: ["lint-project-xml.py"],
|
|
}
|