lokinet/android/build.gradle

82 lines
2.1 KiB
Groovy
Raw Normal View History

2018-10-23 11:45:14 +00:00
buildscript {
repositories {
mavenCentral()
jcenter()
google()
2018-10-23 11:45:14 +00:00
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
2018-10-23 11:45:14 +00:00
}
}
apply plugin: 'com.android.application'
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
google()
2018-10-23 11:45:14 +00:00
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "network.loki.lokinet"
targetSdkVersion 28
2019-04-08 15:54:19 +00:00
minSdkVersion 23
2018-10-23 11:45:14 +00:00
versionCode 1
2021-03-09 12:51:37 +00:00
versionName '0.8.4'
2018-10-23 11:45:14 +00:00
externalNativeBuild {
cmake {
targets "lokinet-android"
arguments "-DWITH_LTO=OFF", "-DCXXOPTS_BUILD_TESTS=OFF","-DWITH_TESTS=OFF", "-DCMAKE_CROSSCOMPILING=ON", "-DNATIVE_BUILD=OFF", "-DANDROID=ON", "-DANDROID_STL=c++_static", "-DBUILD_STATIC_DEPS=ON", "-DBUILD_SHARED_LIBS=OFF", "-DSTATIC_LINK=ON", "-DANDROID_ARM_MODE=arm", "-DFORCE_OXENMQ_SUBMODULE=ON", "-DBUILD_LIBLOKINET=OFF"
cppFlags "-std=c++17"
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
// abiFilters 'armeabi-v7a'
// abiFilters 'arm64-v8a', 'x86_64', 'armeabi-v7a'
2018-10-23 11:45:14 +00:00
}
}
}
externalNativeBuild {
cmake {
path "../CMakeLists.txt"
2018-10-23 11:45:14 +00:00
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
jniLibs.srcDirs = ['libs']
assets.srcDirs = ['assets']
}
}
signingConfigs {
jeff {
storeFile file("jeff-apk.jks")
keyAlias "jeff-apk"
}
}
buildTypes {
release {
minifyEnabled true
//signingConfig signingConfigs.jeff
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
debuggable false
2018-10-23 11:45:14 +00:00
}
debug {
// jniDebuggable true
2018-10-23 11:45:14 +00:00
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2018-10-23 11:45:14 +00:00
}