mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-30 23:24:42 +00:00 
			
		
		
		
	Add Android application download links
This commit is contained in:
		| @@ -23,6 +23,10 @@ storage-path: /home/pierre/Documents/projets_web/comunic/current/user_data/ | ||||
| # URL where Comunic Terms of use are available | ||||
| terms-url: http://devweb.local/comunic/current/about.php?cgu | ||||
|  | ||||
| # Android application download URL | ||||
| play-store-url: https://play.google.com/store/apps/details?id=org.communiquons.comunic | ||||
| android-direct-download-url: https://files.communiquons.org/comunic/mobile/latest-android.php | ||||
|  | ||||
| # Print more information to the console | ||||
| verbose-mode: true | ||||
|  | ||||
|   | ||||
| @@ -32,6 +32,8 @@ struct DataConservationPolicy { | ||||
| pub struct ServerConfig { | ||||
|     min_supported_mobile_version: &'static str, | ||||
|     terms_url: String, | ||||
|     play_store_url: String, | ||||
|     android_direct_download_url: String, | ||||
|     password_policy: PasswordPolicy, | ||||
|     data_conservation_policy: DataConservationPolicy, | ||||
| } | ||||
| @@ -41,6 +43,8 @@ impl ServerConfig { | ||||
|         ServerConfig { | ||||
|             min_supported_mobile_version: MIN_SUPPORTED_MOBILE_VERSION, | ||||
|             terms_url: conf().terms_url.clone(), | ||||
|             play_store_url: conf().play_store_url.clone(), | ||||
|             android_direct_download_url: conf().android_direct_download_url.clone(), | ||||
|             password_policy: PasswordPolicy { | ||||
|                 allow_email_in_password: password_policy::ALLOW_EMAIL_IN_PASSWORD, | ||||
|                 allow_name_in_password: password_policy::ALLOW_NAME_IN_PASSWORD, | ||||
|   | ||||
| @@ -31,6 +31,8 @@ pub struct Config { | ||||
|     pub storage_url: String, | ||||
|     pub storage_path: String, | ||||
|     pub terms_url: String, | ||||
|     pub play_store_url: String, | ||||
|     pub android_direct_download_url: String, | ||||
|     pub proxy: Option<String>, | ||||
|     pub force_https: bool, | ||||
|     pub verbose_mode: bool, | ||||
| @@ -104,6 +106,9 @@ impl Config { | ||||
|  | ||||
|             terms_url: Config::yaml_str(parsed, "terms-url"), | ||||
|  | ||||
|             play_store_url: Config::yaml_str(parsed, "play-store-url"), | ||||
|             android_direct_download_url: Config::yaml_str(parsed, "android-direct-download-url"), | ||||
|  | ||||
|             proxy: match proxy.as_ref() { | ||||
|                 "none" => None, | ||||
|                 s => Some(s.to_string()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user