Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 1 | # Copyright (c) 2017, 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 glob |
| 6 | import os |
| 7 | import utils |
| 8 | |
Søren Gjesse | b552e84 | 2018-09-28 12:17:29 +0200 | [diff] [blame] | 9 | ANDROID_L_API = '21' |
Rico Wind | 6238f22 | 2018-10-03 10:36:10 +0200 | [diff] [blame] | 10 | BASE = os.path.join(utils.THIRD_PARTY, 'gmail') |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 11 | |
Søren Gjesse | b552e84 | 2018-09-28 12:17:29 +0200 | [diff] [blame] | 12 | V180826_15_BASE = os.path.join(BASE, 'gmail_android_180826.15') |
| 13 | V180826_15_PREFIX = os.path.join(V180826_15_BASE, 'Gmail_release_unstripped') |
| 14 | |
Søren Gjesse | 932881f | 2017-06-13 10:43:36 +0200 | [diff] [blame] | 15 | # NOTE: We always use android.jar for SDK v25 for now. |
Rico Wind | 6238f22 | 2018-10-03 10:36:10 +0200 | [diff] [blame] | 16 | ANDROID_JAR = utils.get_android_jar(25) |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 17 | |
| 18 | VERSIONS = { |
Christoffer Quist Adamsen | 2434a4d | 2023-10-16 11:29:03 +0200 | [diff] [blame] | 19 | '180826.15': { |
| 20 | 'dex': { |
| 21 | 'flags': '--no-desugaring', |
| 22 | 'inputs': [ |
| 23 | os.path.join(V180826_15_BASE, 'Gmail_release_unsigned.apk') |
| 24 | ], |
| 25 | 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt'), |
| 26 | 'pgmap': '%s_proguard.map' % V180826_15_PREFIX, |
| 27 | 'libraries': [ANDROID_JAR], |
| 28 | }, |
| 29 | 'deploy': { |
| 30 | 'flags': '--no-desugaring', |
| 31 | 'inputs': ['%s_deploy.jar' % V180826_15_PREFIX], |
| 32 | 'pgconf': [ |
| 33 | '%s_proguard.config' % V180826_15_PREFIX, |
| 34 | '%s/proguardsettings/Gmail_proguard.config' % utils.THIRD_PARTY, |
| 35 | utils.IGNORE_WARNINGS_RULES |
| 36 | ], |
| 37 | 'min-api': ANDROID_L_API, |
| 38 | 'allow-type-errors': 1, |
| 39 | }, |
| 40 | 'proguarded': { |
| 41 | 'flags': '--no-desugaring', |
| 42 | 'inputs': ['%s_proguard.jar' % V180826_15_PREFIX], |
| 43 | 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt'), |
| 44 | 'pgmap': '%s_proguard.map' % V180826_15_PREFIX, |
| 45 | } |
Søren Gjesse | b552e84 | 2018-09-28 12:17:29 +0200 | [diff] [blame] | 46 | }, |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 47 | } |