/*
 * Copyright 2017 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
package io.flutter.module;

import io.flutter.project.FlutterProjectModel;
import io.flutter.project.FlutterProjectStep;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class FlutterModuleStep extends FlutterProjectStep {
  public FlutterModuleStep(FlutterProjectModel model, String title, Icon icon, FlutterProjectType type) {
    super(model, title, icon, type);
    hideLocation();
  }

  @NotNull
  @Override
  public String getContainerName() {
    return "module";
  }

  @Override
  protected boolean isProject() {
    return false;
  }
}

@@ -293,16 +293,79 @@
 %0Aimport 
+io.flutter.utils.AndroidUtils;%0Aimport javax.swing.Icon;%0Aimport 
 org.jetb
@@ -393,31 +393,8 @@
 Null
-;%0A%0Aimport javax.swing.*
 ;%0A%0Ap
@@ -595,16 +595,88 @@
  type);%0A
+    if (!AndroidUtils.isAndroidProject(model.project().getValue())) %7B%0A  
     hide
@@ -687,16 +687,22 @@
 tion();%0A
+    %7D%0A
   %7D%0A%0A  @

Allow defining location of Android add-to-app modules (#4117)