mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 06:54:15 +00:00
fixed creating certificates.zip when target zip did not include the directory certificates, so they were bein unpacked into datadir. Added entryCompression ZipEntryCompression.STORED since final APK is being compressed as well. Put all custom tasks under android plugin definitions
This commit is contained in:
parent
8864cbf80a
commit
cf5081d300
@ -8,11 +8,6 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete,overwrite: true) {
|
|
||||||
delete 'build'
|
|
||||||
delete 'assets'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
@ -23,7 +18,7 @@ android {
|
|||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "2.17.2c"
|
versionName "2.17.2e"
|
||||||
}
|
}
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
@ -51,10 +46,17 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task zipCerts(type: Zip) {
|
task zipCerts(type:Zip) {
|
||||||
archiveName 'certificates.zip'
|
from (files('../contrib/'))
|
||||||
|
include 'certificates/**/*.crt'
|
||||||
destinationDir file('assets')
|
destinationDir file('assets')
|
||||||
from (files('../contrib/certificates'))
|
archiveName 'certificates.zip'
|
||||||
|
entryCompression ZipEntryCompression.STORED
|
||||||
|
}
|
||||||
|
preBuild.dependsOn zipCerts
|
||||||
|
|
||||||
|
task clean(type: Delete,overwrite: true) {
|
||||||
|
delete 'build'
|
||||||
|
delete 'assets'
|
||||||
}
|
}
|
||||||
|
|
||||||
preBuild.dependsOn zipCerts
|
|
||||||
|
1
android/gradle.properties
Normal file
1
android/gradle.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
Loading…
x
Reference in New Issue
Block a user