Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19825] Android module build should support AIDL files

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-11-04T03:03:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.2.0
ComponentsAndroid, Tooling
LabelsTCSupportTriage, android, module, module_android
Reportergrebulon
AssigneeFeon Sua Xin Miao
Created2014-12-21T09:11:05.000+0000
Updated2016-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

FileDateSize
IInAppBillingService.aidl2014-12-21T09:11:06.000+00008443

Comments

  1. Motiur Rahman 2015-07-10

    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.
  2. grebulon 2015-09-29

    Not our bug? Than who's is it? Mine? Again, mark it as "we don't care"
  3. Fokke Zandbergen 2015-10-29

    [~buddyguards] I've reopened the ticket as a improvement request.
  4. Shawn Lipscomb 2015-10-29

    This issue is blocking the ability for the Appcelerator In-app Purchasing module to work with Android 5.0+.
  5. Shannon Hicks 2015-10-29

    This is critical path for us now, too.
  6. pratik patel 2015-10-30

    This is also blocking a app release for us. Please mark this as urgent.
  7. Tim Poulsen 2015-10-30

    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?
  8. Feon Sua Xin Miao 2015-11-03

    PR: https://github.com/appcelerator/titanium_mobile/pull/7389
  9. Ashraf Abu 2015-11-04

    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 the aidl. See http://developer.android.com/training/in-app-billing/preparing-iab-app.html The aidl is only used to generate the Java interface code. Once that's available, the aidl isn't required any more. 2) Copy over the generated java 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.
  10. Lokesh Choudhary 2016-02-05

    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

JSON Source