i2pd/android/build.gradle

90 lines
2.0 KiB
Groovy
Raw Normal View History

2017-12-10 16:46:13 +03:00
buildscript {
repositories {
mavenCentral()
jcenter()
google()
}
dependencies {
2019-08-22 05:00:50 +03:00
classpath 'com.android.tools.build:gradle:3.4.2'
}
2017-12-10 16:46:13 +03:00
}
apply plugin: 'com.android.application'
2018-02-07 22:50:15 +03:00
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
2019-08-22 05:00:50 +03:00
google()
2018-02-07 22:50:15 +03:00
}
dependencies {
2019-08-22 05:00:50 +03:00
implementation 'androidx.core:core:1.0.2'
}
2017-12-10 16:46:13 +03:00
android {
2019-08-22 05:00:50 +03:00
compileSdkVersion 29
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "org.purplei2p.i2pd"
2019-08-22 05:00:50 +03:00
targetSdkVersion 29
minSdkVersion 14
2020-02-25 19:15:30 +03:00
versionCode 2300
versionName "2.30.0"
ndk {
abiFilters 'armeabi-v7a'
abiFilters 'x86'
//abiFilters 'arm64-v8a'
//abiFilters 'x86_64'
}
externalNativeBuild {
ndkBuild {
arguments "-j3"
}
}
}
2017-12-10 16:46:13 +03:00
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
jniLibs.srcDirs = ['libs']
2018-06-27 23:20:02 +03:00
assets.srcDirs = ['assets']
2017-12-10 16:46:13 +03:00
}
}
splits {
abi {
// change that to true if you need splitted apk
2019-01-21 18:51:04 +03:00
enable false
reset()
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
universalApk true
}
}
2017-12-10 17:01:13 +03:00
signingConfigs {
orignal {
storeFile file("i2pdapk.jks")
storePassword "android"
keyAlias "i2pdapk"
keyPassword "android"
}
}
buildTypes {
release {
minifyEnabled true
signingConfig signingConfigs.orignal
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
externalNativeBuild {
ndkBuild {
path './jni/Android.mk'
}
2017-12-10 17:01:13 +03:00
}
2019-08-22 05:00:50 +03:00
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
2017-12-10 16:46:13 +03:00
}