Commit graph

338 commits

Author SHA1 Message Date
Caolán McNamara
654cb1ae05 add DeltaSimd to android/iOS
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Icad55a047ea505d81e50ae634e38d8301fb3b21e
2023-09-25 16:55:04 +01:00
Caolán McNamara
ff2bd955c8 add Simd.[c|h]pp to ios build
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I03971f023ba3bb7c51872fd4179da8b5fb8128a1
2023-09-25 16:55:04 +01:00
Andras Timar
938b8e318b Bump iOS version to 23.05.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic77f62cd723dc3d03d7f95e8a7d6f9676646d980
2023-09-12 08:46:25 +02:00
Patrick Luby
805d0cec13 Handle special "direct-" formats
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I73c2de73d60a444b6cdf3817d3e90e245f239075
2023-09-12 00:49:18 +02:00
Patrick Luby
e7bd50c967 Fix minor iOS build and runtime problems
This patch contains changes to iOS and/or Android code only.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Ia1461b0b3ca374b682494a7e2e900b832c85ea9d
2023-09-12 00:49:18 +02:00
Andras Timar
85ee03f98f CollaboraOnline#6546 enable automatic color in default paragraph style
use the xml token "use-window-font-color" to toggle auto color on.

https: //github.com/CollaboraOnline/online/issues/6546
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib14b144ce6f593114a8130f5816f479d5cd4fe85
2023-08-10 12:22:26 +02:00
Aron Budea
bfdac84db2 Bump version to 23.05.2.1
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I5716d9d6556f45185b7b78fa05277403855d0353
2023-07-20 13:32:00 +02:00
Andras Timar
d0149b1426 Bump version to 23.05.1.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I39740fe9b1c30c0a56056435d58eabd3121698bf
2023-06-23 18:55:31 +02:00
Patrick Luby
12213d7ec5 Fix iOS build breakages by adding http::Request to iOS build
Still needed to add a bunch of #if !MOBILAPP to disable all of the
Online server's unit testing classes so that the iOS app won't crash
when opening a document.

TODO: the iOS app will not accept text input at all. Is some code
unexpectedly consuming message data sent over the mobile fake socket?

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Ie874ee8e452188a7b4cdf6d5f87708e5ed9b0235
2023-06-15 19:01:42 +01:00
Patrick Luby
094183e279 Fix issue #5876 by closing the document if the content process dies
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I6fc887dd30328395d424a6371ba3603d2c09b607
2023-05-16 09:43:29 +02:00
Patrick Luby
48ddd7c589 Related to issue #5876: don't autorelease large NSStrings
The +[NSString string...] selectors won't be released until
an enclosing autorelease pool is released. But since we use
ARC, we don't know where the compiler has inserted the
autorelease pool so JS messages may not be released until
after a very long time potentially causing an out of memory
crash. So, use the -[[NSString alloc] init...] selectors
instead.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Iff0be8ee5b322347e746dc030948b82d117c43a1
2023-05-16 09:43:29 +02:00
Patrick Luby
aad344f8a5 Suppress or fix all iOS compiler warnings without changing any code
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I3a7693ad1d4a7b4873e462a26a9628454884c8c2
2023-05-16 09:43:29 +02:00
Patrick Luby
94469d7b61 Replace deprecated calls
Also, don't set webView.configuration.userContentController to nil as it
generates a "nil not allowed" compiler warning.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Ibb49228a65f102fa6d97d4e5affafae8ad528c0d
2023-05-16 09:43:29 +02:00
Patrick Luby
0ffa5dc7c1 Reserve the maxiumum possible length after encoding
This avoids an excessive number of reallocations. This is overkill
for non-binary messages, but most non-binary messages appear to be
under 1K bytes in length. In contrast, it appears that binary
messags routinely use at least 75% of the maximum possible length.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I522fe74bc355a78b6b561ec9475a1afb27cf54b2
2023-05-16 09:43:29 +02:00
Patrick Luby
9b2a3d8cc7 Related to issue #5876: reduce excessive copying of message data
Many .png tile messages are very large so avoid using
-[NSString stringByAppendingString:] calls to create the JavaScript
string.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I8163ef93da315122f938c9ed2b66b49a443f283f
2023-05-16 09:43:29 +02:00
Patrick Luby
59de67f0f6 Fix assert failure when running "My Mac (Designed for iPad)" in Xcode
LANG values such as en_US.UTF-8 trigger an assert in the LibreOffice
code so replace all "_" characters with "-" characters.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Icba29a8e647eaf0887cc801d4b8763ffd821ffbf
2023-05-16 09:43:29 +02:00
Gökay Şatır
9d6296e4b3 Remove unused document signing code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I30cf381d1fa282cf222ab5abc676374ab7eefb6c
2023-05-08 21:51:47 +03:00
Weblate
f9c12c81b1 Added translation using Weblate (Odia)
Added translation using Weblate (Odia)

Added translation using Weblate (Odia)

Added translation using Weblate (Odia)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib4650906b5ec4b8e707a74f6437c6fa542210f5c
2023-04-21 12:26:49 +02:00
Ram
809dbc5eb3 Translated using Weblate (Malayalam)
Currently translated at 41.8% (46 of 110 strings)

Translated using Weblate (Malayalam)

Currently translated at 40.0% (2 of 5 strings)

Translated using Weblate (Malayalam)

Currently translated at 50.0% (11 of 22 strings)

Co-authored-by: Ram <airavatam@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ml/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ml/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ml/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1eeefe755010bbccb6f70f766883d6206cb09e99
2023-04-17 19:34:40 +02:00
Hamid Mir-Mostafa
e031b1da43 Translated using Weblate (Persian)
Currently translated at 13.6% (3 of 22 strings)

Translated using Weblate (Persian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Persian)

Currently translated at 10.9% (12 of 110 strings)

Co-authored-by: Hamid Mir-Mostafa <hamidmirmostafa.personal@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/fa/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/fa/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/fa/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4e53a2a35d2c34d03aa1672817cdca21e2a83d4e
2023-04-17 19:34:40 +02:00
Patrick Luby
595076bac9 Move labels and images a little to the right in the "create document" view
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ida0eae13f6b68058a4875a589de7bcbc4b3ab079
2023-03-21 20:56:32 +01:00
Patrick Luby
a2e8d41898 Fix issue #1962 Use UINavigationController to add a cancel button
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I212cc1c57783731be7cafbcc7efbf926be6b7b1b
2023-03-21 20:56:32 +01:00
Patrick Luby
41bf536169 Partial fix for issue #1962 Dismiss view by tapping outside of the view
Setting modalInPresentation to YES will ignore all events outside of
the view so set self.modalInPresentation to NO.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I5e886079edec6f7e37676be29bfaa3061e8eb4ae
2023-03-21 20:56:32 +01:00
Patrick Luby
7dd1e505e6 Fix issue #5841 welcome, feedback, and buy product URLs are empty on mobile
Mobile apps don't substitute these values so set them to zero length
strings.

Also, the iOS app sets the base text direction via the "dir" parameter
so add handling of that parameter in cool.html. TODO: check if the
Android and GTK apps need to implement the "dir" parameter to handle
RTL layout.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ied8268ec256011281961ef610d53baeee0efe9cd
2023-03-15 09:29:56 +01:00
Patrick Luby
54ad0f173b Another fix for issue #5843
Limit escaping of non-ASCII text and splitting on the first newline to
only certain message types on iOS.

Also, fix mangled UTF-8 text on iOS in jsdialogs when using languages
like Greek and Japanese by only setting the image bytes for only the
same set of message types.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I9cd088509ba9724108da3c9457cd3d098b45723f
2023-03-14 21:55:12 +01:00
Patrick Luby
650438283e Fix issue #5843 escape non-ASCII characters only for image data
Passing non-ASCII, UTF-8 text from native to JavaScript works
fine, but images become corrupted if any non-ASCII bytes are
not escaped.

The Socket._extractTextImg() JavaScript function assumes that,
in the iOS app, the first newline separates text from image data
so assume all bytes after the first new line are image data.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I06f4377bb3b7002a76041a198076decfee9e3733
2023-03-06 18:01:39 +01:00
Patrick Luby
8d15281d35 Partial fix #5885 Close the font picker when a font is tapped
This is a near duplicate of pull request #5898

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ib05a285f3642ec0ca745b0c74157190fda5bd3ed
2023-03-06 18:01:39 +01:00
Patrick Luby
1790073298 Remove pre-23.05 release notes
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
2023-03-06 18:01:39 +01:00
Patrick Luby
23d449b978 Remove template list URL from application settings
Copy pull request #5890 but completely remove the old code in the master
branch

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I69d03bb3f10e756823ba2e32aae0c099c54928c5
2023-03-06 18:01:07 +01:00
Weblate
6406cfc122 Added translation using Weblate (Persian)
Added translation using Weblate (Persian)

Added translation using Weblate (Persian)

Added translation using Weblate (Persian)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I69ea7181f2ae9c640262866d436722bf3bc27810
2023-03-06 13:17:28 +01:00
Patrick Luby
656f93acdf Add list of bugs fixed in the last TestFlight build and reorganize text
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: If745359b758ed4d5db25b0811bdcf10adacf424c
2023-02-20 21:33:46 +01:00
Patrick Luby
6e36981ad0 Add App Store "Test Details" text
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I3ac19f5891bc9219aad267b5189f7d7b01567731
2023-02-20 21:33:46 +01:00
Patrick Luby
681255152d Set log level to "trace" when running within Xcode
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I195817990c92e48cdeceb713ee27f0f162785d94
2023-02-20 21:33:46 +01:00
Patrick Luby
24a74c7165 Bump version to 23.05.0
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ib3ae781ec258583c9312459b59ce6aeecb005f47
2023-02-20 21:33:13 +01:00
Patrick Luby
3bd8dd063f Modify the Info.plist to ensure that CFBundleVersion is always incremented
AppStoreConnect requires each upload, whether it is released or not, to be
higher than the previous successful upload's CFBundleVersion. So this
script sets the CFBundleVersion to the first and second components of
CFBundleShortVersionString and the UTC timestamp of when this script was
run is appended as the third component (or the second component if there
isn't a second component in CFBundleShortVersionString).

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I90a667ed5634dc347eaff2fc0d8e83c3ea005d54
2023-02-20 21:32:10 +01:00
Patrick Luby
8cff1597fe Simplify iOS application test builds in Xcode
Replace leading "../" in absolute paths with "$(SOURCE_ROOT)/../" to avoid
the need to manually edit paths in the Xcode project file.

Also, all group files that have their group set to "path relative to group"
so replace all absolute paths in group files with the appropriate number
of leading "../" and replace "ios-device" in paths with "lobuilddir-symlink".

Lastly, verify that every file listed in the Xcode sidebar exists. A couple
dozen files in the core group have been moved or deleted in LibreOffice so
those were removed.

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I09ef66273b049e75066e0a5b2589c80c93db0a77
2023-02-20 21:32:10 +01:00
Weblate
406251e4c0 Added translation using Weblate (Belarusian (latin))
Added translation using Weblate (Belarusian (latin))

Added translation using Weblate (Belarusian (latin))

Added translation using Weblate (Belarusian (latin))

Added translation using Weblate (Belarusian (latin))

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I89ef368a3db30a20d21494771ec00bcd97f7f419
2023-02-13 10:51:37 +01:00
Andras Timar
a077c4288b Put all Zotero logic to browser
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib1b071b96322511b7f319ff6b851e902b3556fbb
2022-12-12 13:35:29 +01:00
Pranam Lashkari
2cfae369af initial zotero skeleton
add zotero UI only if user is logged in
when zotero citation edit button is clicked,
fetch the library with zotero API.
Let user select what to insert

at this stage its not a complete solution but just first stage

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id67d8409bcd6416994713acd9ace495b24823fb0
2022-11-30 20:37:48 +01:00
Tor Lillqvist
be4dc66e00 Add a cross-referencing comment
Signed-off-by: Tor Lillqvist <tml@iki.fi>
2022-11-08 14:42:51 +02:00
Tor Lillqvist
3fe40c13d0 Bump CFBundleShortVersionString to match configure.ac
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I76e35aad4115ad4dd7ddcd60b579d16ee3aa58d2
2022-11-03 16:41:12 +02:00
Andras Timar
8561b98791 Fix build with libzstd on iOS
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idb94f5d359593e6098b7386ce0a9d33126d8ec2d
2022-11-02 12:09:53 +01:00
Tor Lillqvist
c6bd7f6818 Bump IPHONEOS_DEPLOYMENT_TARGET to match core:co-22.05
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I15ba4ac4ccf56a1dbdfd0e7434d883625154c46c
2022-10-26 13:55:40 +02:00
이정희
7b952487f4 Translated using Weblate (Korean)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Korean)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: 이정희 <daemul72@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ko/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ko/
Translation: Collabora Online/Android app
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I684e28d1b6257762ce4fe35a103226dfbea5032b
2022-10-18 21:57:44 +02:00
Besnik Bleta
d27f23b3a5 Translated using Weblate (Albanian)
Currently translated at 7.4% (34 of 459 strings)

Translated using Weblate (Albanian)

Currently translated at 14.6% (67 of 457 strings)

Translated using Weblate (Albanian)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I455691b982eedd8c88685d788e869d83d2bf05d6
2022-10-07 17:05:55 +02:00
Yunusemre Şentürk
796925d5d7 ios: Rule out LIBO_VERSION checking on master
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Change-Id: I28cdba1b82d391cf4d847c6e2e40f8e08d928519
2022-09-08 09:30:24 +03:00
Miklos Vajna
616e9200d1 ios: register our script message handler as 'lok', not 'cool'
core.git supports both since commit
4063dcdc7305177b167bd20b009b1dfede8b25ec (Revert naming back to lool to
fix break with LibreOffice Online, 2022-08-26), let's go with the API
name, not with the product name.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I204c4728628579edeb23d5ba76af4bb878130203
2022-09-06 20:30:25 +03:00
Andras Timar
a149398e97 Bump version to 22.05.5.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9813fc25355b766c82fc5723b906828bd98fe404
2022-08-01 09:03:28 +02:00
Tor Lillqvist
2b84a35fe8 Also binary data is now pased through send2JS
We store each byte as one character, i.e. UTF-16 unit, in the string.
Yes, this is inefficient.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I75cc211d7a8da98a4e0e5b5b3d000e7ed66c271e
2022-07-18 16:57:10 +01:00
Tor Lillqvist
3ad41e69f7 ENABLE_WELCOME_MESSAGE should now be 0 for iOS, not "false"
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I3d8e38aac0ed7bd783cc0d8c79b2d4d08fa478a1
2022-07-14 12:58:35 +03:00