use of com.google.idea.blaze.base.settings.BuildSystemName in project intellij by bazelbuild.
the class BlazeModuleSystemExternalDependencyIntegrationTest method setupSourcesAndProjectView.
@Before
public void setupSourcesAndProjectView() {
registerExtension(MavenArtifactLocator.EP_NAME, new MavenArtifactLocator() {
private final ImmutableMap<GradleCoordinate, Label> knownArtifacts = new ImmutableMap.Builder<GradleCoordinate, Label>().put(CONSTRAINT_LAYOUT_COORDINATE, Label.create(CONSTRAINT_LAYOUT_LABEL)).build();
@Override
public Label labelFor(GradleCoordinate coordinate) {
return knownArtifacts.get(new GradleCoordinate(coordinate.getGroupId(), coordinate.getArtifactId(), "+"));
}
@Override
public BuildSystemName buildSystem() {
return BuildSystemName.Bazel;
}
});
setProjectView("directories:", " java/com/foo/gallery/activities", "targets:", " //java/com/foo/gallery/activities:activities", "android_sdk_platform: android-27");
MockSdkUtil.registerSdk(workspace, "27");
workspace.createFile(new WorkspacePath("java/com/foo/gallery/activities/MainActivity.java"), "package com.foo.gallery.activities", "import android.app.Activity;", "public class MainActivity extends Activity {}");
workspace.createFile(new WorkspacePath("java/com/foo/libs/res/values/styles.xml"), "<?xml version=\"1.0\" encoding=\"utf-8\"?>", "<resources></resources>");
}
Aggregations