blob: 4d1b250348f77502d6c8476afe4d3097229ec535 [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],
Christoffer Quist Adamsen1ca046c2021-02-21 11:25:16 +010030 'pgconf': ['%s_proguard.config' % V170604_16_PREFIX,
31 utils.IGNORE_WARNINGS_RULES],
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020032 },
33 'proguarded' : {
34 'inputs': ['%s_proguard.jar' % V170604_16_PREFIX],
35 'pgmap': '%s_proguard.map' % V170604_16_PREFIX,
36 }
37 },
Søren Gjesseb552e842018-09-28 12:17:29 +020038 '180826.15': {
39 'dex' : {
40 'flags': '--no-desugaring',
41 'inputs': [os.path.join(V180826_15_BASE, 'Gmail_release_unsigned.apk')],
42 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt') ,
43 'pgmap': '%s_proguard.map' % V180826_15_PREFIX,
44 'libraries' : [ANDROID_JAR],
45 },
46 'deploy' : {
47 'flags': '--no-desugaring',
48 'inputs': ['%s_deploy.jar' % V180826_15_PREFIX],
49 'pgconf': [
50 '%s_proguard.config' % V180826_15_PREFIX,
Christoffer Quist Adamsen1ca046c2021-02-21 11:25:16 +010051 '%s/proguardsettings/Gmail_proguard.config' % utils.THIRD_PARTY,
52 utils.IGNORE_WARNINGS_RULES],
Søren Gjesseb552e842018-09-28 12:17:29 +020053 'min-api' : ANDROID_L_API,
Rico Wind39680182018-12-17 10:41:29 +010054 'allow-type-errors' : 1,
Søren Gjesseb552e842018-09-28 12:17:29 +020055 },
56 'proguarded' : {
57 'flags': '--no-desugaring',
58 'inputs': ['%s_proguard.jar' % V180826_15_PREFIX],
59 'main-dex-list': os.path.join(V180826_15_BASE, 'main_dex_list.txt') ,
60 'pgmap': '%s_proguard.map' % V180826_15_PREFIX,
61 }
62 },
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020063}