Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom <modules> section #3

Open
m1ga opened this issue Aug 16, 2022 · 1 comment
Open

Custom <modules> section #3

m1ga opened this issue Aug 16, 2022 · 1 comment

Comments

@m1ga
Copy link

m1ga commented Aug 16, 2022

Would it be possible to change the modules section too?

modules: [{name: "name", "version": "1.0.0", "platform": "android"}]

and output

<modules>
  <module version="1.0.0" platform="android">name</module>
<modules>
@drauggres
Copy link
Contributor

drauggres commented Aug 27, 2022

Hi there.
IIRC there was a problem with specifying modules in the config this way. Or maybe I was too lazy to implement this and used "raw-config", it should be possible to add modules inside it. "raw-config" should have the same stucture as the internal build configuration object (upd: you can inspect it in debugger, see below), e.g.:

      "raw-config": {
        "tiapp": {
          "ios":{
            "use-app-thinning": true,
            "min-ios-ver": 8,
            "enable-launch-screen-storyboard": true,
            "default-background-color": "#ffffff"
          }
        }
      },

If you want to debug this (or any other ti cli plugin):

  1. add debugger inside the hook, something like:
  // first argument is the build configuration object mentioned above 
  cli.addHook('build.pre.construct', function(build, finished) {
    debugger;
  1. run build:
node --inspect-brk /usr/local/lib/node_modules/titanium/bin/titanium build -p android --build-profile customer1 --build-only

Basically it should be same old ti build ..., but with full path to the titanium script and prepended with node --inspect-brk

  1. Open dev tools in a chromium based browser, click "node.js" icon
  2. Enjoy debugging :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants