1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Titanium 1.8.0.1 でZipFile 0.1.21 モジュールを使う際の注意点

1
Last updated at Posted at 2012-01-25

2012/1/23日現在
ZipFile githubのReadme内のHow to useでtiapp.xml へ設定するモジュールのバージョンが 0.1.20 になっているので下記のように設定する

tiapp.xml
...
<modules>
  <module platform="iphone" version="0.1.21">zipfile</module>
</modules>

Titanium 1.7 以降パスがURI形式になり、Ti.FileSystem.applicationDataDirectoryの指す場所も変更された様だが、ZipFile モジュールは新しいパスの仕様に初期の状態では対応していないため

app.coffee
applicationDataDirectory =
    ((Ti.Network.decodeURIComponent Ti.Filesystem.applicationDataDirectory)
        .replace 'file://localhost', '')
        .replace '/Documents/', ''
...

の様に変数を作り利用すると良い

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?