2017-12-10 16:46:13 +03:00
|
|
|
buildscript {
|
2018-02-08 07:54:25 +03:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
2019-03-20 23:42:19 +03:00
|
|
|
google()
|
2018-02-08 07:54:25 +03:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-03-20 23:42:19 +03:00
|
|
|
classpath 'com.android.tools.build:gradle:3.3.2'
|
2018-02-08 07:54:25 +03:00
|
|
|
}
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-25 03:37:34 +03:00
|
|
|
dependencies {
|
2019-03-20 23:42:19 +03:00
|
|
|
implementation 'com.android.support:support-compat:28.0.0'
|
2018-09-25 03:37:34 +03:00
|
|
|
}
|
|
|
|
|
2017-12-10 16:46:13 +03:00
|
|
|
android {
|
2018-07-21 00:02:54 +03:00
|
|
|
compileSdkVersion 28
|
2019-03-20 23:42:19 +03:00
|
|
|
buildToolsVersion "28.0.3"
|
2018-02-08 07:54:25 +03:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.purplei2p.i2pd"
|
2018-07-21 00:02:54 +03:00
|
|
|
targetSdkVersion 28
|
2018-02-08 07:54:25 +03:00
|
|
|
minSdkVersion 14
|
2019-01-21 18:33:22 +03:00
|
|
|
versionCode 2230
|
|
|
|
versionName "2.23.0"
|
2018-02-08 07:54:25 +03:00
|
|
|
ndk {
|
|
|
|
abiFilters 'armeabi-v7a'
|
2018-07-21 00:02:54 +03:00
|
|
|
abiFilters 'x86'
|
2019-01-18 15:44:30 +03:00
|
|
|
//abiFilters 'arm64-v8a'
|
|
|
|
//abiFilters 'x86_64'
|
2018-07-21 00:02:54 +03:00
|
|
|
}
|
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
2019-01-18 15:44:30 +03:00
|
|
|
arguments "-j3"
|
2018-07-21 00:02:54 +03:00
|
|
|
}
|
2018-01-22 20:59:34 +03:00
|
|
|
}
|
2018-02-08 07:54:25 +03:00
|
|
|
}
|
2017-12-10 16:46:13 +03:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
2018-02-08 07:54:25 +03:00
|
|
|
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
|
|
|
}
|
2018-02-08 07:54:25 +03:00
|
|
|
}
|
2019-01-18 15:44:30 +03:00
|
|
|
splits {
|
|
|
|
abi {
|
|
|
|
// change that to true if you need splitted apk
|
2019-01-21 18:51:04 +03:00
|
|
|
enable false
|
2019-01-18 15:44:30 +03:00
|
|
|
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 {
|
2018-02-08 07:54:25 +03:00
|
|
|
release {
|
2018-05-28 19:41:23 +03:00
|
|
|
minifyEnabled true
|
2018-02-08 07:54:25 +03:00
|
|
|
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
|
|
|
}
|
2017-12-10 16:46:13 +03:00
|
|
|
}
|