1 package com.simpligility.maven.plugins.android.common;
2
3 /**
4 * The file system extension for the Android artifact also used for the packaging type of an Android Maven Project.
5 */
6 public final class AndroidExtension
7 {
8 /**
9 * Android application.
10 */
11 public static final String APK = "apk";
12
13 /**
14 * Android library project as created by Android Maven Plugin.
15 * @deprecated Use {@link AAR} instead.
16 */
17 @Deprecated
18 public static final String APKLIB = "apklib";
19
20 /**
21 * Android archive as introduced by the Gradle Android build system (modelled after apklib with extensions and some
22 * differences).
23 */
24 public static final String AAR = "aar";
25
26
27 /**
28 * @deprecated Use {@link APKLIB} instead.
29 */
30 public static final String APKSOURCES = "apksources";
31
32
33 //No instances
34 private AndroidExtension()
35 {
36 }
37
38
39 /**
40 * Determine whether or not a {@link MavenProject}'s packaging is an
41 * Android project.
42 *
43 * @param packaging Project packaging.
44 * @return True if an Android project.
45 */
46 public static boolean isAndroidPackaging( String packaging )
47 {
48 return APK.equals( packaging ) || APKLIB.equals( packaging ) || APKSOURCES.equals( packaging )
49 || AAR.equalsIgnoreCase( packaging );
50 }
51 }