[TIMOB-19825] Android module build should support AIDL files
GitHub Issue | n/a |
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-11-04T03:03:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.2.0 |
Components | Android, Tooling |
Labels | TCSupportTriage, android, module, module_android |
Reporter | grebulon |
Assignee | Feon Sua Xin Miao |
Created | 2014-12-21T09:11:05.000+0000 |
Updated | 2016-02-05T02:18:52.000+0000 |
Description
I've added a .aidl file to my module. Building the module doesn't generate a java file from the interface.
Comment: these files are used to bind to an out-of-process service (e.g. IInAppBillingService.aidl from play_billing sdk), or to a private native service.
To reproduce, just put the attached file in src/com/android/vending/billing and build. a Java file with the same name should be generated and compiled with the module.
Attachments
Hello, I also created a module with ti SDK 4.1.0.GA and paste the attachment file into the directory src/com/android/vending/billing and build. Module builds successfully, but java file did not create with the same name. [According to the doc](http://developer.android.com/guide/components/aidl.html) it should create. *Result:* It's a module issue. Thanks.
Not our bug? Than who's is it? Mine? Again, mark it as "we don't care"
[~buddyguards] I've reopened the ticket as a improvement request.
This issue is blocking the ability for the Appcelerator In-app Purchasing module to work with Android 5.0+.
This is critical path for us now, too.
This is also blocking a app release for us. Please mark this as urgent.
I need this as well. If MOD-2154 is marked "High" priority and this one is blocking that ticket, it seems obvious that this one should get marked at least "High" as well. Any idea when this will be implemented?
PR: https://github.com/appcelerator/titanium_mobile/pull/7389
PR Merged. Workaround if you need this and do not want to wait for the PR (in master branch):- 1) Use either Eclipse or Android Studio to generate the
java
file of theaidl
. See http://developer.android.com/training/in-app-billing/preparing-iab-app.html Theaidl
is only used to generate the Java interface code. Once that's available, the aidl isn't required any more. 2) Copy over the generatedjava
file into the correct namespace package folder into the src directory of the Appcelerator Studio module. See https://github.com/appcelerator-modules/ti.inappbilling/tree/stable/android/src/com/android/vending/billing for Reference.Verified the fix. Followed steps in the PR : https://github.com/appcelerator/titanium_mobile/pull/7389 The
IInAppBillingService.java
file is generated as expected. Closing. Environment: Appc Studio : 4.5.0.201601262138 Ti SDK : 5.2.0.v20160204140025 Ti CLI : 5.0.6 Alloy : 1.7.33 MAC Yosemite : 10.10.5 Appc NPM : 4.2.3-2 Appc CLI : 5.2.0-242 Node: 4.2.2