fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
623 stars 995 forks source link

Build Android without gradle - who can help? #193

Open wfdevelop opened 7 years ago

wfdevelop commented 7 years ago

My problem: The plugin uses gradle script to build Android version. I am using Intel XDK as software development tool, which cannot handle plugins with gradle for build process in plugin.xml.

I have removed gradle by deleting the tag <framework src="src/android/FCMPlugin.gradle" custom="true" type="gradleReference"/> from section <platform name="android"> so no gradle is used for build (ant instead, I think) but there are now (of course) unsolved dependancies like this:

.../cordova_project/platforms/android/src/com/gae/scaffolder/plugin/FCMPlugin.java:15: error: package com.google.firebase.messaging does not exist import com.google.firebase.messaging.FirebaseMessaging; ^ .../cordova_project/platforms/android/src/com/gae/scaffolder/plugin/FCMPlugin.java:16: error: package com.google.firebase.iid does not exist import com.google.firebase.iid.FirebaseInstanceId; ^ ...

I have all the firebase packages needed for build in a extra folder com.google.firebase but don't know where to copy and how to change the plugin.xml file to build without errors.

As I said before, I am using an SDE (Intel XDK) NOT the Cordova CLI OR Android SDK for Build. There it would build without problems, because gradle is accepted.

Thanks a lot! Mikel

ghost commented 7 years ago

I am facing same issue. Any solution to this please share.

sparklton commented 7 years ago

Same here, Intel XDK doesn't support gradle, any workaround will be greatly appreciated.