Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12349

CLI: Allow Android builds to disable minification

    Details

      Description

      Using the new CLI, Android builds need to respect the "skip-js-minify" flag.

      It has been suggested we do this via an environment variable the Node.js code sets before calling the relevant Python scripts.

      In order to disable minification in Android, we need to adjust the following:

      Android: support/android/compiler.py, line 211

      def compile_into_bytecode(self, paths):
      for fullpath in paths:
      # skip any JS found inside HTML <script>
      if fullpath in self.html_scripts: continue
      -
      self.compile_javascript(fullpath)
      +
      if false: self.compile_javascript(fullpath) 
      self.compiled_files.append(fullpath)
       
      # Pack JavaScript sources into an asset crypt.
      jspacker.pack(self.project_dir, self.compiled_files, self.appid, self.gen_dir)
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              ingo Ingo Muschenetz
              Reviewer:
              Bryan Hughes
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15363
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration