Skip to content

Commit

Permalink
Fix android build errors (#703)
Browse files Browse the repository at this point in the history
Since we share the same version across crates we need to load it from
the root `cargo.Toml` instead of `crates/bitwarden/cargo.Toml`. Resolves
the Android SDK no longer building.
  • Loading branch information
Hinton authored Apr 11, 2024
1 parent 09d2826 commit 4b5aaa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/kotlin/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ publishing {
def branchName = "git branch --show-current".execute().text.trim()

if (branchName == "main") {
def content = ['grep', '-o', '^version = ".*"', '../../crates/bitwarden/Cargo.toml'].execute().text.trim()
def content = ['grep', '-o', '^version = ".*"', '../../Cargo.toml'].execute().text.trim()
def match = ~/version = "(.*)"/
def matcher = match.matcher(content)
matcher.find()
Expand Down

0 comments on commit 4b5aaa6

Please sign in to comment.