Disable universal device support in precommit check.

This commit is contained in:
Nora Trapp 2019-10-02 14:54:43 -07:00
parent 4f3b109223
commit 06f66b7cb5

View File

@ -433,6 +433,9 @@ def check_diff_for_keywords():
print("⚠️ keywords detected in diff:")
print(output)
def disable_universal_device_support():
command_line = git_repo_path + '/Scripts/disableUniversalDeviceSupport'
subprocess.call(command_line, shell=True)
if __name__ == "__main__":
@ -440,6 +443,10 @@ if __name__ == "__main__":
parser.add_argument('--all', action='store_true', help='process all files in or below current dir')
parser.add_argument('--path', help='used to specify a path to process.')
args = parser.parse_args()
# TODO iPad: Once we are ready to commit universal device support,
# remove this check and commit the relevant project changes.
disable_universal_device_support()
if args.all:
for rootdir, dirnames, filenames in os.walk(git_repo_path):