gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated: Add Free Software only instructions


From: gnunet
Subject: [taler-docs] branch master updated: Add Free Software only instructions for building Android apps
Date: Mon, 09 Mar 2020 21:13:30 +0100

This is an automated email from the git hooks/post-receive script.

torsten-grote pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new 77aaf59  Add Free Software only instructions for building Android apps
77aaf59 is described below

commit 77aaf5988bed401da965802cf7c1787d46b246c4
Author: Torsten Grote <address@hidden>
AuthorDate: Mon Mar 9 17:13:09 2020 -0300

    Add Free Software only instructions for building Android apps
---
 developers-manual.rst           | 72 ++++++++++++++++++++++++++++++++++++++++-
 taler-merchant-pos-terminal.rst |  4 +++
 2 files changed, 75 insertions(+), 1 deletion(-)

diff --git a/developers-manual.rst b/developers-manual.rst
index 6e39082..7d1f6ab 100644
--- a/developers-manual.rst
+++ b/developers-manual.rst
@@ -594,8 +594,11 @@ for that.
 There is also the possibility to trigger builds manually, but this is
 only reserved to "admin" users.
 
+Android Apps
+============
+
 Android App Nightly Builds
-==========================
+--------------------------
 
 There are currently three Android apps:
 
@@ -632,6 +635,73 @@ by clicking the following link (on the phone that has 
F-Droid installed).
     and thus are meant **only for testing purposes**.
     Use at your own risk!
 
+.. _Build-apps-from-source:
+
+Building apps from source
+-------------------------
+
+Note that this guide is different from other guides for building Android apps,
+because it does not require you to run non-free software.
+It uses the Merchant PoS Terminal as an example, but works as well for the 
other apps.
+
+First, ensure that you have the required dependencies installed:
+
+* Java Development Kit 8 or higher (default-jdk-headless)
+* git
+* unzip
+
+Then you can get the app's source code using git:
+
+.. code-block:: shell
+
+  # Start by cloning the git repository
+  git clone https://git.taler.net/merchant-terminal-android.git
+
+  # Change into the directory of the cloned app
+  cd merchant-terminal-android
+
+  # Find out which Android SDK version you will need
+  grep -i compileSdkVersion app/build.gradle
+
+The last command will return something like ``compileSdkVersion 29``.
+So visit the `Android Rebuilds <http://android-rebuilds.beuc.net/>`_ project
+and look for that version of the Android SDK there.
+If the SDK version is not yet available as a free rebuild,
+you can try to lower the ``compileSdkVersion`` in the app's 
``app/build.gradle`` file.
+Note that this might break things
+or require you to also lower other versions such as ``targetSdkVersion``.
+
+In our example, the version is ``29`` which is available,
+so download the "SDK Platform" package of "Android 10.0.0 (API 29)"
+and unpack it:
+
+.. code-block:: shell
+
+  # Change into the directory that contains your downloaded SDK
+  cd $HOME
+
+  # Unpack/extract the Android SDK
+  unzip android-sdk_eng.10.0.0_r14_linux-x86.zip
+
+  # Tell the build system where to find the SDK
+  export ANDROID_SDK_ROOT="$HOME/android-sdk_eng.10.0.0_r14_linux-x86"
+
+  # Change into the directory of the cloned app
+  cd merchant-terminal-android
+
+  # Build the app
+  ./gradlew assembleRelease
+
+If you get an error message complaining about build-tools
+
+    > Failed to install the following Android SDK packages as some licences 
have not been accepted.
+         build-tools;29.0.3 Android SDK Build-Tools 29.0.3
+
+you can try changing the ``buildToolsVersion`` in the app's 
``app/build.gradle`` file
+to the latest "Android SDK build tools" version supported by the Android 
Rebuilds project.
+
+After the build finished successfully, you find your APK in 
``app/build/outputs/apk/release/``.
+
 .. _Code-coverage:
 
 Code Coverage
diff --git a/taler-merchant-pos-terminal.rst b/taler-merchant-pos-terminal.rst
index ea27fe8..27860cf 100644
--- a/taler-merchant-pos-terminal.rst
+++ b/taler-merchant-pos-terminal.rst
@@ -92,6 +92,10 @@ Import in and build with Android Studio or run on the 
command line:
   $ cd merchant-terminal-android
   $ ./gradlew assembleRelease
 
+If you do not have the proprietary Android SDK installed,
+see the :doc:`developers-manual`
+for :ref:`build instructions using free SDK rebuilds <Build-apps-from-source>`.
+
 APIs and Data Formats
 =====================
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]