• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 package multidex004.fakelibrary;
6 
7 import multidex004.fakeframeworks.Application;
8 import multidex004.fakeframeworks.Context;
9 
10 /**
11  * Minimal MultiDex capable application. To use the legacy multidex library there is 3 possibility:
12  * <ul>
13  * <li>Declare this class as the application in your AndroidManifest.xml.</li>
14  * <li>Have your {@link Application} extends this class.</li>
15  * <li>Have your {@link Application} override attachBaseContext starting with<br>
16  * <code>
17   protected void attachBaseContext(Context base) {<br>
18     super.attachBaseContext(base);<br>
19     MultiDex.install(this);
20     </code></li>
21  *   <ul>
22  */
23 public class MultiDexApplication extends Application {
24   @Override
attachBaseContext(Context base)25   protected void attachBaseContext(Context base) {
26     super.attachBaseContext(base);
27     MultiDex.install(this);
28   }
29 }
30