126af3ac58
LibreOffice Online/android-app (Czech) Currently translated at 100.0% (99 of 99 strings) Change-Id: I4c01047f12d91b1bd5f4ae8f744aa116f99f8e57 update translations LibreOffice Online/android-lib (Czech) Currently translated at 100.0% (6 of 6 strings) Change-Id: I2669b3646c0efac7530444800cc1bb59bfa6e0fe update translations LibreOffice Online/android-app (Portuguese (Brazil)) Currently translated at 100.0% (99 of 99 strings) Change-Id: I1ec178ea146a08b4b17d92a51bd5b6c14da44d14 update translations LibreOffice Online/loleaflet-help (Portuguese (Brazil)) Currently translated at 98.8% (411 of 416 strings) Change-Id: Ida001f151b3c85dde2918db7bdc64b2f98df633b update translations LibreOffice Online/loleaflet-help (Portuguese (Brazil)) Currently translated at 98.8% (411 of 416 strings) Change-Id: I1bac72559b5ae3bb3e3f4e48c0a54d01a5a7a9bc update translations LibreOffice Online/loleaflet-help (Catalan) Currently translated at 56.2% (234 of 416 strings) Change-Id: I53abd4585c1325825dd1133937a21752e8628644 update translations LibreOffice Online/loleaflet-ui (Czech) Currently translated at 89.4% (252 of 282 strings) Change-Id: Id2cd31ccd8069e291dad1903fca517dbd20c087a update translations LibreOffice Online/loleaflet-ui (Catalan) Currently translated at 93.6% (264 of 282 strings) Change-Id: I497358c0e54f0d9f3f3a51c79337eba5bc635206 update translations LibreOffice Online/loleaflet-help (Spanish) Currently translated at 99.3% (413 of 416 strings) Change-Id: Ib0e2e2dee239c6fadd5684047d5210c9ef9ae14f Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Change-Id: Ida0d57604d7a6e22417f43b623bc2587764d0c96 Translation: LibreOffice Online/loleaflet-help Translate-URL: https://vm137.documentfoundation.org/projects/libo_online/loleaflet-help/ update translations LibreOffice Online/android-app (Dutch) Currently translated at 100.0% (98 of 98 strings) Change-Id: Ic6c397821e10a6690e7068ebea0509a58248d041 update translations LibreOffice Online/android-app (Portuguese) Currently translated at 58.2% (57 of 98 strings) Change-Id: I81f83f2625a116898c11e408caeecb2fb85c8b5d update translations LibreOffice Online/android-lib (Czech) Currently translated at 16.7% (1 of 6 strings) Change-Id: I7b1493d4a8f3ea771b984beca3d9a5d8341b04f0 update translations LibreOffice Online/android-lib (Dutch) Currently translated at 100.0% (6 of 6 strings) Change-Id: I45d23d73977e300c0b0ee6c6d889323186398933 update translations LibreOffice Online/android-lib (Portuguese) Currently translated at 100.0% (6 of 6 strings) Change-Id: I48682b3edb51e98a7f1e9e92a863385ff29e3483 update translations LibreOffice Online/android-lib (Catalan) Currently translated at 100.0% (6 of 6 strings) Change-Id: I6f689d13e94fedfeed5afcee610543182d35f88b update translations LibreOffice Online/android-app (Catalan) Currently translated at 92.9% (91 of 98 strings) Change-Id: Id757548de7239edadeb611c21ba664797b57c021 update translations LibreOffice Online/android-lib (Spanish) Currently translated at 100.0% (6 of 6 strings) Change-Id: I0b4353ac906a037425f2cc9fa0e3be4c966e467a update translations LibreOffice Online/android-app (Spanish) Currently translated at 100.0% (98 of 98 strings) Change-Id: I2811efc78217f5def537714420704cf67d61b061 update translations LibreOffice Online/loleaflet-help (Spanish) Currently translated at 99.0% (412 of 416 strings) Change-Id: Ia7b5a6888f96ea03f7c5ada6c5033f5bdb1bde8e update translations LibreOffice Online/loleaflet-ui (Portuguese (Brazil)) Currently translated at 100.0% (254 of 254 strings) Change-Id: I6c5d7f72d034578cadc9645249ec0e05bd860200 update translations LibreOffice Online/loleaflet-ui (Portuguese) Currently translated at 100.0% (254 of 254 strings) Change-Id: Ia49e5271bbfe67a0cec3398bf2216bbd680852c1 update translations LibreOffice Online/loleaflet-ui (Dutch) Currently translated at 100.0% (254 of 254 strings) Change-Id: If431df6f75eb5d26190083da9e0784d7d2f679c4 update translations LibreOffice Online/loleaflet-ui (Spanish) Currently translated at 99.3% (271 of 273 strings) Change-Id: Ic083bb1e169316801963080f808d22c54a04a85b update translations LibreOffice Online/loleaflet-ui (Asturian) Currently translated at 3.5% (9 of 254 strings) Change-Id: Ia5d1d69ee97c4f3cbe5872a8b0ece2e16410a319 Reviewed-on: https://gerrit.libreoffice.org/85285 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> |
||
---|---|---|
.. | ||
app | ||
lib | ||
templates | ||
.gitignore | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
Makefile.am | ||
README | ||
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) == 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