libreoffice-online/android
Weblate 3b9447dedf update translations
LibreOffice Online/android-app (Welsh)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I56d19eaaa4d3fd12a4afeb6723b52135ab703f26

update translations

LibreOffice Online/android-app (Hungarian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I43799c9be31c03ec6a512840f4fc9a97aeb6f7ae

update translations

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

Change-Id: I60a64e29101867ace68d2e8aa22e3828626ecbae

update translations

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

Change-Id: I6041cd7a735bb7cdea036b684044470f69ba82f6

update translations

LibreOffice Online/android-app (Ukrainian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Iea44d2dadcc265aefd8e8d5fe1f2ee33f84a569e

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 60.6% (252 of 416 strings)

Change-Id: I262795efbaa30be7ef288d8af7f9ba4dc0235b4c

update translations

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

Change-Id: Ie705e945482045597f1677cc54aa937601a79dc5

update translations

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

Change-Id: Ibdc258e2e23db38fe9766a0d07b1fcf8167ec6bf

update translations

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

Change-Id: Iafb77036828741f641182df60296dd37ac2f6907

update translations

LibreOffice Online/android-app (Czech)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I09df6904fb21373c6e92d294fcea8acf47231578

update translations

LibreOffice Online/android-app (Basque)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I621d8f94440445bff805a4a27600f3fb69e46d2c

update translations

LibreOffice Online/android-app (Indonesian)
Currently translated at 95.1% (97 of 102 strings)

Change-Id: I2f926525980e8c6f533672c2975ea126fe5b2b3b

update translations

LibreOffice Online/android-app (Polish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I31df5c7a51d1e8c05480d84f8fe025d6a8c125c4

update translations

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

Change-Id: I30268db36a3b94fd4c50d626e75566a685164714

update translations

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

Change-Id: Ic8f0ae07605d102d1602303741827db9bdc3926d

update translations

LibreOffice Online/android-app (Catalan)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I7b7b5c8f92a9151299123ea99a3be039ee39017c

update translations

LibreOffice Online/android-app (Spanish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ie63712564e077fe36b2362918f3ffeec503c4a6d

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 58.2% (242 of 416 strings)

Change-Id: I4d2e6c3af655e57ba48bdc04a9d722b4cdb26434

update translations

LibreOffice Online/loleaflet-help (Indonesian)
Currently translated at 53.8% (224 of 416 strings)

Change-Id: Ib328379d276919f08de868ba3d6b3c0bafee7cf6

update translations

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

Change-Id: I684be99f921bd9b310e1bfaa41c2ab64d98416a4

update translations

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

Change-Id: I4187617a323a63b120630c6a8294119186a9d176

update translations

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

Change-Id: Ibf104e855fad450112954dfabfdfd878ebafadb8

update translations

LibreOffice Online/android-app (Lower Sorbian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ic4bbb2134810f2a3c4ac8f95ad79fa76152e2259

update translations

LibreOffice Online/android-app (French)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I27463897e79f33828039268aeabc77b8623ddf7d

update translations

LibreOffice Online/android-app (Upper Sorbian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I4d9164df894067f70d63fa9c625a1a4e50528597

update translations

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

Change-Id: I4b52e39ed42cbeb8629ef0440b4dccb50b265b8e

update translations

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

Change-Id: Ic95ebba8c252d75838e9c469357f27de83ccae33

update translations

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

Change-Id: Ibf70bf072835568baf8b89755d4135296bf0c624

update translations

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

Change-Id: I82d4a1825e92887684a7c2694f830cc17d1f006e

update translations

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

Change-Id: I6a29c7d4c9eef8e36e80e39b87d60b9523bd1470

update translations

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

Change-Id: I1133caa7cc6cd226a99d6d10443ecee5ffb7e524

update translations

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

Change-Id: I96590a23426dc7d80c7ec0ebb80fe177ea871ca2

update translations

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

Change-Id: Iab0bbd8a14b114942c62b95e1cffbd3d0b6dfaef

update translations

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

Change-Id: Ib4898fce7925346e69ce62ae2c209ce208cf3a0c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91190
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-01 07:16:27 +02:00
..
app update translations 2020-04-01 07:16:27 +02:00
lib update translations 2020-04-01 07:16:27 +02: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 android: Update to a newer gradle. 2019-05-21 11:30:56 +02:00
gradle.properties android: We need more memory for the build. 2019-02-22 14:21:04 +01:00
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