blob: 95ee0bb493e89b55682f7571ebc760eeb1975099 [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +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
Christoffer Quist Adamsen6b668e82021-05-04 09:31:44 +02009ANDROID_L_API = '21'
Rico Wind6238f222018-10-03 10:36:10 +020010BASE = os.path.join(utils.THIRD_PARTY, 'gmscore')
Mads Ager418d1ca2017-05-22 09:35:49 +020011
Mads Ager418d1ca2017-05-22 09:35:49 +020012V10_BASE = os.path.join(BASE, 'gmscore_v10')
13V10_PREFIX = os.path.join(V10_BASE, 'GmsCore_prod_alldpi_release_all_locales')
Stephan Herhuta07e5ff2017-07-07 10:53:12 +020014
15LATEST_BASE = os.path.join(BASE, 'latest')
16LATEST_PREFIX = os.path.join(LATEST_BASE, 'GmsCore_prod_alldpi_release_all_locales')
Mads Ager418d1ca2017-05-22 09:35:49 +020017
Christoffer Quist Adamsen6b668e82021-05-04 09:31:44 +020018LATEST_VERSION = 'latest'
Mads Ager418d1ca2017-05-22 09:35:49 +020019
20VERSIONS = {
Mads Ager418d1ca2017-05-22 09:35:49 +020021 'v10': {
22 'dex' : {
Søren Gjesse8ae55eb2018-09-28 11:11:36 +020023 'flags': '--no-desugaring',
Mads Ager418d1ca2017-05-22 09:35:49 +020024 'inputs': [os.path.join(V10_BASE, 'armv7_GmsCore_prod_alldpi_release.apk')],
Søren Gjesse8ae55eb2018-09-28 11:11:36 +020025 'main-dex-list': os.path.join(V10_BASE, 'main_dex_list.txt') ,
Mads Ager418d1ca2017-05-22 09:35:49 +020026 'pgmap': '%s_proguard.map' % V10_PREFIX,
Mads Ager418d1ca2017-05-22 09:35:49 +020027 },
28 'deploy' : {
29 'inputs': ['%s_deploy.jar' % V10_PREFIX],
Christoffer Quist Adamsen1ca046c2021-02-21 11:25:16 +010030 'pgconf': ['%s_proguard.config' % V10_PREFIX,
31 utils.IGNORE_WARNINGS_RULES],
Ian Zerny877c1862017-07-06 11:12:26 +020032 'min-api' : ANDROID_L_API,
Mads Ager418d1ca2017-05-22 09:35:49 +020033 },
34 'proguarded' : {
Søren Gjesse8ae55eb2018-09-28 11:11:36 +020035 'flags': '--no-desugaring',
Mads Ager418d1ca2017-05-22 09:35:49 +020036 'inputs': ['%s_proguard.jar' % V10_PREFIX],
Lars Bak9bee2d82017-08-23 11:00:04 +020037 'main-dex-list': os.path.join(V10_BASE, 'main_dex_list.txt') ,
Yohann Roussel49e54a12017-06-23 18:08:07 +020038 'pgmap': '%s_proguard.map' % V10_PREFIX,
Mads Ager418d1ca2017-05-22 09:35:49 +020039 }
40 },
Stephan Herhuta07e5ff2017-07-07 10:53:12 +020041 'latest': {
42 'deploy' : {
43 'inputs': ['%s_deploy.jar' % LATEST_PREFIX],
Stephan Herhut35ab2232017-07-10 13:45:27 +020044 'pgconf': [
45 '%s_proguard.config' % LATEST_PREFIX,
Christoffer Quist Adamsen1ca046c2021-02-21 11:25:16 +010046 '%s/proguardsettings/GmsCore_proguard.config' % utils.THIRD_PARTY,
47 utils.IGNORE_WARNINGS_RULES],
Stephan Herhut0e135c82017-07-07 13:37:08 +020048 'min-api' : ANDROID_L_API,
Stephan Herhuta07e5ff2017-07-07 10:53:12 +020049 },
Tamas Kenezaeb314a2017-08-23 13:42:55 +020050 'proguarded' : {
Søren Gjesse8ae55eb2018-09-28 11:11:36 +020051 'flags': '--no-desugaring',
Tamas Kenezaeb314a2017-08-23 13:42:55 +020052 'inputs': ['%s_proguard.jar' % LATEST_PREFIX],
Tamas Kenez228870b2017-08-23 13:53:22 +020053 'main-dex-list': os.path.join(LATEST_BASE, 'main_dex_list.txt') ,
Tamas Kenezaeb314a2017-08-23 13:42:55 +020054 'pgmap': '%s_proguard.map' % LATEST_PREFIX,
Tamas Kenezaeb314a2017-08-23 13:42:55 +020055 }
Stephan Herhuta07e5ff2017-07-07 10:53:12 +020056 },
Mads Ager418d1ca2017-05-22 09:35:49 +020057}