Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Add TiShadow Support #224

Open
joshjensen opened this issue Jan 9, 2014 · 8 comments
Open

Add TiShadow Support #224

joshjensen opened this issue Jan 9, 2014 · 8 comments
Assignees
Milestone

Comments

@joshjensen
Copy link
Collaborator

Currently ChariTi does not like TiShadow

@ghost ghost assigned joshjensen Jan 9, 2014
@timppa
Copy link

timppa commented Feb 18, 2014

Any idea why?

I've added the modules into my custom tishadowapp, and updated it's tiapp.xml to include them.

What am I missing?

@joshjensen
Copy link
Collaborator Author

I found that it has to do with where TiShadow stores the app data. So in the controllers/index.js file I added:

Ti.App.Properties.setString("resourcesDirectory", Ti.Filesystem.resourcesDirectory);

if(Ti.App.name === "TiShadow") {
    Ti.App.Properties.setString("resourcesDirectory", Ti.Filesystem.resourcesDirectory + Ti.Platform.osname + "/");
}

Then throughout the app when I need to call the resource directory instead of using "Ti.Filesystem.resourcesDirectory" I use "Ti.App.Properties.getString("resourcesDirectory")"

Probably not the most elegant, but it works.

@dbankier
Copy link

@joshjensen, all fixed now in master

@dbankier
Copy link

nice app, by the way!

@mcongrove
Copy link
Owner

Thanks @dbankier !

@joshjensen
Copy link
Collaborator Author

Yes, thank you and thanks for taking care of the ticket.

@mcongrove
Copy link
Owner

@joshjensen Is this fixed now with @dbankier 's commit to TiShadow?

@joshjensen
Copy link
Collaborator Author

@mcongrove As far as I know. I have not tested it yet.

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

No branches or pull requests

4 participants