diff options
author | Torsten Grote <t@grobox.de> | 2020-04-13 11:29:49 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-04-13 11:29:49 -0300 |
commit | 02a4a056fd8255ac8e3147822f842ed8c49a1674 (patch) | |
tree | bfeb98371ffd5e5894ef7592339d21076e3a2c6f /wallet/build.gradle | |
parent | 1552f14105ecd9e23ed7abe0bb6737a580b97c2a (diff) | |
download | taler-android-02a4a056fd8255ac8e3147822f842ed8c49a1674.tar.gz taler-android-02a4a056fd8255ac8e3147822f842ed8c49a1674.tar.bz2 taler-android-02a4a056fd8255ac8e3147822f842ed8c49a1674.zip |
[wallet] prepare specifying wallet-core library version
Diffstat (limited to 'wallet/build.gradle')
-rw-r--r-- | wallet/build.gradle | 9 |
1 files 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() |