blob: 6cb03228523f2bbab496c4855daa4a6536fab1d7 [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 = {
Søren Gjesseb552e842018-09-28 12:17:29 +020019 '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 Adamsen1ca046c2021-02-21 11:25:16 +010032 '%s/proguardsettings/Gmail_proguard.config' % utils.THIRD_PARTY,
33 utils.IGNORE_WARNINGS_RULES],
Søren Gjesseb552e842018-09-28 12:17:29 +020034 'min-api' : ANDROID_L_API,
Rico Wind39680182018-12-17 10:41:29 +010035 'allow-type-errors' : 1,
Søren Gjesseb552e842018-09-28 12:17:29 +020036 },
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 Gjesse5ecb04a2017-06-13 09:44:32 +020044}