From 02a4a056fd8255ac8e3147822f842ed8c49a1674 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 13 Apr 2020 11:29:49 -0300 Subject: [wallet] prepare specifying wallet-core library version --- wallet/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wallet/build.gradle b/wallet/build.gradle index 0a4ad69..3d51477 100644 --- a/wallet/build.gradle +++ b/wallet/build.gradle @@ -23,6 +23,8 @@ plugins { id "de.undercouch.download" } +def walletCoreVersion = "taler-wallet-android.js" + android { compileSdkVersion 29 //noinspection GradleDependency @@ -90,11 +92,10 @@ dependencies { androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } -def walletLibraryDir = 'src/main/assets' -def walletLibraryFile = walletLibraryDir + '/taler-wallet-android.js' +def walletLibraryDir = "src/main/assets" task downloadWalletLibrary(type: Download) { - src "https://git.taler.net/wallet-android.git/plain/taler-wallet-android.js?h=binary-deps" - dest walletLibraryFile + src "https://git.taler.net/wallet-android.git/plain/${walletCoreVersion}?h=binary-deps" + dest "${walletLibraryDir}/taler-wallet-android.js" onlyIfModified true doFirst { new File(walletLibraryDir).mkdirs() -- cgit v1.2.3