mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-22 23:30:42 +03:00
28 lines
1.6 KiB
Python
Generated
28 lines
1.6 KiB
Python
Generated
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under both the MIT license found in the
|
|
# LICENSE-MIT file in the root directory of this source tree and the Apache
|
|
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
|
# of this source tree.
|
|
|
|
def _maybe_get_bool(config: str.type, default: [None, bool.type]) -> [None, bool.type]:
|
|
result = read_config("apple", config, None)
|
|
if result == None:
|
|
return default
|
|
return result.lower() == "true"
|
|
|
|
def apple_bundle_config() -> {str.type: ""}:
|
|
return {
|
|
"_bundling_cache_buster": read_config("apple", "bundling_cache_buster", None),
|
|
"_bundling_log_file_enabled": _maybe_get_bool("bundling_log_file_enabled", False),
|
|
"_codesign_type": read_config("apple", "codesign_type_override", None),
|
|
"_compile_resources_locally_override": _maybe_get_bool("compile_resources_locally_override", None),
|
|
"_dry_run_code_signing": _maybe_get_bool("dry_run_code_signing", False),
|
|
# This is a kill switch for the feature, it can also be disabled by setting
|
|
# `apple.fast_adhoc_signing_enabled=false` in a global buckconfig file.
|
|
"_fast_adhoc_signing_enabled": _maybe_get_bool("fast_adhoc_signing_enabled", True),
|
|
"_incremental_bundling_enabled": _maybe_get_bool("incremental_bundling_enabled", True),
|
|
"_profile_bundling_enabled": _maybe_get_bool("profile_bundling_enabled", False),
|
|
"_use_entitlements_when_adhoc_code_signing": _maybe_get_bool("use_entitlements_when_adhoc_code_signing", None),
|
|
}
|