Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6605] assets JS files(web view related .js files) also compelling Titanium JS files

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterNaga harish M
AssigneeAbir Mukherjee
Created2020-09-22T14:34:59.000+0000
Updated2020-09-28T14:26:27.000+0000

Description

When I run the app simulator all looks fine. I went simulator application folder to see resource(.js and other) are placed correctly or not. All looks good there. When we are taking build for device or running on device few assest .js file are missing. And an open .ipa file there _index_.json file in .ipa file. I am seeing what are the files present in .ipa file are marked as 1 and other are marked 2 is missing. I guess other are converted as Titanium code. Here I am attaching _index_.json file screenshots (1 & 2.png). Where And app assets folder screen shot. -- assets_folder.png And ipa folder after taking build for device -- ipa_folder.png

Attachments

FileDateSize
1.png2020-09-22T14:32:47.000+000076887
2.png2020-09-22T14:32:51.000+0000112763
assets_folder.png2020-09-22T14:32:55.000+0000110301
ipa_folder.png2020-09-22T14:33:07.000+0000437656

Comments

  1. Naga harish M 2020-09-22

    It is related to my previous ticket AC-6266. Which was closed. But I am seeing this issue still with latest appc studio build for device. (Noe:- I am not taking build from Xcode. I am using Appc studio only.)
  2. Ewan Harris 2020-09-28

    [~nagaharish], when building for device or distribution targets we will encrypt the JS source code from your application. To avoid JS content used in WebViews being encrypted we advise you rename the file extensions from .js, see Local JavaScript Files in the [WebView API docs](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView)

JSON Source