Examples of Dependencies


Examples of com.android.builder.model.Dependencies

        if (appLintJar.exists()) {
            customRules.add(appLintJar);
        }

        Set<AndroidLibrary> libraries = Sets.newHashSet();
        Dependencies dependencies = variant.getMainArtifact().getDependencies();
        for (AndroidLibrary library : dependencies.getLibraries()) {
            lintProject.addDirectLibrary(createLibrary(client, library, libraries, customRules));
        }

        return Pair.<LintGradleProject,List<File>>of(lintProject, customRules);
    }
View Full Code Here

Examples of com.android.builder.model.Dependencies

        @Nullable
        @Override
        public Boolean dependsOn(@NonNull String artifact) {
            if (SUPPORT_LIB_ARTIFACT.equals(artifact)) {
                if (mSupportLib == null) {
                    Dependencies dependencies = mVariant.getMainArtifact().getDependencies();
                    mSupportLib = dependsOn(dependencies, artifact);
                }
                return mSupportLib;
            } else if (APPCOMPAT_LIB_ARTIFACT.equals(artifact)) {
                if (mAppCompat == null) {
                    Dependencies dependencies = mVariant.getMainArtifact().getDependencies();
                    mAppCompat = dependsOn(dependencies, artifact);
                }
                return mAppCompat;
            } else {
                return super.dependsOn(artifact);
View Full Code Here

Examples of com.android.builder.model.Dependencies

    @Override
    protected void setUpDependencies(@NotNull ModifiableRootModel rootModel, @NotNull IdeaAndroidUnitTest androidUnitTest, @NotNull List<Message> errorsFound) {
        JavaArtifact selectedTestJavaArtifact = androidUnitTest.getSelectedTestJavaArtifact();

        if (selectedTestJavaArtifact != null) {
            Dependencies dependencies = selectedTestJavaArtifact.getDependencies();
            for (JavaLibrary library : dependencies.getJavaLibraries()) {
                updateDependency(rootModel, library.getJarFile());
            }
            for (AndroidLibrary library : dependencies.getLibraries()) {
                updateDependency(rootModel, library.getFolder());
            }
            for (String project : dependencies.getProjects()) {
                updateDependency(rootModel, project, errorsFound);
            }
        } else {
            oldSetUpDependencies(rootModel, androidUnitTest, errorsFound);
        }
View Full Code Here

Examples of com.android.builder.model.Dependencies

        if (appLintJar.exists()) {
            customRules.add(appLintJar);
        }

        Set<AndroidLibrary> libraries = Sets.newHashSet();
        Dependencies dependencies = variant.getMainArtifact().getDependencies();
        for (AndroidLibrary library : dependencies.getLibraries()) {
            lintProject.addDirectLibrary(createLibrary(client, library, libraries, customRules));
        }

        return Pair.<LintGradleProject,List<File>>of(lintProject, customRules);
    }
View Full Code Here

Examples of com.android.builder.model.Dependencies

        if (appLintJar.exists()) {
            customRules.add(appLintJar);
        }

        Set<AndroidLibrary> libraries = Sets.newHashSet();
        Dependencies dependencies = variant.getMainArtifact().getDependencies();
        for (AndroidLibrary library : dependencies.getLibraries()) {
            lintProject.addDirectLibrary(createLibrary(client, library, libraries, customRules));
        }

        return Pair.<LintGradleProject,List<File>>of(lintProject, customRules);
    }
View Full Code Here

Examples of com.android.builder.model.Dependencies

        if (appLintJar.exists()) {
            customRules.add(appLintJar);
        }

        Set<AndroidLibrary> libraries = Sets.newHashSet();
        Dependencies dependencies = variant.getMainArtifact().getDependencies();
        for (AndroidLibrary library : dependencies.getLibraries()) {
            lintProject.addDirectLibrary(createLibrary(client, library, libraries, customRules));
        }

        return Pair.<LintGradleProject,List<File>>of(lintProject, customRules);
    }
View Full Code Here

Examples of com.android.builder.model.Dependencies

        if (appLintJar.exists()) {
            customRules.add(appLintJar);
        }

        Set<AndroidLibrary> libraries = Sets.newHashSet();
        Dependencies dependencies = variant.getMainArtifact().getDependencies();
        for (AndroidLibrary library : dependencies.getLibraries()) {
            lintProject.addDirectLibrary(createLibrary(client, library, libraries, customRules));
        }

        return Pair.<LintGradleProject,List<File>>of(lintProject, customRules);
    }
View Full Code Here

Examples of com.android.builder.model.Dependencies

        @Nullable
        @Override
        public Boolean dependsOn(@NonNull String artifact) {
            if (SUPPORT_LIB_ARTIFACT.equals(artifact)) {
                if (mSupportLib == null) {
                    Dependencies dependencies = mVariant.getMainArtifact().getDependencies();
                    mSupportLib = dependsOn(dependencies, artifact);
                }
                return mSupportLib;
            } else if (APPCOMPAT_LIB_ARTIFACT.equals(artifact)) {
                if (mAppCompat == null) {
                    Dependencies dependencies = mVariant.getMainArtifact().getDependencies();
                    mAppCompat = dependsOn(dependencies, artifact);
                }
                return mAppCompat;
            } else {
                return super.dependsOn(artifact);
View Full Code Here

Examples of com.cburch.logisim.proj.Dependencies

      canvas.setErrorMessage(Strings.getter("cannotModifyError"));
      return;
    }
    if (factory instanceof SubcircuitFactory) {
      SubcircuitFactory circFact = (SubcircuitFactory) factory;
      Dependencies depends = canvas.getProject().getDependencies();
      if (!depends.canAdd(circ, circFact.getSubcircuit())) {
        canvas.setErrorMessage(Strings.getter("circularError"));
        return;
      }
    }
View Full Code Here

Examples of com.cburch.logisim.proj.Dependencies

            canvas.setErrorMessage(getFromLocale("cannotModifyError"), 0, 0);
            return;
        }
        if (factory instanceof SubcircuitFactory) {
            SubcircuitFactory circFact = (SubcircuitFactory) factory;
            Dependencies depends = canvas.getProject().getDependencies();
            if (!depends.canAdd(circ, circFact.getSubcircuit())) {
                canvas.setErrorMessage(getFromLocale("circularError"), 0, 0);
                return;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.