...
 
Commits (4)
......@@ -30,10 +30,28 @@ android {
exclude 'META-INF/LGPL2.1'
}
defaultConfig {
// read external file and set ressource values
// use like: -Dapp.asist.config.file=/path/to/file
if (System.getProperties().stringPropertyNames().contains("app.asist.config.file")) {
logger.lifecycle('Inject {} for server configuration', System.getProperty("app.asist.config.file"))
new File(System.getProperty("app.asist.config.file")).withReader { reader ->
def configurationProperties = new Properties()
configurationProperties.load(reader)
resValue "string", "rootUrl", configurationProperties['asistServer']
resValue "string", "imageRootPath", configurationProperties['imageRootPath']
resValue "string", "appHeaderValue", configurationProperties['appHeaderValue']
resValue "string", "olat_url", configurationProperties['olat_url']
resValue "string", "portfolio_login", configurationProperties['portfolio_login']
resValue "string", "portfolio_send", configurationProperties['portfolio_send']
resValue "string", "pictureProxyUrl", configurationProperties['pictureProxyUrl']
}
}
}
}
dependencies {
implementation project(path: ':OpenASiST4Android')
}
apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
apply plugin: 'com.google.gms.google-services'
......@@ -4,7 +4,5 @@
<string name="app_name">OpenASIST</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="asistServer">https://your-openasistserver.net</string>
<string name="imageRootPath">https://your-openasistserver.net</string>
</resources>