Rico Wind | 86bfc83 | 2018-09-18 07:48:21 +0200 | [diff] [blame] | 1 | # Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| 2 | # for details. All rights reserved. Use of this source code is governed by a |
| 3 | # BSD-style license that can be found in the LICENSE file. |
| 4 | |
| 5 | import os |
| 6 | import utils |
| 7 | |
Christoffer Quist Adamsen | ce64005 | 2020-04-30 11:47:41 +0200 | [diff] [blame] | 8 | ANDROID_N_API = '24' |
Rico Wind | 6238f22 | 2018-10-03 10:36:10 +0200 | [diff] [blame] | 9 | BASE = os.path.join(utils.THIRD_PARTY, 'chrome') |
Rico Wind | 86bfc83 | 2018-09-18 07:48:21 +0200 | [diff] [blame] | 10 | |
Christoffer Quist Adamsen | ce64005 | 2020-04-30 11:47:41 +0200 | [diff] [blame] | 11 | V200430_BASE = os.path.join(BASE, 'chrome_200430') |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 12 | V200520_MINIMAL_BASE = os.path.join(BASE, 'monochrome_public_minimal_apks', |
| 13 | 'chrome_200520') |
Jinseong Jeon | b084977 | 2019-07-17 23:47:03 -0700 | [diff] [blame] | 14 | |
Rico Wind | 86bfc83 | 2018-09-18 07:48:21 +0200 | [diff] [blame] | 15 | VERSIONS = { |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 16 | '200430': { |
| 17 | 'deploy': { |
| 18 | 'inputs': [os.path.join(V200430_BASE, 'program.jar')], |
| 19 | 'pgconf': [os.path.join(V200430_BASE, 'proguard.config')], |
| 20 | 'libraries': [os.path.join(V200430_BASE, 'library.jar')], |
| 21 | 'min-api': ANDROID_N_API, |
| 22 | }, |
Christoffer Quist Adamsen | ce64005 | 2020-04-30 11:47:41 +0200 | [diff] [blame] | 23 | }, |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 24 | '200520-monochrome_public_minimal_apks': { |
| 25 | 'deploy': { |
| 26 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'program.jar')], |
| 27 | 'features': [{ |
| 28 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-1.jar')] |
| 29 | }, { |
| 30 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-2.jar')] |
| 31 | }, { |
| 32 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-3.jar')] |
| 33 | }, { |
| 34 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-4.jar')] |
| 35 | }, { |
| 36 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-5.jar')] |
| 37 | }, { |
| 38 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-6.jar')] |
| 39 | }, { |
| 40 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-7.jar')] |
| 41 | }, { |
| 42 | 'inputs': [os.path.join(V200520_MINIMAL_BASE, 'feature-8.jar')] |
| 43 | }], |
| 44 | 'pgconf': [ |
| 45 | os.path.join(V200520_MINIMAL_BASE, 'proguard.config'), |
| 46 | utils.IGNORE_WARNINGS_RULES |
| 47 | ], |
| 48 | 'libraries': [os.path.join(V200520_MINIMAL_BASE, 'library.jar')], |
| 49 | 'min-api': ANDROID_N_API |
| 50 | }, |
Christoffer Quist Adamsen | 287c186 | 2020-05-20 15:51:12 +0200 | [diff] [blame] | 51 | }, |
Rico Wind | 86bfc83 | 2018-09-18 07:48:21 +0200 | [diff] [blame] | 52 | } |
Christoffer Quist Adamsen | 81d4150 | 2021-06-25 09:33:43 +0200 | [diff] [blame] | 53 | |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 54 | |
Christoffer Quist Adamsen | 81d4150 | 2021-06-25 09:33:43 +0200 | [diff] [blame] | 55 | def GetLatestVersion(): |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 56 | return '200520-monochrome_public_minimal_apks' |
| 57 | |
Christoffer Quist Adamsen | 81d4150 | 2021-06-25 09:33:43 +0200 | [diff] [blame] | 58 | |
| 59 | def GetName(): |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 60 | return 'chrome' |
| 61 | |
Christoffer Quist Adamsen | 81d4150 | 2021-06-25 09:33:43 +0200 | [diff] [blame] | 62 | |
| 63 | def GetMemoryData(version): |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 64 | assert version == '200520-monochrome_public_minimal_apks' |
| 65 | return { |
| 66 | 'find-xmx-min': 600, |
| 67 | 'find-xmx-max': 700, |
| 68 | 'find-xmx-range': 16, |
| 69 | 'oom-threshold': 625, |
| 70 | } |