Search in sources :

Example 6 with AarBundle

use of com.taobao.android.builder.dependency.model.AarBundle in project atlas by alibaba.

the class PrepareAwoBundleTask method doFullTaskAction.

@TaskAction
public void doFullTaskAction() throws IOException {
    AwbBundle awbBundle = libVariantContext.getAwbBundle();
    prepare(awbBundle.getBundle(), awbBundle.getFolder(), true);
    List<SoLibrary> soLibraries = awbBundle.getSoLibraries();
    for (final SoLibrary soLibrary : soLibraries) {
        prepare(soLibrary.getSoLibFile(), soLibrary.getFolder(), false);
    }
    List<? extends AndroidLibrary> aarBundles = awbBundle.getLibraryDependencies();
    for (final AndroidLibrary libraryDependency : aarBundles) {
        if (libraryDependency instanceof AarBundle) {
            AarBundle aarBundle = (AarBundle) libraryDependency;
            prepare(aarBundle.getBundle(), aarBundle.getFolder(), true);
        }
    }
}
Also used : AndroidLibrary(com.android.builder.model.AndroidLibrary) AarBundle(com.taobao.android.builder.dependency.model.AarBundle) AwbBundle(com.taobao.android.builder.dependency.model.AwbBundle) SoLibrary(com.taobao.android.builder.dependency.model.SoLibrary) MtlBaseTaskAction(com.taobao.android.builder.tasks.manager.MtlBaseTaskAction) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

AarBundle (com.taobao.android.builder.dependency.model.AarBundle)6 SoLibrary (com.taobao.android.builder.dependency.model.SoLibrary)6 AwbBundle (com.taobao.android.builder.dependency.model.AwbBundle)3 JarDependency (com.android.builder.dependency.JarDependency)2 AndroidLibrary (com.android.builder.model.AndroidLibrary)2 JavaLibrary (com.android.builder.model.JavaLibrary)2 MtlBaseTaskAction (com.taobao.android.builder.tasks.manager.MtlBaseTaskAction)2 ArrayList (java.util.ArrayList)2 TaskAction (org.gradle.api.tasks.TaskAction)2 LibraryDependency (com.android.builder.dependency.LibraryDependency)1 AndroidDependencyTree (com.taobao.android.builder.dependency.AndroidDependencyTree)1 ApLibrary (com.taobao.android.builder.dependency.model.ApLibrary)1 ApkLibrary (com.taobao.android.builder.dependency.model.ApkLibrary)1 ExecutorServicesHelper (com.taobao.android.builder.tools.concurrent.ExecutorServicesHelper)1 List (java.util.List)1