Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 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 | |
| 5 | import glob |
| 6 | import os |
| 7 | import utils |
| 8 | |
| 9 | THIRD_PARTY = os.path.join(utils.REPO_ROOT, 'third_party') |
| 10 | BASE = os.path.join(THIRD_PARTY, 'gmail') |
| 11 | |
| 12 | V170604_16_BASE = os.path.join(BASE, 'gmail_android_170604.16') |
| 13 | V170604_16_PREFIX = os.path.join(V170604_16_BASE, 'Gmail_release_unstripped') |
| 14 | |
Søren Gjesse | 932881f | 2017-06-13 10:43:36 +0200 | [diff] [blame] | 15 | # NOTE: We always use android.jar for SDK v25 for now. |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 16 | ANDROID_JAR = os.path.join(THIRD_PARTY, 'android_jar', 'lib-v25', 'android.jar') |
| 17 | |
| 18 | VERSIONS = { |
| 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 Gjesse | 932881f | 2017-06-13 10:43:36 +0200 | [diff] [blame] | 23 | 'libraries' : [ANDROID_JAR], |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 24 | 'r8-flags': '--ignore-missing-classes', |
| 25 | }, |
| 26 | 'deploy' : { |
| 27 | 'inputs': ['%s_deploy.jar' % V170604_16_PREFIX], |
Søren Gjesse | 932881f | 2017-06-13 10:43:36 +0200 | [diff] [blame] | 28 | 'pgconf': ['%s_proguard.config' % V170604_16_PREFIX], |
Søren Gjesse | 5ecb04a | 2017-06-13 09:44:32 +0200 | [diff] [blame] | 29 | }, |
| 30 | 'proguarded' : { |
| 31 | 'inputs': ['%s_proguard.jar' % V170604_16_PREFIX], |
| 32 | 'pgmap': '%s_proguard.map' % V170604_16_PREFIX, |
| 33 | } |
| 34 | }, |
| 35 | } |