blob: 6170a664fa3342f3a80fffab40820a98b6988eb5 [file] [log] [blame]
Søren Gjesse5ecb04a2017-06-13 09:44:32 +02001# 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
5import glob
6import os
7import utils
8
Søren Gjesseb552e842018-09-28 12:17:29 +02009ANDROID_L_API = '21'
Rico Wind6238f222018-10-03 10:36:10 +020010BASE = os.path.join(utils.THIRD_PARTY, 'gmail')
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020011
Søren Gjesseb552e842018-09-28 12:17:29 +020012V180826_15_BASE = os.path.join(BASE, 'gmail_android_180826.15')
13V180826_15_PREFIX = os.path.join(V180826_15_BASE, 'Gmail_release_unstripped')
14
Søren Gjesse932881f2017-06-13 10:43:36 +020015# NOTE: We always use android.jar for SDK v25 for now.
Rico Wind6238f222018-10-03 10:36:10 +020016ANDROID_JAR = utils.get_android_jar(25)
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020017
18VERSIONS = {
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020019 '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 Gjesseb552e842018-09-28 12:17:29 +020046 },
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020047}