Closed Bug 1123585 Opened 7 years ago Closed 7 years ago

[Stingray] Extract build script logic of copying smart-home.json to each deck app

Categories

(Firefox OS Graveyard :: Gaia::TV, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: dwi2, Unassigned)

References

Details

(Whiteboard: [ft:conndevices])

Both smart-home and app-deck (and maybe tv-deck in the future) needs a copy of smart-home.json. Because in some cases, we may have app-deck (or tv-deck) launched before smart-home. In these cases, cardManager in app-deck (or tv-deck) needs to read default card list from smart-home.json. Thus we move smart-home.json into tv_shared folder in bug 1123301, and we copy smart-home.json to smart-home and app-deck in their own build scripts.

However, the 'copy' logic is the same for both smart-home and app-deck. We should extract this 'copy' logic and put it in one place rather than place them in two separated build scripts.
Any app which has dependency on CardManager needs to copy smart-home.json to its own directory.
I think we can close this since bug 1123301 already taking care of this. Any app depends on CardManager can add smart-home.json to its resource, and tv build script will do the trick for us.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.