Skip to content

Commit

Permalink
Release 3.0.1 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiftio authored May 31, 2024
1 parent 284957a commit a4a46b6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.0.1 May 31, 2024

- Call `onPause()` on the WebView as it's created if preloading, and `onResume()` when it's presented, so the Page Visibility API reports correct values.
- Ensure `WebView.destroy()` is not called on visible views, if preload is called while the view is visible.

## 3.0.0 May 20, 2024

- `ShopifyCheckoutSheet.present()` now returns an interface allowing clients to dismiss the sheet.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ your project:
#### Gradle

```groovy
implementation "com.shopify:checkout-sheet-kit:2.0.1"
implementation "com.shopify:checkout-sheet-kit:3.0.1"
```

#### Maven
Expand All @@ -33,7 +33,7 @@ implementation "com.shopify:checkout-sheet-kit:2.0.1"
<dependency>
<groupId>com.shopify</groupId>
<artifactId>checkout-sheet-kit</artifactId>
<version>2.0.1</version>
<version>3.0.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def resolveEnvVarValue(name, defaultValue) {
return rawValue ? rawValue : defaultValue
}

def versionName = resolveEnvVarValue("CHECKOUT_SHEET_KIT_VERSION", "3.0.0")
def versionName = resolveEnvVarValue("CHECKOUT_SHEET_KIT_VERSION", "3.0.1")

ext {
app_compat_version = '1.6.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class CheckoutWebViewTest {
ShopifyCheckoutSheetKit.configuration.colorScheme = ColorScheme.Dark()
val view = CheckoutWebView.cacheableCheckoutView(URL, activity)

assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.0 ")
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.1 ")
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class FallbackWebViewTest {
ShopifyCheckoutSheetKit.configuration.colorScheme = ColorScheme.Dark()
Robolectric.buildActivity(ComponentActivity::class.java).use { activityController ->
val view = FallbackWebView(activityController.get())
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.0 ")
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.1 ")
}
}

Expand Down
2 changes: 1 addition & 1 deletion samples/MobileBuyIntegration/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {
applicationId "com.shopify.checkout_sdk_mobile_buy_integration_sample"
minSdk 23
targetSdk 34
versionCode 29
versionCode 31
versionName "0.0.${versionCode}"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down

0 comments on commit a4a46b6

Please sign in to comment.