Skip to content

Commit 15705a1

Browse files
committed
Refactor code
1 parent 5d0777d commit 15705a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ android {
3333
}
3434
shopifyApi {
3535
dimension "api"
36+
3637
def shopappShopifyVersion = project.getProperties().get("shopappShopifyVersion")
37-
shopappShopifyVersion = shopappShopifyVersion != null ? shopappShopifyVersion : "1.0.2"
38-
apiLibrary = "com.github.rubygarage:shopapp-shopify-android:$shopappShopifyVersion"
38+
if (shopappShopifyVersion != null) {
39+
apiLibrary = "com.github.rubygarage:shopapp-shopify-android:$shopappShopifyVersion"
40+
}
3941

4042
def appId = project.getProperties().get("appId")
4143
applicationId = appId != null ? appId : applicationId

0 commit comments

Comments
 (0)