Skip to content

Commit

Permalink
Displaying current version number in README.md by fetching the latest…
Browse files Browse the repository at this point in the history
… tag
  • Loading branch information
shubhamsinghmutualmobile committed May 9, 2022
1 parent 1a7ee60 commit 34c88a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Barricade2
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/mutualmobile/Barricade2?label=version)

Barricade is a library for Android apps that allows you to get responses to API requests locally by running a local server. Barricade will intercept your API calls using an OkHttp Network Interceptor and can provide a local response from a local file.

It also supports multiple responses per request, unlike other local server implementations and presents the user with an UI for modifying which response to return for a request. at runtime.
Expand Down Expand Up @@ -29,7 +31,7 @@ It also supports multiple responses per request, unlike other local server imple
Include the following dependencies in your app's build.gradle :

```
def barricadeVersion = "0.0.1"
def barricadeVersion = "0.0.1" // Get the latest version from tags
dependencies {
implementation ("com.mutualmobile:barricade2:$barricadeVersion")
ksp ("com.mutualmobile:barricade-compiler2:$barricadeVersion")
Expand Down

0 comments on commit 34c88a9

Please sign in to comment.