Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysZP committed Apr 3, 2018
1 parent 3e06f06 commit 8d78231
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ android {
}
shopifyApi {
dimension "api"

def shopappShopifyVersion = project.getProperties().get("shopappShopifyVersion")
shopappShopifyVersion = shopappShopifyVersion != null ? shopappShopifyVersion : "1.0.2"
apiLibrary = "com.github.rubygarage:shopapp-shopify-android:$shopappShopifyVersion"
if (shopappShopifyVersion != null) {
apiLibrary = "com.github.rubygarage:shopapp-shopify-android:$shopappShopifyVersion"
}

def appId = project.getProperties().get("appId")
applicationId = appId != null ? appId : applicationId
Expand Down

0 comments on commit 8d78231

Please sign in to comment.