use of com.android.tools.idea.npw.instantapp.ConfigureInstantModuleStep in project android by JetBrains.
the class NewFormFactorModulePath method init.
@Override
protected void init() {
myState.put(IS_LIBRARY_KEY, false);
myState.put(SRC_DIR_KEY, calculateSrcDir());
myState.put(RES_DIR_KEY, "src/main/res");
myState.put(AIDL_DIR_KEY, "src/main/aidl");
myState.put(MANIFEST_DIR_KEY, "src/main");
myState.put(TEST_DIR_KEY, "src/androidTest");
myState.put(CREATE_ACTIVITY_KEY, false);
myState.put(IS_INSTANT_APP_KEY, false);
String whSdkLocation = System.getenv(WH_SDK_ENV_VAR);
myState.put(WH_SDK_KEY, whSdkLocation + "/tools/resources/shared-libs");
myState.put(WH_SDK_ENABLED_KEY, isNotEmpty(whSdkLocation));
addStep(new ConfigureAndroidModuleStepDynamic(myDisposable, myFormFactor));
addStep(new ConfigureInstantModuleStep(myDisposable, myFormFactor));
addStep(new ActivityGalleryStep(myFormFactor, true, KEY_SELECTED_TEMPLATE, null, myDisposable));
Object packageName = myState.get(PACKAGE_NAME_KEY);
if (packageName == null) {
packageName = "";
}
Map<String, Object> presetsMap = ImmutableMap.of(PACKAGE_NAME_KEY.name, packageName, ATTR_IS_LAUNCHER, true, ATTR_PARENT_ACTIVITY_CLASS, "");
myParameterStep = new TemplateParameterStep2(myFormFactor, presetsMap, myDisposable, PACKAGE_NAME_KEY, new SourceProvider[0], AddAndroidActivityPath.CUSTOMIZE_ACTIVITY_TITLE);
addStep(myParameterStep);
}
Aggregations