This is a migrated thread and some comments may be shown as answers.

In-app billing custom pligin for Android file path problem

1 Answer 70 Views
Google Android
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alfredo
Top achievements
Rank 1
Alfredo asked on 29 Nov 2013, 05:50 PM
Hello,

I've imported a custom plugin for in-app billing . Plugin docs say it plugman-compatible and upon further inspection it actually is, however at build time it throws the following error:

'/tmp/0c589fabe5ec4b0faf32a8940e8bbc58/Plugins/src/plugin.xml' Done building project "ShapeMatch.proj" -- FAILED.

after moving plugin.xml to /src/ then it throws the following error:

"/tmp/db2a3e433e274c0d8509f416ae6b31e0/cordova/plugins/com.smartmobilesoftware.inappbilling/src/android/com/android/vending/billing/IInAppBillingService.aidl" not found! Done building project "ShapeMatch.proj" -- FAILED.

From the /src/ folder and on the path is correct. Read the Icenium docs but doesn't says much about it, so how to correctly reference that?

Thank you, your help will be appreciated.

EDIT: Looks like Icenium internal file structure is different from that of a regular PhoneGap/Cordova application. So this problem could be easily solved by knowing how Icenium folders relate to that of a normal PG/Apache file-structure.

EDIT: [SOLVED] When imported the plugin as indicated in the docs, the src, www and plugin.xml were added to the Plugins folder in the project. Apparently those files need to reside in their own folder, so if you add more plugins they don't mix. Just added a new folder named "AndroidInAppBilling" to the "Plugins" folder and transferred the plugin's src, www and plugin.xml files and folders into it and Incenium Mist built the project with no errors. There's an additional step. Although the plugin is "plugman" compatible you still need to modify the Android's config.xml and AndroidManifest.xml as described here: https://github.com/poiuytrez/AndroidInAppBilling/tree/master/v3

*The plugin functionality isn't tested yet. This just fixed the errors thrown at build time.*

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 04 Dec 2013, 01:44 PM
Hello Alfredo,

I just wanted to add that the information for your solution is already present in our documentation: Making a Custom Plugin Plugman-Compatible.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Google Android
Asked by
Alfredo
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or