• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
15# NOTE: We always use android.jar for SDK v25 for now.
16ANDROID_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,
23      'libraries' : [ANDROID_JAR],
24      'r8-flags': '--ignore-missing-classes',
25    },
26    'deploy' : {
27      'inputs': ['%s_deploy.jar' % V170604_16_PREFIX],
28      'pgconf': ['%s_proguard.config' % V170604_16_PREFIX],
29    },
30    'proguarded' : {
31      'inputs': ['%s_proguard.jar' % V170604_16_PREFIX],
32      'pgmap': '%s_proguard.map' % V170604_16_PREFIX,
33    }
34  },
35}
36