how to enable or switch existing flutter project (mobile only) to MacOS or WEB or Linux or Windows? - linux

I have made a flutter app only for mobile (Android and IOS). now client requested that make it for web/macOS/windows app.
so now how can I enable the existing projects for all other platforms or wise wars? here is all case I want to know
Existing on the web and adding other (mobile, windows, mac)
Existing on the web and adding only (mobile)
Existing on the Mobile and adding other (web, windows, mac)
Existing on Mobile and adding only (windows, mac)
Existing on the Mac and adding other (mobile, windows, web)
Existing on Windows and adding other (mobile, web)
many many thanks in advance. Questions and answers will be useful for many flutter developers in the future so if possible then a details answer will be appreciated!

flutter create --platforms=windows,macos,linux .
Is the one command that you need to run in terminal of your root project directory. You can specify platforms in the comma seperated list.
Like mentioned in the doc https://docs.flutter.dev/development/platform-integration/desktop#add-desktop-support-to-an-existing-flutter-app
List of platforms:https://docs.flutter.dev/development/platform-integration/desktop#add-desktop-support-to-an-existing-flutter-app
To enable disable platforms let say we want to disable ios altogether you can use and create a project later. Now you wont have ios as it is not available.
Well you can toggle the config and simply run the above mentioned command to go for ios
flutter config --no-enable-ios
You can follow this link for the config commands.
https://docs.flutter.dev/development/platform-integration/desktop#set-up
So lets say you have a case where you need to add only windows and mac you can disable other platforms and use the create command.
Now for the existing project if you want to enable or add a platform you can use the above create with platforms flag
NOTE:
CONFIG SETTINGS ARE USUALLY GLOBAL
There are many ways we can counter it. we can make use isolated development too complicated for simple usecase.
We can use FVM https://fvm.app/ for the configs so that it doesnot affect our core sdk.

Related

How to setup Mac OS X terminal as VScode?

I develop for D365 Business Central, I use VSCode which has an extension to develop apps for it.
https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al
Having installed the above VSCode extension, connecting to a SaaS sandbox, which is simply writing the config flags of in a Launch.json file which is part of the app's file structure, I develop for D365 Business Central.
Recently I have been wanting to write/edit, deploy and debug in Mac OS X terminal itself. Avoiding using VScode. I have no idea where to begin to eventually have a complete setup in the terminal itself of developing apps for D365 Business Central not touching VSCode.
I need guidance, please share how do I start this. I do know first I have to choose an editor, VIM maybe? and then figure out how to place files that get downloaded from https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al somewhere accessible in Terminal? Because that is what will give me autosuggests of functions etc like it does in VScode?
you can only use VSCode, the compiler and the build tools are not standalone
(I feel your pain, I'm coming from vim)
Cheers

Android Studio how to Revert Using Services instead of Run?

I would like to use the Run window in Android Studio for launching my run configurations (which is the default for projects).
I know that at some point I enabled the 8. Services window to be the default for one of my projects, however, I have no idea how to disable this again:
Any time I run anything in said project (launch an app, run tests, a command line app, etc.), it is launched in this Services windows, which has a bunch of annoying downsides in my opinion.
I do not want to delete the entire .idea directory of the project because I have many settings that I do not want to lose - it is just this one that bugs me.
Which run configurations are run in the Services window is determined by the Configurations availabe in Services list in Run/Debug Configurations -> Templates:
In there, you can simply remove or add any configurations that you want to have run in 8. Services or not.
Navigation
Run -> Edit Configurations... -> Templates -> Configurations available in Services
Thanks to #y.bedrov for pointing it out.

Can I embed a windows store app inside a classic windows application?

I would like to embed a universal windows app into a classic windows application on windows 10. Is this possible?
The short answer is no. However... depending on what you're trying to do, the information below may help you.
If you just want to get the look and feel of a desktop application, you should be aware that Windows 10 apps (unlike Windows 8 apps) run in non-fullscreen mode by default, and can be resized. Desktop apps in Windows 10 have top-right icons (min/max/resize) that look similar to how UWP apps look in the title bar and top-right icons.
If you're creating a UWP app with XAML, you won't be able to embed it in a desktop application. However, if you're building a Windows 10 app using HTML5 and JavaScript, you could repackage it inside a browser control embedded in a desktop application.
If you're creating a game using a 3rd-party tool such as Unity, you can export it as a Windows desktop application just as easily as exporting to a UWP app for Windows 10. Unity can be used for non-game apps as well, so you could export it to a desktop application today, and still have the option of publish a UWP of the same game/app.
If you were thinking of accessing the full Windows SDK from you UWP app, you won't be able to do so, as you will be restricted by the UWP sandbox. But Windows 10 has made many improvements in helping you get access to many advanced features, e.g. accessing certain locations in the file system, so you may be able to get by with all that UWP has to offer.
If you want to avoid the Windows Store, you may sideload your app, as suggested by an earlier comment.
Hope that helps! :)

Deploy Windows Apps to Family and Friends without store, enterprise or development-tools

I wrote a App for my family/friends and now we would like deploy it on or PCs. Publishing it in the store is not an option and not everyone has an Widows Live account. Sideloading isn't an option, because we do not own a Enterprise edition.
I found only the three already described ways. Either by publishing it in the store, using the development tools or having the enterprise edition.
Is there a fourth way to deploy a Windows UWP App without using the Windows Store or the need to install a developer certificate? If not, is there a possibility that something similar will be possible in the future?
The Windows 10 Deployment Tool looks like the thing I'm looking for, but i seems to be for mobile phones, or am i wrong?
The future is now! The process is easier on Windows 10 and the linked questions aren't relevant to that version. On Windows 10 users can enable developer mode or side loading in system settings on the "Update & security" page, in the for developers section.
See https://msdn.microsoft.com/en-us/library/windows/apps/dn706236.aspx
now with Windows 10 Anniversary update, you could just double click *.appxbundle file to install
Steps:
create your package, select no, when prompt "Do you want to build packages to upload to Windows Store?"
go to the package folder, double click *.cer, and install the certificate to Trusted Root Certification Authorities
double click *.appxbundle to install
Client OS Requirement: Win10 14393
UWP Target SDK: 14393
UWP Min SDK: 14393
On the target device, open the test folder. For example, C:\Projects\MyApp\MyApp\AppPackages\MyApp_1.0.2.0_Test
Right-click on the Add-AppDevPackage.ps1 file, then choose Run with PowerShell and follow the prompts.
Click the Start button and then type the name of your app to launch it.

Installshield sideload: app not start after install

I have a problem with a Windows 8.1 app that I want to deploy by sideloading.
I installed InstallShield premier to test it's feature, and generated an installation package that contains appx file and a test certificate file created by visual studio (associated in installshield project properties).
I need to enable app distribution in group policy settings to install.
After app correctly installs on system, i found it in start menu, but when i try to run the app, windows shows a popup that says "there is a problem with this app, contact administrator".
Target system is a Windows 8.1 Pro 32 bit PC.
Id there any other settings that I must enable on target system before install the app with InstallShield?
Thanks
There are multiple requirements for sideloading to work, documented on technet, which I've summarized here:
Activate the sideloading product key on the device OR join the device to an Active Directory domain (except for certain embedded devices which do not require either of these).
Enable the Allow all trusted applications to install Group Policy setting.
Since you don't mention it, I'm going to guess that your machine has neither the sideloading product key nor a domain membership (nor is it one of the special embedded cases), so that's where I'd start.
For more troubleshooting ideas, see some blogs like Sideloading Store Apps to Windows 8.1 Devices or How Do I Deploy a Windows 8 App to Another Device for Testing?

Resources