Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12432] iOS: Transport.py - Add the ability to re-create the iphone in a similar way as Titanium Studio does

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-27T01:54:11.000+0000
Affected Version/sRelease 3.0.0, Release 3.1.0
Fix Version/sn/a
ComponentsCLI
Labelsn/a
ReporterEduardo Gomez
AssigneeChris Barber
Created2013-01-25T23:42:17.000+0000
Updated2017-03-22T21:07:44.000+0000

Description

Feature Request

Add the ability to _transport.py_ to be "smart" enough to re-create the iphone in a similar way as Titanium Studio does. - "iphone/transport.py"
   # Clean build dir (if it exists), error otherwise (no iphone support)
        info("Cleaning build...")
        if os.path.exists(build_dir):
            for f in os.listdir(build_dir):
                path = os.path.join(build_dir,f)
                if os.path.isfile(path):
                    os.remove(path)
                else:
                    shutil.rmtree(path)
        else:
            info("Your project is not configured to be built for iphone.")
            exit(1)
When you run clean in Titanium Studio (Project -> Clean... -> Clean All Projects for instance) it deletes the iphone directory under build. - If project has no iphone it won't migrate resources:
egomezMBP:Titanium Studio Workspace egomez$ /Library/Application\ Support/Titanium/mobilesdk/osx/3.0.0.GA/iphone/./transport.py AppLeak/
[INFO] Cleaning build...
[INFO] Your project is not configured to be built for iphone.
- Build Titanium project to get it to work (iphone build present).
egomezMBP:Titanium Studio Workspace egomez$ /Library/Application\ Support/Titanium/mobilesdk/osx/3.0.0.GA/iphone/./transport.py AppLeak/ 
[INFO] Cleaning build... 
[INFO] Migrating resources... 
[INFO] Migrating platform/iphone to Resources... 
[INFO] Migrating tiapp.xml... 
[INFO] Generating project from Titanium template... 

Comments

  1. Chris Barber 2016-08-27

    transport.py has been deprecated and there currently no alternative.

JSON Source