libreoffice-online/android
Weblate bc29fe3290 update translations
LibreOffice Online/ios (Portuguese (Brazil))
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I62d7492d5f9d867bb5e7b3e0092606a2bc8f0e88

update translations

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

Change-Id: Ic03d72abd2e6aa70330ab2494df033ff43ffcc6a

update translations

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

Change-Id: I96f62c4c4a90970614f9f456db9ac965ac192236

update translations

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

Change-Id: I31de8ed41b0709e640f682bb4a97b33ffe4914bd

update translations

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

Change-Id: Id766ebd459eec65d27b55931a27ad912fa29f39b

update translations

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

Change-Id: Iac81fb01e9168d77679672089df1373ec09db6c4

update translations

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

Change-Id: I8d247c6f64ac666dfcb31bc7f489d4350dbcf738

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: Idb6b1798d10761adec99024fd81f50981e1ad161

update translations

LibreOffice Online/loleaflet-ui (Greek)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: I5c222a29cf698ecd54cadb771eb0d8505238a1d4

update translations

LibreOffice Online/ios (Finnish)
Currently translated at 40.0% (2 of 5 strings)

Change-Id: I5d28721c19fcbd6cf6d8137bb0cdd523960eb8be

update translations

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

Change-Id: I74bb40f34b886c65ba4b0d1e4249314d40da87de

update translations

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

Change-Id: I1721bfce5df7bfc3aabd51bcb930e3338233c759

update translations

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

Change-Id: I64ad62ebebf9882a9720f8b87a898f2af0414f53

update translations

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

Change-Id: I521cc41cd2fabff5fb981cf8771d29649b132a05

update translations

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

Change-Id: I55a557c2d150d0efde4146a42de42f4aee110f4c

update translations

LibreOffice Online/loleaflet-help (Welsh)
Currently translated at 55.3% (230 of 416 strings)

Change-Id: I48c894e595c50014fb485c2873cb21c88f7e76d1

update translations

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

Change-Id: I643b628ce55ec3a6af6629ca05af13cad5ddc975

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: I0613c9c422c23de5cdd92415581e64bc88e57b1d

update translations

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

Change-Id: I70fe4e83e7dfac8d7860b53893fa14a3e4131a1f

update translations

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

Change-Id: I6ed3a9c25e8f5f87fea96dff65ee62369ca734e9

update translations

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

Change-Id: Idaa4b73356aaa4d2c0e0294dfbe054a4137cbd71

update translations

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

Change-Id: If7255fc6e58e4f08a060f08f5f567e932d5935d2

update translations

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

Change-Id: If1e1d91cf95e8e5fb4c5132ced5d7ae67c9a3c5c

update translations

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

Change-Id: I7a1337316e3bc85f077b900731d6f53adfb703ec

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 99.7% (291 of 292 strings)

Change-Id: I0d23279ace83554307900fa36844415bdb024ca0

Update translation files

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

Change-Id: Iba298c0bbadea66690c15bbfa1b49b38c0e9cb6d
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: I05e4ec2e11be5dfbd3313d7e3e09d6537fd1a12a
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/

update translations

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

Change-Id: I12ec751df10eacd194883f03bfdceab8ce57ff41

update translations

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

Change-Id: I23c75ac7fd1df29d267c7f985614dd1cb0eda0c2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91642
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2020-04-03 16:04:07 +02:00
..
app update translations 2020-04-03 16:04:07 +02:00
lib update translations 2020-04-03 16:04:07 +02:00
templates Try to delete language information from templates... 2020-03-14 22:29:17 +01:00
.gitignore
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

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