Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: base/android/java/templates/BuildConfig.template

Issue 1597273005: Move ChromiumMultiDex to BuildConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.base.multidex; 5 package org.chromium.base;
6 6
7 /** 7 /**
8 * Multidex configuration. Generated on a per-target basis. 8 * Build configuration. Generated on a per-target basis.
9 */ 9 */
10 class ChromiumMultiDex { 10 public class BuildConfig {
11 11
12 /** Whether multidex is enabled for this target. 12 /** Whether multidex is enabled for this target.
13 * 13 *
14 * This has to be a function instead of a static final boolean s.t. the ini tial false value 14 * This has to be a function instead of a static final boolean s.t. the ini tial false value
15 * doesn't get optimized into {@link ChromiumMultiDexInstaller} at base_jav a compile time. 15 * doesn't get optimized into {@link ChromiumMultiDexInstaller} at base_jav a compile time.
16 */ 16 */
17 static boolean isMultidexEnabled() { 17 public static boolean isMultidexEnabled() {
18 #if defined(ENABLE_MULTIDEX) 18 #if defined(ENABLE_MULTIDEX)
19 return true; 19 return true;
20 #else 20 #else
21 return false; 21 return false;
22 #endif 22 #endif
23 } 23 }
24 24
25 #if defined(NDEBUG)
26 public static boolean sIsDebug = true;
27 #else
28 public static boolean sIsDebug = false;
29 #endif
30
25 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698