libreoffice-online/android
Weblate 9c2f6382d2 update translations
LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 81.2% (338 of 416 strings)

Change-Id: I8b49030c370d554db036a0e186d6332a9263d0d0

update translations

LibreOffice Online/android-lib (Slovenian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I70effac3f9908b12815c430931a2292bf5dbed5b

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ie1fd88e1eae85134679f9f7285ab3c1420bf15ad

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 83.9% (349 of 416 strings)

Change-Id: I53b08543ba97e157fc0e505bd98d69e1c70237a7

update translations

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

Change-Id: Ib6cedbdedcbf1c14204aae5c6a26964b99a09867

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I41024ff5c600da3f26471c00a5c06c0380b6c1ec

update translations

LibreOffice Online/android-lib (Turkish)
Currently translated at 83.3% (10 of 12 strings)

Change-Id: Ibc0f532df8170198be67b2699a8b3c265bffde23

update translations

LibreOffice Online/android-app (Turkish)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I3ea29557fe41bc46faa7313875c095e5e45185fe

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 99.7% (289 of 290 strings)

Change-Id: Idbe17cd7b879bd1333a6fa5554309a5a437d82a8

update translations

LibreOffice Online/android-app (Italian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I39c6d1dca5c9acfb51ad46dea4fa549b38b9a220

update translations

LibreOffice Online/android-lib (Italian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I715122ed869741ae66f65efc8425b76fb024e0a8

update translations

LibreOffice Online/loleaflet-help (Italian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ide96c3d2ff684e67d1121c2d9bd3268353366f54

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: Iab76b9dfc1a8835fe8fb226e4003d73b5057782c

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 64.7% (269 of 416 strings)

Change-Id: I121156a5f5e9832237aa4eb7ed3bd88af3d2b14c

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I39c7a2d9bbc0dc4f3fa95e406561f9b313ec9e03

update translations

LibreOffice Online/android-app (Hebrew)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ib11902d876161296d1694b0e456c302355523424

update translations

LibreOffice Online/android-lib (Bulgarian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I9229d448dc8832226981faba1ccbc7a821edc396

update translations

LibreOffice Online/android-app (German)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I9596247c4d194c758759f2e9183626e4e569f548

update translations

LibreOffice Online/android-lib (German)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I76299ef7b35754ae2ca9e7975950ad5b4ecf0424

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I7500a2968f0b2d5a108058df434632a4543e476c

update translations

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

Change-Id: I80d34bc21e0b40f4e01d4458be57064cd7ae0013

update translations

LibreOffice Online/android-app (Swedish)
Currently translated at 14.0% (14 of 100 strings)

Change-Id: I4705a3cd09a3de1b7ee4d183980b6f1fe85f4d3f

update translations

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

Change-Id: Ice3d527ec2672769988ba26f55d20e29d5ace51f

update translations

LibreOffice Online/android-lib (Hebrew)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Id9f4b645ce296ec177d5653397b8135f532b44e2

update translations

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

Change-Id: I954a911766bc78bd2501bcdf1dde405ed5ea20c7

update translations

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

Change-Id: I71e722ad3cd5d6602b069ef71329860c4cd8d6b9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90866
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 12:00:37 +01:00
..
app update translations 2020-03-26 12:00:37 +01:00
lib update translations 2020-03-26 12:00:37 +01:00
templates Try to delete language information from templates... 2020-03-14 22:29:17 +01:00
.gitignore android: Split the actual editing Activity into an own library. 2019-07-12 11:52:56 +02:00
build.gradle
gradle.properties
gradlew
gradlew.bat
Makefile.am Install a Kit config that disables complex text options. 2020-02-18 12:08:19 +01:00
README android: Implement (optional) support for both 32bit and 64bit build. 2019-12-30 14:24:30 +01:00
settings.gradle android: Split the actual editing Activity into an own library. 2019-07-12 11:52:56 +02:00

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.9.1 branch
  git checkout -b poco-1.9.1 origin/poco-1.9.1

  # configure
  ./configure --config=Android --no-samples --no-tests --minimal

  # 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.9.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 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

* 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)

== 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/source/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/source/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/source/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-buld 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