blob: 46834587b21651aba62cb69922148524287d7de7 [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
12V170604_16_BASE = os.path.join(BASE, 'gmail_android_170604.16')
13V170604_16_PREFIX = os.path.join(V170604_16_BASE, 'Gmail_release_unstripped')
14
Søren Gjesseb552e842018-09-28 12:17:29 +020015V180826_15_BASE = os.path.join(BASE, 'gmail_android_180826.15')
16V180826_15_PREFIX = os.path.join(V180826_15_BASE, 'Gmail_release_unstripped')
17
Søren Gjesse932881f2017-06-13 10:43:36 +020018# NOTE: We always use android.jar for SDK v25 for now.
Rico Wind6238f222018-10-03 10:36:10 +020019ANDROID_JAR = utils.get_android_jar(25)
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020020
21VERSIONS = {
22 '170604.16': {
23 'dex' : {
24 'inputs': [os.path.join(V170604_16_BASE, 'Gmail_release_unsigned.apk')],
25 'pgmap': '%s_proguard.map' % V170604_16_PREFIX,
Søren Gjesse932881f2017-06-13 10:43:36 +020026 'libraries' : [ANDROID_JAR],
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020027 },
28 'deploy' : {
29 'inputs': ['%s_deploy.jar' % V170604_16_PREFIX],
Søren Gjesse932881f2017-06-13 10:43:36 +020030 'pgconf': ['%s_proguard.config' % V170604_16_PREFIX],
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020031 },
32 'proguarded' : {
33 'inputs': ['%s_proguard.jar' % V170604_16_PREFIX],
34 'pgmap': '%s_proguard.map' % V170604_16_PREFIX,
35 }
36 },
Søren Gjesseb552e842018-09-28 12:17:29 +020037 '180826.15': {
38 'dex' : {
39 'flags': '--no-desugaring',
40 'inputs': [os.path.join(V180826_15_BASE, 'Gmail_release_unsigned.apk')],
41 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt') ,
42 'pgmap': '%s_proguard.map' % V180826_15_PREFIX,
43 'libraries' : [ANDROID_JAR],
44 },
45 'deploy' : {
46 'flags': '--no-desugaring',
47 'inputs': ['%s_deploy.jar' % V180826_15_PREFIX],
48 'pgconf': [
49 '%s_proguard.config' % V180826_15_PREFIX,
Rico Wind6238f222018-10-03 10:36:10 +020050 '%s/proguardsettings/Gmail_proguard.config' % utils.THIRD_PARTY],
Søren Gjesseb552e842018-09-28 12:17:29 +020051 'min-api' : ANDROID_L_API,
Rico Wind39680182018-12-17 10:41:29 +010052 'allow-type-errors' : 1,
Søren Gjesseb552e842018-09-28 12:17:29 +020053 },
54 'proguarded' : {
55 'flags': '--no-desugaring',
56 'inputs': ['%s_proguard.jar' % V180826_15_PREFIX],
57 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt') ,
58 'pgmap': '%s_proguard.map' % V180826_15_PREFIX,
59 }
60 },
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020061}