libreoffice-online/android
kaishu-sahu 0346ec81ab fix order of elements in 'AndroidManifest.xml' as per guidelines and icon of the android app wasn't reflecting in the launcher
Change-Id: I795f0d63fc352f990215691051fe83a8215c04a4
Reviewed-on: https://gerrit.libreoffice.org/67989
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-02-24 13:48:53 +01:00
..
app fix order of elements in 'AndroidManifest.xml' as per guidelines and icon of the android app wasn't reflecting in the launcher 2019-02-24 13:48:53 +01:00
.gitignore android: Settings for the build.gradle. 2019-02-15 16:53:35 +01:00
build.gradle android: Gradle project and other stuff to build. 2019-02-12 10:50:40 +01:00
gradle.properties android: We need more memory for the build. 2019-02-22 14:21:04 +01:00
gradlew android: Gradle project and other stuff to build. 2019-02-12 10:50:40 +01:00
gradlew.bat android: Gradle project and other stuff to build. 2019-02-12 10:50:40 +01:00
README android: Create the html, js and css and copy it to the right place. 2019-02-13 13:22:25 +01:00
settings.gradle android: Gradle project and other stuff to build. 2019-02-12 10:50:40 +01:00

* Compile LibreOffice master for Android

  Something like the following in autogen.input:

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

  And the usual ./autogen.sh && make

* Build the POCO for 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

* Configure the online.git

  ./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

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