libreoffice-online/android
Weblate 67845b541e update translations
LibreOffice Online/loleaflet-help (Slovak)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I562044d259c009e8abd36f88049c729a0f0ec7c2

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: Idcc2f7847022e454d6c591650e4f5512081392ef

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: Idec1e51f58d79c6b0578d2fae32e80b00ba2ae07

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I78a5669bd666992476fd358ae41f286890dc1ce2

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: If3fcc7b2b1b20216ebae70618d07e7191bd5ffe5

update translations

LibreOffice Online/android-lib (English (United Kingdom))
Currently translated at 100.0% (13 of 13 strings)

Change-Id: I7f481f2a26ee198591c3d9c93177f81dc477919a

update translations

LibreOffice Online/loleaflet-help (English (United Kingdom))
Currently translated at 100.0% (418 of 418 strings)

Change-Id: Id27b4a12f008df604aa7416248c55fae794688ac

update translations

LibreOffice Online/loleaflet-ui (English (United Kingdom))
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I66ecbdbb73c68dd92ff0add6d8afc78e01844739

update translations

LibreOffice Online/ios (Norwegian Nynorsk)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Id5fc7a3eefbeb0a4ed5dac880fcca2afe739f7e9

update translations

LibreOffice Online/loleaflet-help (Bulgarian)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I04f5b89159fa55aedf626fa85a1504677a2a63c6

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I0673467ff62d2091cb87b05c1ad87673d25e8347

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I5fe0cd68efbb9b3642864a596344081a3a118760

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: Ie525d58ef85e41dd7d40952980b5381411ade8a9

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 99.7% (417 of 418 strings)

Change-Id: Ib3d0243fe57bdea6f490a2d1413eb4af7e9f97e3

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 99.5% (416 of 418 strings)

Change-Id: Id5af3a2e7ea1bec07a78779c2888128be7e7218a

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 99.7% (346 of 347 strings)

Change-Id: I004263b83ac38f220ef602f079c35d9345620217

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I220b9e85a5276d68f50ae0d949c5457ea1c311a3

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I39919fbb4379e7479c3d45663195b01ba0a6ae0f

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I35ceafd7293b7f6589cb710ca59f45b90d526843

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 99.4% (345 of 347 strings)

Change-Id: I9996b3fc22d4d3e6629fbd561d44f23e49744d96

update translations

LibreOffice Online/loleaflet-help (Portuguese (Brazil))
Currently translated at 100.0% (418 of 418 strings)

Change-Id: I513d7d891f525fbb53f09013e083479c30d590f2

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (347 of 347 strings)

Change-Id: I378852679848d04be6c95e466af9c08dc60bb801

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (347 of 347 strings)

Change-Id: Ibfb7140f4d0121339243201f5e42e530ec209970

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: Iccf903f630a308f860b98ad0f639d67d634b692c
Translation: LibreOffice Online/ios
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/ios/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I4135888e93067fc88653d01fb153fdba8f15db23
Translation: LibreOffice Online/loleaflet-help
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-help/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I7c69924e16a99b936c65330494fdd19849d59cf8
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

LibreOffice Online/android-lib (Icelandic)
Currently translated at 100.0% (13 of 13 strings)

Change-Id: I85c7258825f96853ff131eab28710439c0294b27

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 100.0% (344 of 344 strings)

Change-Id: Ie39cf8107592b1907d7cd9acf423436989b27fe8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102374
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-09-16 20:05:15 +02:00
..
app update translations 2020-09-02 16:14:30 +02:00
gradle/wrapper android: add missing gradle-wrapper.jar 2020-04-20 21:47:26 +02:00
lib update translations 2020-09-16 20:05:15 +02:00
templates Very minimal empty ODF files for Android 2020-09-11 10:06:05 +02:00
.gitignore android: clean debug and release assets 2020-06-11 21:34:21 +02:00
build.gradle.in android: fix build when changing the build output directory 2020-08-12 13:10:02 +02:00
gradle.properties
gradlew
gradlew.bat
README android: Update the location of the .so files for debugging in the README. 2020-08-06 15:44:01 +02:00
settings.gradle

The development of this Android app has to be done on Linux, it's currently not possible to
build the native parts on Windows.

* Compile LibreOffice master for Android.

  Do this in the folder where you cloned the LibreOffice core (e.g master-android).

  Create an autogen.input file:

      --build=x86_64-unknown-linux-gnu
      --with-android-ndk=/home/$USER/Android/Sdk/ndk-bundle
      --with-android-sdk=/home/$USER/Android/Sdk
      --with-distro=LibreOfficeAndroid
      --enable-sal-log

  Run ./autogen.sh && make

* Build the POCO for Android

  # clone the poco repository in the same folder where LibreOffice core and online folders are placed.
  git clone https://github.com/pocoproject/poco poco-android
  cd poco-android

  # use the 1.10.1 branch
  git checkout -b poco-1.10.1 origin/poco-1.10.1

  # configure
  ./configure --config=Android --no-samples --no-tests --omit=Crypto,NetSSL_OpenSSL,Zip,Data,Data/SQLite,Data/ODBC,Data/MySQL,MongoDB,PDF,CppParser,PageCompiler,JWT

  # make it
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=armeabi-v7a CC=armv7a-linux-androideabi21-clang CXX=armv7a-linux-androideabi21-clang++ SYSLIBS=-static-libstdc++

  # install it to /opt/poco-android
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=armeabi-v7a CC=armv7a-linux-androideabi21-clang CXX=armv7a-linux-androideabi21-clang++ SYSLIBS=-static-libstdc++ install INSTALLDIR=/opt/poco-android

* 64bit POCO for Android

  # checkout the 1.10.1 in a different location and apply the following patch:
  --- a/build/config/Android
  +++ b/build/config/Android
  @@ -21,6 +21,11 @@ TOOL      = arm-linux-androideabi
   ARCHFLAGS = -march=armv7-a -mfloat-abi=softfp
   LINKFLAGS = -Wl,--fix-cortex-a8
   else
  +ifeq ($(ANDROID_ABI),arm64-v8a)
  +TOOL      = aarch64-linux-android
  +#ARCHFLAGS = -march=armv7-a -mfloat-abi=softfp
  +#LINKFLAGS = -Wl,--fix-cortex-a8
  +else
   ifeq ($(ANDROID_ABI),x86)
   TOOL      = i686-linux-android
   ARCHFLAGS = -march=i686 -msse3 -mstackrealign -mfpmath=sse
  @@ -29,6 +34,7 @@ $(error Invalid ABI specified in ANDROID_ABI)
   endif
   endif
   endif
  +endif

   #
   # Define Tools

  # configure as above:
  ./configure --config=Android --no-samples --no-tests --omit=Crypto,NetSSL_OpenSSL,Zip,Data,Data/SQLite,Data/ODBC,Data/MySQL,MongoDB,PDF,CppParser,PageCompiler,JWT

  # and make it:
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=arm64-v8a CC=aarch64-linux-android21-clang CXX=aarch64-linux-android21-clang++ SYSLIBS=-static-libstdc++

  # install
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=arm64-v8a CC=aarch64-linux-android21-clang CXX=aarch64-linux-android21-clang++ SYSLIBS=-static-libstdc++ install INSTALLDIR=/opt/poco-android-64bit

* Poco for x86 (if you want to add the support for that into the APK too):

  # checkout the 1.10.1 in yet another location
  git clone https://github.com/pocoproject/poco poco-android-x86
  cd poco-android-x86
  git checkout -b poco-1.10.1 origin/poco-1.10.1

  # configure
  ./configure --config=Android --no-samples --no-tests --omit=Crypto,NetSSL_OpenSSL,Zip,Data,Data/SQLite,Data/ODBC,Data/MySQL,MongoDB,PDF,CppParser,PageCompiler,JWT

  # build
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=x86 CC=i686-linux-android21-clang CXX=i686-linux-android21-clang++ SYSLIBS=-static-libstdc++

  # install
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=x86 CC=i686-linux-android21-clang CXX=i686-linux-android21-clang++ SYSLIBS=-static-libstdc++ install INSTALLDIR=/opt/poco-android-x86

* Poco for x86_64 (if you want to add the support for that into the APK too):

  # checkout the 1.10.1 in yet another location
  git clone https://github.com/pocoproject/poco poco-android-x86-64
  cd poco-android-x86-64
  git checkout -b poco-1.10.1 origin/poco-1.10.1

  # and apply the following patch:
  diff --git a/build/config/Android b/build/config/Android
  index 9227a3352..1abf6df7c 100644
  --- a/build/config/Android
  +++ b/build/config/Android
  @@ -25,10 +25,14 @@ ifeq ($(ANDROID_ABI),x86)
   TOOL      = i686-linux-android
   ARCHFLAGS = -march=i686 -msse3 -mstackrealign -mfpmath=sse
   else
  +ifeq ($(ANDROID_ABI),x86_64)
  +TOOL      = x86_64-linux-android
  +else
   $(error Invalid ABI specified in ANDROID_ABI)
   endif
   endif
   endif
  +endif
   
   #
   # Define Tools

  # configure
  ./configure --config=Android --no-samples --no-tests --omit=Crypto,NetSSL_OpenSSL,Zip,Data,Data/SQLite,Data/ODBC,Data/MySQL,MongoDB,PDF,CppParser,PageCompiler,JWT

  # build
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=x86_64 CC=x86_64-linux-android21-clang CXX=x86_64-linux-android21-clang++ SYSLIBS=-static-libstdc++

  # install
  PATH="$PATH":~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin make -j8 ANDROID_ABI=x86_64 CC=x86_64-linux-android21-clang CXX=x86_64-linux-android21-clang++ SYSLIBS=-static-libstdc++ install INSTALLDIR=/opt/poco-android-x86-64

* Configure the online.git (eg. in online-android folder)

  Don't forget to change --with-lo-builddir in the following:

  ./autogen.sh && ./configure CC=~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang CXX=~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ --host=arm-linux-androideabi --enable-androidapp --with-lo-builddir=/local/libreoffice/master-android --with-poco-includes=/opt/poco-android/include --with-poco-libs=/opt/poco-android/lib --disable-setcap --enable-silent-rules --enable-debug

* Build the JavaScript, HTML and CSS files also in the online-android folder

  # just run 'make'
  make

* Build the actual app

  + Start Android Studio
  + Open this 'android' subdir as a project
  + Build from Android Studio (Build -> Make Project)

Or

  + command line:  ./gradlew build

== Building 32bit + 64bit combined .apk ==

  + you need to build both a 32bit (armeabi-v7a) and 64bit (arm64-v8a) core
  + you need to build both a 32bit and 64bit POCO
  + and then provide paths to both to the ./configure, separated by a colon ':',
    like:

    --with-lo-builddir=/local/libreoffice/master-android-release:/local/libreoffice/master-android-release-64bit \
    --with-poco-includes=/opt/poco-android/include:/opt/poco-android-64bit/include \
    --with-poco-libs=/opt/poco-android/lib:/opt/poco-android-64bit/lib \

== Debugging ==

To debug the native code in Android Studio, you need the debugging symbols and
to setup lldb to actually read & use them.

* Add debugging symbols for the modules you are interested in

  To autogen.input, add something like:

    --enable-symbols="vcl/ desktop/ sal/ svx/ framework/ sfx2/ tools/ cppu/ cppuhelper/ filter/ comphelper/ Library_sw Library_swd Library_swui"

  clean the appropriate modules, like

    make vcl.clean desktop.clean sal.clean svx.clean framework.clean sfx2.clean tools.clean cppu.clean cppuhelper.clean filter.clean comphelper.clean sw.clean

  and rebuild using 'make'.

* Add android/obj/local/armeabi-v7a from core.git as a Symbol Directory

  In Android Studio, choose Run -> Debug... -> Edit Configurations...

  There go to the Android App -> app, choose the Debugger tab, and:

  Debug type: Auto (or Dual)

  Symbol Directories: here add the full path, like

    /local/libreoffice/master-android/android/obj/local/armeabi-v7a

  This path contains the non-stripped version of the liblo-native-code.so, and
  the debugger will read the symbols from that one (even if the APK contains
  the stripped version). *NB* ensure that this is before any internal source
  directories - since the internal source contains stripped native code.

  [Alternatively you can add the following to your ~/.lldbinit instead:

    settings set target.inline-breakpoint-strategy always
    settings append target.exec-search-paths /local/libreoffice/master-android/android/obj/local/armeabi-v7a
  ]

* To use pretty printers for types like OUString, add the following to your
  ~/.lldbinit:

  command script import '/local/libreoffice/master-android/solenv/lldb/libreoffice/LO.py'

From now on, you will be able to debug directly in the Android Studio
debugger.  Happy debugging!

Note: to re-build your app with a newly compiled libnative-lo code - it is

== Tip: How to speed up your core.git build ==

If you use icecream for parallel building, you can use it for
cross-compilation too.

  # first generate a tarball with the toolchain (once)
  icecc-create-env ~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang ~/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++

And add it and the paths to the compiler as the first things to the
autogen.input:

  CC=icecc [here copy what the output of ./autogen.sh without icecream said for C compiler]
  CXX=icecc [here copy what the output of ./autogen.sh without icecream said for C++ compiler]
  ICECC_VERSION=/path/to/the/tarball/generated/above/955ceb546ceb7a5715bf0223ddd788fe.tar.gz
  --with-parallelism=[amount of cpu threads in your icecream farm]
  --enable-icecream
  [...the original autogen.input...]

So the result will look something like this:

  CC=icecc /home/$USER/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 -gcc-toolchain /home/$USER/Android/Sdk/ndk-bundle/to>
  CXX=icecc /home/$USER/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 -gcc-toolchain /home/$USER/Android/Sdk/ndk-bundle>
  ICECC_VERSION=/local/libreoffice/android/955ceb546ceb7a5715bf0223ddd788fe.tar.gz
  --with-parallelism=25
  --enable-icecream
  --build=x86_64-unknown-linux-gnu
  --with-android-ndk=/home/$USER/Android/Sdk/ndk-bundle
  --with-android-sdk=/home/$USER/Android/Sdk
  --with-distro=LibreOfficeAndroid
  --enable-sal-log