code: public static boolean artifactHasHardwareArchitecture( Artifact artifact, String ndkArchitecture,
                                                             String defaultArchitecture )
      {
          return Const.ArtifactType.NATIVE_SYMBOL_OBJECT.equals( artifact.getType() )
                  && ndkArchitecture.equals( extractArchitectureFromArtifact( artifact, defaultArchitecture ) );
      }
docs: Helper method for determining whether the specified architecture is a match for the
  artifact using its classifier.  When used for architecture matching, the classifier must be
  formed by &lt;architecture&gt;-&lt;classifier&gt;.
  If the artifact is legacy and defines no valid architecture, the artifact architecture will
  default to <strong>armeabi</strong>.
  
  @param ndkArchitecture Architecture to check for match
  @param artifact Artifact to check the classifier match for
  @return True if the architecture matches, otherwise false