Rico Wind | 6238f22 | 2018-10-03 10:36:10 +0200 | [diff] [blame] | 1 | # Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
Christoffer Quist Adamsen | a2a5877 | 2018-10-03 09:47:46 +0200 | [diff] [blame] | 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 os |
| 6 | import utils |
| 7 | |
Christoffer Quist Adamsen | a2a5877 | 2018-10-03 09:47:46 +0200 | [diff] [blame] | 8 | ANDROID_L_API = '21' |
Rico Wind | 6238f22 | 2018-10-03 10:36:10 +0200 | [diff] [blame] | 9 | BASE = os.path.join(utils.THIRD_PARTY, 'nest') |
Christoffer Quist Adamsen | a2a5877 | 2018-10-03 09:47:46 +0200 | [diff] [blame] | 10 | |
| 11 | V20180926_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 Wind | 6238f22 | 2018-10-03 10:36:10 +0200 | [diff] [blame] | 14 | # to use proper android.jar version for each of nest version separately. |
| 15 | ANDROID_JAR = utils.get_android_jar(25) |
Christoffer Quist Adamsen | a2a5877 | 2018-10-03 09:47:46 +0200 | [diff] [blame] | 16 | |
| 17 | VERSIONS = { |
| 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 Wind | 79e4eb5 | 2018-12-13 13:00:49 +0100 | [diff] [blame] | 27 | 'allow-type-errors' : 1, |
Christoffer Quist Adamsen | a2a5877 | 2018-10-03 09:47:46 +0200 | [diff] [blame] | 28 | 'pgconf': [ |
| 29 | os.path.join(V20180926_BASE, 'proguard', 'proguard.cfg'), |
| 30 | os.path.join(V20180926_BASE, 'proguard', 'proguard-no-optimizations.cfg'), |
Christoffer Quist Adamsen | 1ca046c | 2021-02-21 11:25:16 +0100 | [diff] [blame] | 31 | os.path.join(V20180926_BASE, 'proguard', 'proguard-ignore-warnings.cfg'), |
| 32 | utils.IGNORE_WARNINGS_RULES], |
Christoffer Quist Adamsen | a2a5877 | 2018-10-03 09:47:46 +0200 | [diff] [blame] | 33 | # Build for native multi dex |
| 34 | 'min-api' : ANDROID_L_API, |
| 35 | } |
| 36 | }, |
| 37 | } |