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 = { |
Søren Gjesse | b552e84 | 2018-09-28 12:17:29 +0200 | [diff] [blame] | 19 | '180826.15': { |
| 20 | 'dex' : { |
| 21 | 'flags': '--no-desugaring', |
| 22 | 'inputs': [os.path.join(V180826_15_BASE, 'Gmail_release_unsigned.apk')], |
| 23 | 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt') , |
| 24 | 'pgmap': '%s_proguard.map' % V180826_15_PREFIX, |
| 25 | 'libraries' : [ANDROID_JAR], |
| 26 | }, |
| 27 | 'deploy' : { |
| 28 | 'flags': '--no-desugaring', |
| 29 | 'inputs': ['%s_deploy.jar' % V180826_15_PREFIX], |
| 30 | 'pgconf': [ |
| 31 | '%s_proguard.config' % V180826_15_PREFIX, |
Christoffer Quist Adamsen | 1ca046c | 2021-02-21 11:25:16 +0100 | [diff] [blame] | 32 | '%s/proguardsettings/Gmail_proguard.config' % utils.THIRD_PARTY, |
| 33 | utils.IGNORE_WARNINGS_RULES], |
Søren Gjesse | b552e84 | 2018-09-28 12:17:29 +0200 | [diff] [blame] | 34 | 'min-api' : ANDROID_L_API, |
Rico Wind | 3968018 | 2018-12-17 10:41:29 +0100 | [diff] [blame] | 35 | 'allow-type-errors' : 1, |
Søren Gjesse | b552e84 | 2018-09-28 12:17:29 +0200 | [diff] [blame] | 36 | }, |
| 37 | 'proguarded' : { |
| 38 | 'flags': '--no-desugaring', |
| 39 | 'inputs': ['%s_proguard.jar' % V180826_15_PREFIX], |
| 40 | 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt') , |
| 41 | 'pgmap': '%s_proguard.map' % V180826_15_PREFIX, |
| 42 | } |
| 43 | }, |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 44 | } |