Software Archive
Read-only legacy content
17061 Discussions

Error comping when trying to use third party plugin in Intel xdk

Pruthu_U_
Beginner
318 Views

Hi I am facing problems when i am trying to use third party plugin one  one signal in XDK.

I tried doing it on Windows PC and I was able to put those plugins but on MAC i am facing error.

I am using  one signal for push notification and i am facing this problem

https://github.com/OneSignal/OneSignal-Cordova-Dependencies-Compat in third party plugin.


Command failed: /Applications/Intel XDK/Intel XDK.app/Contents/MacOS/git/bin/git -c init.templatedir=/Applications/Intel XDK/Intel XDK.app/Contents/MacOS/git/share/git-core/templates clone https://github.com/OneSignal/OneSignal-Cordova-Dependencies-Compat /var/folders/gp/7yvdx7ks21jfqswcymfytrbh0000gn/T/git/1490522469946 --single-branch --depth=1 Cloning into '/var/folders/gp/7yvdx7ks21jfqswcymfytrbh0000gn/T/git/1490522469946'... error: Could not expand include path '~/.gitcinclude' fatal: bad config file line 49 in /usr/local/git/etc/gitconfig

I tried multiple times by this step

https://documentation.onesignal.com/v3.0/docs/intel-xdk-setup

please help i am planing to launch dozens of app soon.

with regards

Pruthu Udeshi

 

 

 

 

0 Kudos
1 Solution
PaulF_IntelCorp
Employee
318 Views

Pruthu U. wrote:

Hi Paul,

Thanks for your message.

I read this online about your help to convert Intel XDK file to Cordova CLI file. (Thanks for below mentioned answer) 

http://stackoverflow.com/questions/42048553/how-to-import-an-existing-intel-xdk-project-in-android-studio

Steps I need to do

1) Make my Intel XDK project Corodva CLI Friendly. 

2) Then convert Cordova CLI Friendly into Android Studio Friendly. 

Is their any way that I can directly make Intel XDK build file (Android Friendly Directly)

As i read one post  as Android Studio uses Gradle in config.xml

<preference  name="android-build-tool" value="gradle"/>

The above code has to be put in config.xml

Please guide with screenshot how to convert Intel XDK build project into Android Studio so app development becomes quicker. I would Intel XDK as best system to create app, I want make many apps using this platform for android.

Thanks for your support.

Converting a Cordova app into an Android Studio app will not make it faster. A Cordova app for Android already is an "Android Studio" app.

Your Cordova app runs inside of a "webview" -- which is like an embedded browser. That webview, and how you write your app, is what determines how "quick" your app is, not Android Studio. Your Cordova app is an HTML5 app that is NOT compiled, it is interpreted by the JavaScript interpreter built into the device. See this blog for some detail > https://software.intel.com/en-us/blogs/2014/09/02/html5-web-app-webview-app <

If you want to create a "quicker" app using Android Studio you will have to rewrite your app as a native Java app. There is no conversion tool, that I am aware of, that would convert an HTML5 app (what you have written with the XDK) into a Java app, you have to do this by hand.

If all you want to do is perform the Android builds of your XDK (aka Cordova) app on your local system, then following the instructions found here > https://software.intel.com/en-us/xdk/docs/build-xdk-app-with-phonegap-cordova-cli < and use the 3900 (or later) release of the XDK.

View solution in original post

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
318 Views

I recommend you use PhoneGap Build or Cordova CLI to build your project, not the XDK build system.

That plugin requires the use of gradle scripts, which the XDK clould build system does not (and will not) support. You can ignore the plugin developer's PhoneGap Build instructions, regarding the config.xml file changes, > https://github.com/OneSignal/OneSignal-Cordova-SDK/tree/PGB-Compat < because all of that is correctly specified in the exported config.xml file.

Make sure you have added the plugin named "onesignal-cordova-plugin" to your project, not the plugin named "onesignal-cordova-plugin-pgb-compat."

0 Kudos
PaulF_IntelCorp
Employee
319 Views

Pruthu U. wrote:

Hi Paul,

Thanks for your message.

I read this online about your help to convert Intel XDK file to Cordova CLI file. (Thanks for below mentioned answer) 

http://stackoverflow.com/questions/42048553/how-to-import-an-existing-intel-xdk-project-in-android-studio

Steps I need to do

1) Make my Intel XDK project Corodva CLI Friendly. 

2) Then convert Cordova CLI Friendly into Android Studio Friendly. 

Is their any way that I can directly make Intel XDK build file (Android Friendly Directly)

As i read one post  as Android Studio uses Gradle in config.xml

<preference  name="android-build-tool" value="gradle"/>

The above code has to be put in config.xml

Please guide with screenshot how to convert Intel XDK build project into Android Studio so app development becomes quicker. I would Intel XDK as best system to create app, I want make many apps using this platform for android.

Thanks for your support.

Converting a Cordova app into an Android Studio app will not make it faster. A Cordova app for Android already is an "Android Studio" app.

Your Cordova app runs inside of a "webview" -- which is like an embedded browser. That webview, and how you write your app, is what determines how "quick" your app is, not Android Studio. Your Cordova app is an HTML5 app that is NOT compiled, it is interpreted by the JavaScript interpreter built into the device. See this blog for some detail > https://software.intel.com/en-us/blogs/2014/09/02/html5-web-app-webview-app <

If you want to create a "quicker" app using Android Studio you will have to rewrite your app as a native Java app. There is no conversion tool, that I am aware of, that would convert an HTML5 app (what you have written with the XDK) into a Java app, you have to do this by hand.

If all you want to do is perform the Android builds of your XDK (aka Cordova) app on your local system, then following the instructions found here > https://software.intel.com/en-us/xdk/docs/build-xdk-app-with-phonegap-cordova-cli < and use the 3900 (or later) release of the XDK.

0 Kudos
Pruthu_U_
Beginner
318 Views

Thanks Paul for much needed help, :)

0 Kudos
Reply