private void extractApklib ( Artifact apklibArtifact ) throws MojoExecutionException { getUnpackedLibHelper ( ) . extractApklib ( apklibArtifact ) ; // Copy the assets to the the combinedAssets folder. // Add the apklib source and resource to the compile. // NB apklib sources are added to compileSourceRoot because we may need to compile against them. // This means the apklib classes will be compiled into target/classes and packaged with this build. copyFolder ( getUnpackedLibAssetsFolder ( apklibArtifact ) , combinedAssets ) ; final File apklibSourceFolder = getUnpackedApkLibSourceFolder ( apklibArtifact ) ; final List < String > resourceExclusions = Arrays . asList ( "**/*.java" , "**/*.aidl" ) ; projectHelper . addResource ( project , apklibSourceFolder . getAbsolutePath ( ) , null , resourceExclusions ) ; project . addCompileSourceRoot ( apklibSourceFolder . getAbsolutePath ( ) ) ; }
Extracts ApkLib and adds the assets and apklib sources and resources to the build .