View Javadoc
1   package com.simpligility.maven.plugins.android.phase08preparepackage;
2   
3   /**
4    * Which compiler to use to dex the classes.
5    */
6   public enum DexCompiler
7   {
8       DEX, // Default
9       D8;
10  
11      public static DexCompiler valueOfIgnoreCase( String name )
12      {
13          for ( DexCompiler dexCompiler : DexCompiler.values() )
14          {
15              if ( dexCompiler.name().equalsIgnoreCase( name ) )
16              {
17                  return dexCompiler;
18              }
19          }
20          throw new IllegalArgumentException(
21              "No enum constant " + DexCompiler.class.getCanonicalName() + "." + name );
22      }
23  
24  }