GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-27T16:07:07.000+0000 |
Affected Version/s | Alloy 1.3.1 |
Fix Version/s | Alloy 1.4.0, Alloy 1.3.1, 2014 Sprint 02 |
Components | Widgets |
Labels | alloy, assets, community, compile, platforms, qe-manualtest, triage, widgets |
Reporter | Fokke Zandbergen |
Assignee | Tony Lukasavage |
Created | 2014-01-23T11:06:21.000+0000 |
Updated | 2014-11-20T22:14:40.000+0000 |
There happens to be a regression with platform specific widget assets since Alloy 1.3 started compiling to platform specific folders under Resources
.
To reproduce
1. Compile the attached Alloy app for iOS or Android.
2. Find that main assets are well placed.
3. Find that the widget assets are misplaced under Resources/android/iphone
and alike folders.
Moving this ticket to engineering as we can reproduce it with the provided steps.
app(3) is an updated app with details related to android density specific images
The issue described is not critical, but using density-specific folders under widget assets is as the next test shows: https://www.flowdock.com/rest/private/11188/37372/files/2IqZkjLWhNarR71S75Jkig/app.zip Compile for Android and you'll find
Resources/android/android
andResources/android/iphone
folders that shouldn't been there and the density specific widget assets can only be found underResources/android/android
.PR: https://github.com/appcelerator/alloy/pull/310 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-937 Functional test
Compile the test app (same as the one in the description) for android and/or ios
Ensure that the file assets for the compile are copied to the right locations. For example, make sure that if you first compile for android that no "Resources/android/iphone" folder is created. Also ensure that the density-specific images for the widget are copied to the appropriate locations. For reference, I have attached a screenshot of what the resulting file structure should look like for a fresh android compile of the test app.
[~fokke] would you be so kind as to test with the following version of alloy and make sure that your bug is fixed?
Soon as you do, I'll resolve this ticket and post a new beta to npm.
[~tlukasavage], the only thing I've found is that there's an empty
Resources/iphone|android/foo
directory, but that's not a problem of course. Another thing not related to assets is that only when compiling to iOS, there is aResources/alloy/CFG.js
, duplicatingResources/iphone/alloy/CFG.js
. Again, not really a problem, just noticed it. Also, what is the reason for having an emptyResources/app.js
? Some kind of backwards compatibility thing? Seems to work well without.Platform specific widget assets are in the right place now. But I am seeing a populated Resources/iphone/images folder for an android build and vice versa for an iPhone build.
Thanks guys! I'm going to resolve this issue to take care of the regression, but I'll log a new ticket for more cleanly populating the assets throughout the rest of the platform-specific folders.
Merged into both master and 1_3_X. Available in alloy 1.3.1-beta4.