Comment on page
The Configure app screen displays the current configuration of the app.
The app's embedded library version number is displayed. If the library version is less than the Appfigurate version, a warning icon is displayed. If the library version is equal to the Appfigurate version, then a green tick is displayed.
If the app being configured is a debug build (the
nz.co.electricbolt.appfiguratelibrary.Configuration(Android) subclass method
allowInvalidSignaturesreturned true), then the text
Debug build - App allows invalid signatureis displayed with a warning icon.
Signature is validis displayed with a green tick if the correct private key was used to sign the configuration payload.
The configurable properties in the app are displayed on screen and are editable.
Any properties that require the app to be restarted after being changed are displayed with a restart icon
Tapping on a configurable property that is a list, or a list with custom items shows the following screen:
The currently selected list item is displayed with a tick ✓. To select a new item, tap any item in the list; the list screen will be dismissed automatically. Long press an item to copy the value onto the iOS or Android clipboard.
If the list is customizable, then the
Add custom itembutton is displayed. Tapping the button will display the following screen:
If there is text in the iOS or Android clipboard, then the clipboard contents are automatically pasted into the value field. The first numeric range is highlighted automatically.
Enter a name and value. The value must conform to the property's minimum and maximum values (if applicable) and regular expression (if applicable). If the value does not conform, the field will be displayed bold red, and the
Addbutton will be disabled.
On the list screen, custom items are displayed below predefined items hardcoded in your app:
When you are ready to apply the selected configuration to your app, tap the
Apply ˅toolbar button. Your app will be launched, and it's configuration updated.
Long press the
Apply ˅toolbar button or drag from the right edge of the screen towards the left to open the Apply menu.
Apply to this devicemenu item performs identically to tapping the
Apply ˅toolbar button.
Apply invalid to this devicemenu item, generates a random private key, which is then used to sign the configuration payload. Your app will then be launched. If your app's
allowInvalidSignaturesmethod returns true, then the app's configuration will be updated. If the method returns false, then the configuration will not be updated. This can be useful in testing your apps release build to ensure it only accepts valid signatures.
Reset this devicemenu item resets your app's configuration back to factory defaults (the values specified in your