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 23 versionCode 1 versionName "0.4.0" ndk { abiFilters 'armeabi' } externalNativeBuild { cmake { targets "lokinetandroid" arguments "-DANDROID=ON", "-DANDROID_STL=c++_static", "-DANDROID_ARM_NEON=TRUE", "-DLIBUV_ROOT=" + libuvsrc, "-DANDROID_TOOLCHAIN=clang", "-DANDROID_ARM_MODE=arm" cppFlags "-fexceptions -std=c++14 -frtti" } } 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 } } }