diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2017-11-22 23:08:06 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2018-01-18 14:44:25 +0100 |
commit | 4082a18406c18af7b4fcef7bd501c3679c3be56b (patch) | |
tree | 761952db6eea1fc3fab672a8d739562eaf1fb031 /android | |
parent | 0e8d0fe001ceecea95ad7115b835527e13252a17 (diff) |
android: use unified headers and llvm-c++ STL (x86) with NDK 16
gnustl (and others) are to be removed in future versions of the ndk
also bump gradle and build-tools to current versions along with it
arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix
that later
Change-Id: Ic794c3293b599b77ec48096bf3283a99c09cbb79
Reviewed-on: https://gerrit.libreoffice.org/45163
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/Bootstrap/Makefile.shared | 2 | ||||
-rw-r--r-- | android/source/build.gradle | 25 | ||||
-rw-r--r-- | android/source/gradle.properties | 2 | ||||
-rw-r--r-- | android/source/gradle/wrapper/gradle-wrapper.properties | 4 | ||||
-rw-r--r-- | android/source/jni/Android.mk | 8 |
5 files changed, 19 insertions, 22 deletions
diff --git a/android/Bootstrap/Makefile.shared b/android/Bootstrap/Makefile.shared index 332192918e9c..0c9944efff0f 100644 --- a/android/Bootstrap/Makefile.shared +++ b/android/Bootstrap/Makefile.shared @@ -60,7 +60,7 @@ WHOLELIBS = \ $(OBJLOCAL)/liblo-native-code.so : native-code.cxx $(ALL_STATIC_LIBS) @echo "Linking $@" mkdir -p $(OBJLOCAL) - $(CXX) -Wl,--build-id=sha1 -Wl,--gc-sections -Wl,--version-script=../Bootstrap/version.map -Wl,--no-keep-files-mapped -Wl,--no-undefined -DANDROID -DDISABLE_DYNLOADING -shared -o $(OBJLOCAL)/liblo-native-code.so -I$(BUILDDIR)/config_host -I$(SRCDIR)/include native-code.cxx -L$(INSTDIR)/$(LIBO_LIB_FOLDER) $(WHOLELIBS) $(LIBS) -lgnustl_static -lGLESv2 -landroid -ljnigraphics -llog -lz + $(CXX) -Wl,--build-id=sha1 -Wl,--gc-sections -Wl,--version-script=../Bootstrap/version.map -Wl,--no-keep-files-mapped -Wl,--no-undefined -DANDROID -DDISABLE_DYNLOADING -shared -o $(OBJLOCAL)/liblo-native-code.so -I$(BUILDDIR)/config_host -I$(SRCDIR)/include native-code.cxx -L$(INSTDIR)/$(LIBO_LIB_FOLDER) $(WHOLELIBS) $(LIBS) $(if $(filter armeabi-v7a,$(ANDROID_APP_ABI)),-lgnustl_static,-lc++_static -lc++abi -landroid_support) -lGLESv2 -landroid -ljnigraphics -llog -lz $(SODEST)/liblo-native-code.so : $(OBJLOCAL)/liblo-native-code.so mkdir -p $(SODEST) diff --git a/android/source/build.gradle b/android/source/build.gradle index 1950b2357de5..c2d4aeae0e56 100644 --- a/android/source/build.gradle +++ b/android/source/build.gradle @@ -17,31 +17,34 @@ allprojects { buildscript { repositories { jcenter() + maven { + url "https://maven.google.com" + } } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } // compile-time dependencies dependencies { - compile fileTree(dir: "${liboInstdir}/${liboUREJavaFolder}", include: [ + implementation fileTree(dir: "${liboInstdir}/${liboUREJavaFolder}", include: [ "java_uno.jar", "juh.jar", "jurt.jar", "ridl.jar", "unoloader.jar" ]) - compile files("${liboInstdir}/${liboShareJavaFolder}/unoil.jar") - debugCompile(name:'owncloud_android_lib-debug', ext:'aar') - releaseCompile(name:'owncloud_android_lib-release', ext:'aar') - compile 'com.android.support:design:26.1.0' // also pulls-in corresponding support libraries - compile 'com.android.support.constraint:constraint-layout:1.0.2' + implementation files("${liboInstdir}/${liboShareJavaFolder}/unoil.jar") + debugImplementation(name:'owncloud_android_lib-debug', ext:'aar') + releaseImplementation(name:'owncloud_android_lib-release', ext:'aar') + implementation 'com.android.support:design:27.0.1' // also pulls-in corresponding support libraries + implementation 'com.android.support.constraint:constraint-layout:1.0.2' } android { compileSdkVersion 26 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.1" compileOptions { // silence some java-language features hints sourceCompatibility 6 @@ -77,9 +80,11 @@ android { manifestPlaceholders = [installLocation: "preferExternal", extractNativeLibs: "true"] } } + + flavorDimensions "default" productFlavors { - strippedUI - fullUI + strippedUI.dimension "default" + fullUI.dimension "default" } } diff --git a/android/source/gradle.properties b/android/source/gradle.properties index 899c9f99f396..ad1671ef57fd 100644 --- a/android/source/gradle.properties +++ b/android/source/gradle.properties @@ -1 +1 @@ -org.gradle.jvmargs=-Xmx2048m +org.gradle.jvmargs=-Xmx3072m diff --git a/android/source/gradle/wrapper/gradle-wrapper.properties b/android/source/gradle/wrapper/gradle-wrapper.properties index 5dc276a1ab03..26a7675eb5fc 100644 --- a/android/source/gradle/wrapper/gradle-wrapper.properties +++ b/android/source/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Mar 14 19:29:07 CET 2017 +#Mon Nov 20 19:19:05 CET 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip diff --git a/android/source/jni/Android.mk b/android/source/jni/Android.mk deleted file mode 100644 index 939a1ea503bb..000000000000 --- a/android/source/jni/Android.mk +++ /dev/null @@ -1,8 +0,0 @@ -# Needed just to satisfy ndk-gdb for now, but maybe later we will actually add -# some JNI code here - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -include $(BUILD_SHARED_LIBRARY) |