summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-09-11 10:09:01 -0300
committerTorsten Grote <t@grobox.de>2020-09-11 10:09:01 -0300
commit85c2be5713eac244ffbe7a024ed2aa08b9816388 (patch)
tree241cea37109748f37d9fcf5c1f3a204321f13a05
parenta7d5ebeca8afc23824766380cc27df85be7d832b (diff)
downloadtaler-android-85c2be5713eac244ffbe7a024ed2aa08b9816388.tar.gz
taler-android-85c2be5713eac244ffbe7a024ed2aa08b9816388.tar.bz2
taler-android-85c2be5713eac244ffbe7a024ed2aa08b9816388.zip
[wallet] verify wallet-core with SHA256wallet-v0.8.0-rc.3
-rw-r--r--wallet/build.gradle15
1 files changed, 11 insertions, 4 deletions
diff --git a/wallet/build.gradle b/wallet/build.gradle
index 79c24f3..b5720be 100644
--- a/wallet/build.gradle
+++ b/wallet/build.gradle
@@ -24,6 +24,7 @@ plugins {
}
def walletCoreVersion = "v0.8.0-rc.2"
+def walletCoreSha256 = "838035331c6103e2a0e911d2a0c6f0e9af92ddd77e8091d11fb4a246486edd22"
static def versionCodeEpoch() {
return (new Date().getTime() / 1000).toInteger()
@@ -47,7 +48,7 @@ android {
minSdkVersion 24
targetSdkVersion 29
versionCode 8
- versionName "v0.8.0-rc.2"
+ versionName "v0.8.0-rc.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "String", "WALLET_CORE_VERSION", "\"$walletCoreVersion\""
}
@@ -145,9 +146,10 @@ dependencies {
}
def walletLibraryDir = "src/main/assets"
-task downloadWalletLibrary(type: Download) {
+def walletDestFile = "${walletLibraryDir}/taler-wallet-android-${walletCoreVersion}.js"
+task downloadWalletLibrary(type: Download, dependsOn: preBuild) {
src "https://git.taler.net/wallet-core.git/plain/${walletCoreVersion}/taler-wallet-android.js?h=prebuilt"
- dest "${walletLibraryDir}/taler-wallet-android-${walletCoreVersion}.js"
+ dest walletDestFile
onlyIfModified true
overwrite false
doFirst {
@@ -159,7 +161,12 @@ task downloadWalletLibrary(type: Download) {
}
}
}
+task verifyWalletLibrary(type: Verify, dependsOn: downloadWalletLibrary) {
+ src walletDestFile
+ algorithm 'SHA-256'
+ checksum walletCoreSha256
+}
tasks.withType(MergeResources) {
inputs.dir walletLibraryDir
- dependsOn downloadWalletLibrary
+ dependsOn verifyWalletLibrary
}