diff options
author | Torsten Grote <t@grobox.de> | 2020-05-08 13:40:34 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-05-08 13:40:34 -0300 |
commit | 35b28a4e957be263447c432d6ab28924d0ef245c (patch) | |
tree | 1702857a4d2ff727a1a9ff05797ddb673258badc /wallet/build.gradle | |
parent | dcf516ad2b32f896ad92cc97f77f7d82ec53fa43 (diff) | |
download | taler-android-35b28a4e957be263447c432d6ab28924d0ef245c.tar.gz taler-android-35b28a4e957be263447c432d6ab28924d0ef245c.tar.bz2 taler-android-35b28a4e957be263447c432d6ab28924d0ef245c.zip |
[wallet] prevent download of wallet-core with every build
Diffstat (limited to 'wallet/build.gradle')
-rw-r--r-- | wallet/build.gradle | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/wallet/build.gradle b/wallet/build.gradle index b25fa95..c96696c 100644 --- a/wallet/build.gradle +++ b/wallet/build.gradle @@ -37,6 +37,7 @@ android { versionCode 6 versionName "0.7.1.dev.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + buildConfigField "String", "WALLET_CORE_VERSION", "\"$walletCoreVersion\"" } buildTypes { release { @@ -90,10 +91,10 @@ dependencies { implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1' // Markdown rendering - final def markwon_version = '4.3.1' - implementation "io.noties.markwon:core:$markwon_version" - implementation "io.noties.markwon:ext-tables:$markwon_version" - implementation "io.noties.markwon:recycler:$markwon_version" + final def markwon_version = '4.3.1' + implementation "io.noties.markwon:core:$markwon_version" + implementation "io.noties.markwon:ext-tables:$markwon_version" + implementation "io.noties.markwon:recycler:$markwon_version" // JSON parsing and serialization implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.10.2' @@ -106,8 +107,9 @@ dependencies { def walletLibraryDir = "src/main/assets" task downloadWalletLibrary(type: Download) { src "https://git.taler.net/wallet-core.git/plain/${walletCoreVersion}/taler-wallet-android.js?h=prebuilt" - dest "${walletLibraryDir}/taler-wallet-android.js" + dest "${walletLibraryDir}/taler-wallet-android-${walletCoreVersion}.js" onlyIfModified true + overwrite false doFirst { new File(walletLibraryDir).mkdirs() } |