You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to run the openIMIS IMIS Android Application, you need to
35
-
know the openIMIS Web Services domain (DNS or IP address) and to
36
-
configure it in the imispolicies.AppInformation java file.
34
+
The configuration of the application is done through product flavors and build variants. The configuration can be found in ```app\build.gradle``` file. The default configuration contains demoProd or demoRelease flavors. Here is an example of product flavor.
For demo purposes, the default Web Services domain is set to the openIMIS
43
-
demo server: demo.openimis.org.
47
+
Parameters:
48
+
49
+
*```applicationId``` allow to build the application with its own application id. This allows to run different version of the application on the same device.
50
+
*```API_BASE_URL``` represents the openIMIS REST API URL (based on DNS or IP address) to connect to.
51
+
*```RAR_PASSWORD``` represents the password to be used for the offline extract.
52
+
*```SHOW_CONTROL_NUMBER_MENU``` allow to show or hide the Control Number menu item in case the implementation does not implement the ePayment module.
53
+
*```app_name``` is a resource string allowing to change the name of the application.
54
+
55
+
Escape procedures can be configured and language resource files can be changed. Please follow the ```sourceSets``` record. Look in ```app\src\demo``` folder for an example.
56
+
57
+
```
58
+
sourceSets {
59
+
demoProd.java.srcDir 'src/demo/java'
60
+
demoRelease.java.srcDir 'src/demo/java'
61
+
}
62
+
```
63
+
64
+
You can add your own product flavor. Make sure you choose the updated built variant or your product flavor when running or building the application.
0 commit comments