How to integrate an external app into IntelliJ plugin? - intellij-idea

I want to build an Android Studio plugin (IntelliJ plugin) which can open an external app by pressing the button. The external app is developed by myself and is quite small. I hope to integrate it to the IntelliJ plugin so users only need to install the plugin instead of installing the app explicitly.
So is it possible for me to package the app into the plugin? I have tried putting the .app file under the resources folder but I don't know how to open the app programmatically. Or is there any other way to achieve my purpose?

Related

No option for adding New flutter Web Project in IntelliJ Dart Templates !!! Also tried Vs code, is asking for Which Dart template

I'm trying to start a new Flutter project in Intellij as well as Vs code.
Intellij there is no option provided to add a new flutter web project in Dart templates.
Vs code whenever I select New flutter Web Project after accepting the stagehand it asks for the Dart template which is why I'm stuck.??
Please help soon??
Since flutter 1.9 flutter_web is merged inside flutter, Follow the below steps to create and run your first flutter web App through IntelliJ IDEA.
Create a new flutter project.
Now change your flutter channel to master using flutter channel master
Upgrade flutter flutter upgrade
Install the flutter_web build tools flutter pub global activate webdev
Enable flutter web using flutter config --enable-web
Check available devices flutter devices and you will get a result like:
Chrome • chrome • web-javascript • Google Chrome 81.0.4044.92
Web Server • web-server • web-javascript • Flutter Tools
Inside your flutter project create myapp using flutter create myapp
Navigate inside myapp using cd myapp
Finally, run flutter run -d chrome
And you will be able to run your flutter web app into chrome. Hurray 🤟🏽🤟🏽🥳
Reference links: Building a web application with Flutter , flutter_web
It seems that the support for Flutter Web Apps was dropped in stagehand (that contains the dart templates). From this commit on github: (Dropping Flutter Web sample). Instead, this wikipage shows how to migrate/create a web package in flutter from command line.
Create your project from command-line.
Check out this tutorial. flutter.dev/docs/get-started/web
Then just open the project in IntelliJ IDE.
Install or Update the dart and flutter plugins in Intellij and/or VS Code
For Intellij
Go to [mac] Preferences>Plugins>Marketplace and search for Dart and Flutter, install it.
For VS Code
Go to View > Command Pallet and type in Extensions: Install Extensions
then type flutter and install it
Its well documented in this link
Setup Flutter

Custom Branding for application

I am having trouble with branding the application in cumulocity.
I tried to test branding by cloning the cockpit app to use our Branding.
If i see in the manage application window i am not able to customize the branding/logo. I don't see the option to customize the branding Although i removed the cumulocity branding plugin from the app now I only see the name of my application as the logo.
In the plugins window i saw only cumulocity branding, nothing for custom branding. Can you please correct me if i missed something?
Here is how I would do it. Clone or download the cumulocity-ui-plugin-examples from the cumulocity repository then:
Go to plugins folder
Find myBranding folder
Now go to the img folder and changes the logo-main.svg and logo.svg for your desire logos. Also, you can check the colors.less file in the variables folder and change the colors of your application UI.
Now go to the main folder (where you download the repository) and run c8y deploy:plugin myBranding. This command create a .zip file of the plugin.
Next, go the administration app in Cumulocity , find the app your cloned and click on edit, then go to the plugins tab. There you can find the list of the plugins that your app is using.
Find the Branding: Cumulocity plugin and click on remove like .
Next, in the same menu, click on add plugin.
Look on your computer for the .zip file you create on the 4 step and load it.
Click on save.
Open your app.
Note: If you haven't installed the c8y tool and assuming you have installed nodejs , just run npm i cumulocity-tools -g to get the tool. See this great documentation for more info.
You can find a documentation related to this in: branding guide.
Hope this helps!

Integrate Ionic Sass Customization in IBM Worklight

I want to integrate Ionic Sass Customization in IBM Worklight hybrid mobile application. can any one help , Not sure what are the dependencies to make this work. Ionic is really cool in customization of themes in IONIC Mobile Apps.
http://learn.ionicframework.com/videos/sass/
Thanks in advance.
Because Worklight/MFP does not support the Cordova CLI and Ionic deeply integrates their CLI with the Cordova CLI, the approach I believe you should take is:
Create a skeleton app in Worklight Studio, integrated with Ionic. You can look at the Starter Application (for MFP 6.3), that also has a version using Ionic.
Once you have that, you'll need to create an app purely with Ionic, and create the theme you like the most
Then you need to copy over the CSS files or their contents, whatever, to the Worklight/MFP project and manually integrate the two (references in the HEAD or the contents injected into the CSS files
Not a nice approach, but since there is no Worklight > Cordova CLI integrate, the process is not nice.

Worklight v6.2 - Android Cordova Plug-in

Has anyone tried the "Android - Adding native functionality to Hybrid Application using Apache Cordova plug-in" feature in v6.2 ?
I'm trying to use a 3rd party library on the client side and wanted to understand where to put the plug-in java class in the project. The documentation shows a java package (src) structure whereas the best I can find is normal folders in the android native folder.
Thanks.
The reason you see these as "regular" folders is likely because you are look at the Worklight project rather than the generated Android project.
Worklight project\apps\your_app\android\native\ ... will look as folders because they are indeed just folders.
Once you build your Worklight application (containing an Android environment), an Android project will be generated. In it, you will see the folders as packages, etc.
A Worklight project and application structure is explained in earlier training modules:
Creating your first Hybrid Worklight application
Previewing your application on Android
So, you should place your Java Class file in Worklight project\apps\your_app\android\native\src\com\package_name\ ...
Note about Cordova plug-ins in Worklight: depending on the plug-in this may not be possible to use as some plug-ins require using the Cordova plugman, which is not yet supported in Worklight.

Is there any way to put Titanium code into Eclipse?

If Ive developed an Android app in Titanium (Appcelerator), is it possible to change it to use in Eclipse?
Thank you
I use Eclipse, you can import your Titanium projects in eclipse but not with import but instead create a new web project and set the project location to the Titanium project you have created using Titanium developer.
Titanium Studio, the development environment for Titanium, is a branded and somewhat customized version of Eclipse.
Yes sure, you can put Titanium code within Eclipse:-
First be sure you have javascript Web development Eclipse version. You can download here: http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliossr1
After that you have to install plugin using Eclipse IDE.
Import Titanium’s mobile application into Eclipse for faste development.
For more information Check this link: http://www.eeblog.org/index.php/how-to-set-up-a-titanium-project-with-eclipse-and-start-our-first-mobile-application/