Merge pull request #17712 from abpframework/EngincanV/cli-react-native

CLI: Add `mobile:react-native` symbol if the react-native mobile app is selected for project creation.
pull/17734/head
Engincan VESKE 2 years ago committed by GitHub
commit 38c983d3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -165,7 +165,11 @@ public abstract class AppTemplateBase : TemplateInfo
steps.Add(new RemoveFolderStep("/angular"));
}
if (context.BuildArgs.MobileApp != MobileApp.ReactNative)
if(context.BuildArgs.MobileApp == MobileApp.ReactNative)
{
context.Symbols.Add("mobile:react-native");
}
else
{
steps.Add(new RemoveFolderStep(MobileApp.ReactNative.GetFolderName().EnsureStartsWith('/')));
}

Loading…
Cancel
Save