lokinet/android/build.gradle

76 lines
1.6 KiB
Groovy
Raw Normal View History

2018-10-23 11:45:14 +00:00
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
apply plugin: 'com.android.application'
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
android {
compileSdkVersion 28
buildToolsVersion "28.0.1"
defaultConfig {
applicationId "network.loki.lokinet"
targetSdkVersion 28
minSdkVersion 14
versionCode 1
versionName "0.3.1"
ndk {
2018-11-06 14:27:25 +00:00
abiFilters 'armeabi'
2018-10-23 11:45:14 +00:00
}
externalNativeBuild {
cmake {
targets "lokinetandroid"
2018-11-06 14:27:25 +00:00
arguments "-DANDROID=ON", "-DANDROID_STL=c++_static"
2018-10-23 11:45:14 +00:00
}
}
packagingOptions{
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
}
}
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'
}
}
externalNativeBuild {
cmake {
path lokinetCMake
}
}
}