blob: 5724e43f32fad7bba27e42943514b52b2f61331a [file] [log] [blame]
Rico Wind6238f222018-10-03 10:36:10 +02001# Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
Christoffer Quist Adamsena2a58772018-10-03 09:47:46 +02002# 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 os
6import utils
7
Christoffer Quist Adamsena2a58772018-10-03 09:47:46 +02008ANDROID_L_API = '21'
Rico Wind6238f222018-10-03 10:36:10 +02009BASE = os.path.join(utils.THIRD_PARTY, 'nest')
Christoffer Quist Adamsena2a58772018-10-03 09:47:46 +020010
11V20180926_BASE = os.path.join(BASE, 'nest_20180926_7c6cfb')
12
13# NOTE: we always use android.jar for SDK v25, later we might want to revise it
Rico Wind6238f222018-10-03 10:36:10 +020014# to use proper android.jar version for each of nest version separately.
15ANDROID_JAR = utils.get_android_jar(25)
Christoffer Quist Adamsena2a58772018-10-03 09:47:46 +020016
17VERSIONS = {
18 '20180926': {
19 'dex' : {
20 'inputs': [os.path.join(V20180926_BASE, 'obsidian-development-debug.apk')],
21 'libraries' : [ANDROID_JAR],
22 'min-api' : ANDROID_L_API,
23 },
24 'deploy' : {
25 'inputs': [os.path.join(V20180926_BASE, 'obsidian-development-debug.jar')],
26 'libraries' : [ANDROID_JAR],
Rico Wind79e4eb52018-12-13 13:00:49 +010027 'allow-type-errors' : 1,
Christoffer Quist Adamsena2a58772018-10-03 09:47:46 +020028 'pgconf': [
29 os.path.join(V20180926_BASE, 'proguard', 'proguard.cfg'),
30 os.path.join(V20180926_BASE, 'proguard', 'proguard-no-optimizations.cfg'),
Christoffer Quist Adamsen1ca046c2021-02-21 11:25:16 +010031 os.path.join(V20180926_BASE, 'proguard', 'proguard-ignore-warnings.cfg'),
32 utils.IGNORE_WARNINGS_RULES],
Christoffer Quist Adamsena2a58772018-10-03 09:47:46 +020033 # Build for native multi dex
34 'min-api' : ANDROID_L_API,
35 }
36 },
37}