blob: d09a3e89d9bbac5931ae0bfc3d6fd78f66c57550 [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
9THIRD_PARTY = os.path.join(utils.REPO_ROOT, 'third_party')
10BASE = os.path.join(THIRD_PARTY, 'gmail')
11
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 Gjesse932881f2017-06-13 10:43:36 +020015# NOTE: We always use android.jar for SDK v25 for now.
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020016ANDROID_JAR = os.path.join(THIRD_PARTY, 'android_jar', 'lib-v25', 'android.jar')
17
18VERSIONS = {
19 '170604.16': {
20 'dex' : {
21 'inputs': [os.path.join(V170604_16_BASE, 'Gmail_release_unsigned.apk')],
22 'pgmap': '%s_proguard.map' % V170604_16_PREFIX,
Søren Gjesse932881f2017-06-13 10:43:36 +020023 'libraries' : [ANDROID_JAR],
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020024 'r8-flags': '--ignore-missing-classes',
25 },
26 'deploy' : {
27 'inputs': ['%s_deploy.jar' % V170604_16_PREFIX],
Søren Gjesse932881f2017-06-13 10:43:36 +020028 'pgconf': ['%s_proguard.config' % V170604_16_PREFIX],
Søren Gjesse5ecb04a2017-06-13 09:44:32 +020029 },
30 'proguarded' : {
31 'inputs': ['%s_proguard.jar' % V170604_16_PREFIX],
32 'pgmap': '%s_proguard.map' % V170604_16_PREFIX,
33 }
34 },
35}