Commit d286c977 authored by Park Dong-Ha's avatar Park Dong-Ha Committed by Victor Zverovich

Update for Gradle build

Recovered Gradle build with latest release (ver. 4.10.2)

TravisCI
- Changed several apt configurations & build steps for Android

AndroidManifest:
- package name: fmt -> org.fmtlib

Gradle:
- Plugin version 3.1.3. Requires Gradle 4.4+
- Removed `x86` (duplicated with `x86_64`)
- `-std=c++17`. Latest NDK(clang7) should support this
- Missing `repositories` configuration

For some reason, the `repositories` config affects to the error:
"Could not find com.android.tools.lint:lint-gradle:26.1.3."
parent d951f6df
......@@ -115,7 +115,7 @@ matrix:
before_script:
- pushd ./support
script:
- bash $GRADLE clean assemble
- bash ../$GRADLE clean assemble
after_success:
- popd;
- tree ./libs
......
<manifest package="fmt" />
\ No newline at end of file
<manifest package="org.fmtlib" />
......@@ -4,11 +4,16 @@ buildscript {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// Requires Gradle 4.4+
// https://developer.android.com/studio/releases/gradle-plugin
classpath 'com.android.tools.build:gradle:3.1.3'
}
}
repositories {
google()
jcenter()
}
// Output: Shared library (.so) for Android
apply plugin: 'com.android.library'
......@@ -24,12 +29,9 @@ android {
splits {
abi {
enable true
// Be general, as much as possible ...
// universalApk true
// Specify platforms for Application
reset()
include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
include "arm64-v8a", "armeabi-v7a", "x86_64"
}
}
......@@ -46,7 +48,7 @@ android {
arguments "-DBUILD_SHARED_LIBS=true" // Build shared object
arguments "-DFMT_TEST=false" // Skip test
arguments "-DFMT_DOC=false" // Skip document
cppFlags "-std=c++14"
cppFlags "-std=c++17"
}
}
println("Gradle CMake Plugin: ")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment