Mirror - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
THE MIRROR SERVICE IS PART OF THE OFFLINE PACKAGE AND WILL BE FULLY RERELEASED WITH THE OFFLINE CAPABILITIES.
The Mirror background service is started when the application is launched. The service is used to mirror assets and templates from the FML service in order to support offline capabilities and improve navigation and page rendering perfomance.
The service requires a backend api to inventory assets and templates by fully qualified name and supply last modifiy times in epoch. The Mirror service downloads any asset that doesnt exist on the local device, removes previously downloaded assets from the local device that do not appear on the inventory list and downloads assets that have been modified since the they were last downloaded.
The format of the inventory report must be as follows:
<Assets>
<Asset>
<type>folder</type>
<updated>1627394123109</updated>
<name>.vscode</name>
<uri>https://test.appdaddy.co/resources/.vscode</uri>
</Asset>
<Asset>
<type>folder</type>
<updated>1640202813441</updated>
<name>advantagewon</name>
<uri>https://test.appdaddy.co/resources/advantagewon</uri>
</Asset>
<Asset>
<type>file</type>
<updated>1668027509332</updated>
<name>debug.xml</name>
<uri>https://test.appdaddy.co/resources/debug.xml</uri>
</Asset>
</Assets>
Name | Values | Description |
---|---|---|
type | "file" / "folder" | Denotes asset is a file or folder |
updated | epoch | Time (epocoh seconds from GMT) when the file was last modified / created |
name | file / folder name | The actual name of the file or folder |
uri | valid url | Url to download the asset |