Skip to content

Commit a4a46b6

Browse files
authored
Release 3.0.1 (#105)
1 parent 284957a commit a4a46b6

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 3.0.1 May 31, 2024
4+
5+
- 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.
6+
- Ensure `WebView.destroy()` is not called on visible views, if preload is called while the view is visible.
7+
38
## 3.0.0 May 20, 2024
49

510
- `ShopifyCheckoutSheet.present()` now returns an interface allowing clients to dismiss the sheet.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ your project:
2323
#### Gradle
2424

2525
```groovy
26-
implementation "com.shopify:checkout-sheet-kit:2.0.1"
26+
implementation "com.shopify:checkout-sheet-kit:3.0.1"
2727
```
2828

2929
#### Maven
@@ -33,7 +33,7 @@ implementation "com.shopify:checkout-sheet-kit:2.0.1"
3333
<dependency>
3434
<groupId>com.shopify</groupId>
3535
<artifactId>checkout-sheet-kit</artifactId>
36-
<version>2.0.1</version>
36+
<version>3.0.1</version>
3737
</dependency>
3838
```
3939

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def resolveEnvVarValue(name, defaultValue) {
1414
return rawValue ? rawValue : defaultValue
1515
}
1616

17-
def versionName = resolveEnvVarValue("CHECKOUT_SHEET_KIT_VERSION", "3.0.0")
17+
def versionName = resolveEnvVarValue("CHECKOUT_SHEET_KIT_VERSION", "3.0.1")
1818

1919
ext {
2020
app_compat_version = '1.6.1'

lib/src/test/java/com/shopify/checkoutsheetkit/CheckoutWebViewTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class CheckoutWebViewTest {
8181
ShopifyCheckoutSheetKit.configuration.colorScheme = ColorScheme.Dark()
8282
val view = CheckoutWebView.cacheableCheckoutView(URL, activity)
8383

84-
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.0 ")
84+
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.1 ")
8585
}
8686

8787
@Test

lib/src/test/java/com/shopify/checkoutsheetkit/FallbackWebViewTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class FallbackWebViewTest {
6666
ShopifyCheckoutSheetKit.configuration.colorScheme = ColorScheme.Dark()
6767
Robolectric.buildActivity(ComponentActivity::class.java).use { activityController ->
6868
val view = FallbackWebView(activityController.get())
69-
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.0 ")
69+
assertThat(view.settings.userAgentString).contains("ShopifyCheckoutSDK/3.0.1 ")
7070
}
7171
}
7272

samples/MobileBuyIntegration/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ android {
3131
applicationId "com.shopify.checkout_sdk_mobile_buy_integration_sample"
3232
minSdk 23
3333
targetSdk 34
34-
versionCode 29
34+
versionCode 31
3535
versionName "0.0.${versionCode}"
3636

3737
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

0 commit comments

Comments
 (0)