Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10754] CLI: "build" command for Android modules

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-03-12T06:10:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsCLI
Labelsft, hudder
ReporterChris Barber
AssigneeFeon Sua Xin Miao
Created2012-09-04T14:48:14.000+0000
Updated2015-03-18T22:58:40.000+0000

Description

Comments

  1. Feon Sua Xin Miao 2014-12-16

  2. Tim Poulsen 2015-02-05

    This doesn't work for me. Here are my test steps: 1. Check out the PR 2. scons to build the SDK and install, make sure that SDK version is selected 3. Create the module with the command above 4. Change into the android directory 5. Build using the command above I'm prompted: Where is the project directory?: I enter . and I'm just prompted again for the same. If I enter the actual path to the directory, I get \[ERROR\] Invalid project directory "~/Documents/Titanium_Studio_Workspace/test/android" because tiapp.xml not found It's not clear to me what you mean by your statement that this PR depends on changes made for the iOS version. I tried starting with the SDK I built from the PR on TIMOB-10755. Then, I copied the android and module/android folder from this PR's SDK folder. I get an error though:
       [ERROR] Failed to run command "build"
       [ERROR] TypeError: Cannot read property 'code-processor' of undefined
       
  3. Feon Sua Xin Miao 2015-02-06

    TIMOB-10755 consists of one PR for basic infrastructure + iOS module build, and this one is a separate PR for Android that needs basic infrastructure changes from TIMOB-10755. I'll look into the 'code-processor' error, it never happened before. Thank you [~skypanther]!
  4. Tim Poulsen 2015-02-12

    I tested this again, now that the PR for TIMOB-10755 has been merged. With a fresh pull of this ticket's PR, I'm getting the same behavior as I described above.
  5. Ashraf Abu 2015-03-12

    https://github.com/appcelerator/titanium_mobile/pull/6486 Functionally tested and code reviewed. Merged it to master
  6. Feon Sua Xin Miao 2015-03-12

    4_0_X: https://github.com/appcelerator/titanium_mobile/pull/6715
  7. Lokesh Choudhary 2015-03-18

    Verified the implementation of the "build"command for android modules. An android module is successfully created & launches the example app on the android emulator. Closing. Environment: Appc Studio : 3.5.1.201412091616 Ti SDK : 4.0.0.v20150313181810 CLI : 3.4.2 Alloy : 1.5.1 MAC Yosemite : 10.10.2

JSON Source