Skip to content

Commit

Permalink
support bundle compile for awb project
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawulu committed Jun 20, 2017
1 parent 85a137f commit 07d824c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
import com.android.build.gradle.AndroidGradleOptions;
import com.android.build.gradle.AppPlugin;
import com.android.build.gradle.internal.dependency.DependencyGraph;
import com.android.build.gradle.internal.dependency.MutableDependencyDataMap;
import com.android.build.gradle.internal.dependency.VariantDependencies;
Expand Down Expand Up @@ -914,7 +915,10 @@ private void addDependency(
}

// if we don't have one, need to create it.
if (EXT_LIB_ARCHIVE.equals(artifact.getExtension())) {
if (EXT_LIB_ARCHIVE.equals(artifact.getExtension()) ||
//不是app工程,并且是awb依赖
("awb".equals(artifact.getExtension()) && !project.getPlugins().hasPlugin(AppPlugin.class))) {

if (DEBUG_DEPENDENCY) {
printIndent(indent, "TYPE: AAR");
}
Expand Down

0 comments on commit 07d824c

Please sign in to comment.