2017-12-10 16:46:13 +03:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.android.tools.build:gradle:2.1.2'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-07 00:08:07 +03:00
|
|
|
task clean(type: Delete,overwrite: true) {
|
|
|
|
delete 'build'
|
|
|
|
delete 'assets'
|
|
|
|
}
|
|
|
|
|
2017-12-10 16:46:13 +03:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2018-01-07 00:08:07 +03:00
|
|
|
compileSdkVersion 25
|
|
|
|
buildToolsVersion "25.0.0"
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.purplei2p.i2pd"
|
|
|
|
targetSdkVersion 25
|
|
|
|
minSdkVersion 14
|
|
|
|
versionCode 1
|
2018-01-07 00:40:17 +03:00
|
|
|
versionName "2.17.2c"
|
2018-01-07 00:08:07 +03:00
|
|
|
}
|
2017-12-10 16:46:13 +03:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
2018-01-07 00:08:07 +03:00
|
|
|
res.srcDirs = ['res']
|
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
|
assets.srcDirs = ['assets']
|
2017-12-10 16:46:13 +03:00
|
|
|
}
|
2018-01-07 00:08:07 +03:00
|
|
|
}
|
2017-12-10 17:01:13 +03:00
|
|
|
signingConfigs {
|
|
|
|
orignal {
|
|
|
|
storeFile file("i2pdapk.jks")
|
|
|
|
storePassword "android"
|
|
|
|
keyAlias "i2pdapk"
|
|
|
|
keyPassword "android"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
2018-01-07 00:08:07 +03:00
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
signingConfig signingConfigs.orignal
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
|
|
|
|
}
|
2017-12-10 17:01:13 +03:00
|
|
|
}
|
2017-12-10 16:46:13 +03:00
|
|
|
}
|
|
|
|
|
2018-01-07 00:08:07 +03:00
|
|
|
task zipCerts(type: Zip) {
|
|
|
|
archiveName 'certificates.zip'
|
|
|
|
destinationDir file('assets')
|
|
|
|
from (files('../contrib/certificates'))
|
|
|
|
}
|
|
|
|
|
|
|
|
preBuild.dependsOn zipCerts
|