|
|
@ -8,26 +8,32 @@ buildscript { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task clean(type: Delete,overwrite: true) { |
|
|
|
|
|
|
|
delete 'build' |
|
|
|
|
|
|
|
delete 'assets' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application' |
|
|
|
apply plugin: 'com.android.application' |
|
|
|
|
|
|
|
|
|
|
|
android { |
|
|
|
android { |
|
|
|
compileSdkVersion 25 |
|
|
|
compileSdkVersion 25 |
|
|
|
buildToolsVersion "25.0.2" |
|
|
|
buildToolsVersion "25.0.0" |
|
|
|
defaultConfig { |
|
|
|
defaultConfig { |
|
|
|
applicationId "org.purplei2p.i2pd" |
|
|
|
applicationId "org.purplei2p.i2pd" |
|
|
|
targetSdkVersion 25 |
|
|
|
targetSdkVersion 25 |
|
|
|
minSdkVersion 14 |
|
|
|
minSdkVersion 14 |
|
|
|
versionCode 1 |
|
|
|
versionCode 1 |
|
|
|
versionName "2.17.1" |
|
|
|
versionName "2.17.2b" |
|
|
|
} |
|
|
|
} |
|
|
|
sourceSets { |
|
|
|
sourceSets { |
|
|
|
main { |
|
|
|
main { |
|
|
|
manifest.srcFile 'AndroidManifest.xml' |
|
|
|
manifest.srcFile 'AndroidManifest.xml' |
|
|
|
java.srcDirs = ['src'] |
|
|
|
java.srcDirs = ['src'] |
|
|
|
res.srcDirs = ['res'] |
|
|
|
res.srcDirs = ['res'] |
|
|
|
jniLibs.srcDirs = ['libs'] |
|
|
|
jniLibs.srcDirs = ['libs'] |
|
|
|
} |
|
|
|
assets.srcDirs = ['assets'] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
signingConfigs { |
|
|
|
signingConfigs { |
|
|
|
orignal { |
|
|
|
orignal { |
|
|
|
storeFile file("i2pdapk.jks") |
|
|
|
storeFile file("i2pdapk.jks") |
|
|
@ -37,11 +43,18 @@ android { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
buildTypes { |
|
|
|
buildTypes { |
|
|
|
release { |
|
|
|
release { |
|
|
|
minifyEnabled false |
|
|
|
minifyEnabled false |
|
|
|
signingConfig signingConfigs.orignal |
|
|
|
signingConfig signingConfigs.orignal |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' |
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task zipCerts(type: Zip) { |
|
|
|
|
|
|
|
archiveName 'certificates.zip' |
|
|
|
|
|
|
|
destinationDir file('assets') |
|
|
|
|
|
|
|
from (files('../contrib/certificates')) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
preBuild.dependsOn zipCerts |
|
|
|