1# Copyright 2016 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5def GetChromeApkOsVersion(version_name): 6 version = version_name[0] 7 assert version.isupper(), ( 8 'First character of versions name %s was not an uppercase letter.') 9 if version < 'L': 10 return 'k' 11 elif version > 'M': 12 return 'n' 13 return 'l' 14