android hunspell: Hardcode the ReferenceOOoMajorMinor for version check.

From some reason it fails to be read from the versionrc; and I'm not
really eager to debug why...

Without this, only the dictionaries that do not mention the
OpenOffice.org-minimal-version are registered; which would be just 2 of
them.

Change-Id: I9fe0bc138eadbdcbe5e0d8231e7e90ef268163bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88219
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88366
Tested-by: Jenkins
This commit is contained in:
Jan Holesovsky 2020-02-07 15:43:50 +01:00
parent 99e143cb77
commit cc0759f1e2

View file

@ -59,10 +59,15 @@ OUString getLibreOfficeMajorMinorMicro() {
}
OUString getReferenceOpenOfficeOrgMajorMinor() {
#ifdef ANDROID
// just hardcode the version
OUString v("4.1");
#else
OUString v(
"${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("version")
":Version:ReferenceOOoMajorMinor}");
rtl::Bootstrap::expandMacros(v); //TODO: check for failure
#endif
return v;
}