Skip to content

Commit c0aeafc

Browse files
committed
Rename occurrences of CSK to Checkout Kit
1 parent c5b53cb commit c0aeafc

142 files changed

Lines changed: 1601 additions & 1601 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

android/CLAUDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Guidance for Claude Code when working in this repository.
44

55
## Project overview
66

7-
Shopify Checkout Kit for Android is a published AAR library (`com.shopify:checkout-sheet-kit`) that presents Shopify checkouts as a native, dialog-hosted WebView in consumer apps. It is consumed by third-party Android apps via Maven Central, so changes to the library's public surface have real consumer impact and real reversal cost once released.
7+
Shopify Checkout Kit for Android is a published AAR library (`com.shopify:checkout-kit`) that presents Shopify checkouts as a native, dialog-hosted WebView in consumer apps. It is consumed by third-party Android apps via Maven Central, so changes to the library's public surface have real consumer impact and real reversal cost once released.
88

99
Two modules matter:
1010

@@ -15,13 +15,13 @@ The sample is a separate Gradle composite (`samples/MobileBuyIntegration/setting
1515

1616
## Where to make changes
1717

18-
- Library source: `lib/src/main/java/com/shopify/checkoutsheetkit/`. Flat package at the top level with a few subpackages (`errorevents/`, `lifecycleevents/`, `pixelevents/`).
19-
- Library tests: `lib/src/test/java/com/shopify/checkoutsheetkit/`. "No test, no merge" is a listed reject criterion in `.github/CONTRIBUTING.md`.
20-
- Java interop is a first-class concern — the library is commonly consumed from Java code. `lib/src/test/java/com/shopify/checkoutsheetkit/InteropTest.java` exercises the public API from Java specifically; treat breakage there as a consumer-facing issue.
18+
- Library source: `lib/src/main/java/com/shopify/checkoutkit/`. Flat package at the top level with a few subpackages (`errorevents/`, `lifecycleevents/`, `pixelevents/`).
19+
- Library tests: `lib/src/test/java/com/shopify/checkoutkit/`. "No test, no merge" is a listed reject criterion in `.github/CONTRIBUTING.md`.
20+
- Java interop is a first-class concern — the library is commonly consumed from Java code. `lib/src/test/java/com/shopify/checkoutkit/InteropTest.java` exercises the public API from Java specifically; treat breakage there as a consumer-facing issue.
2121

2222
## Key components
2323

24-
- **`ShopifyCheckoutSheetKit.kt`** — the public singleton. Entry point for all consumer interactions (configure, preload, present).
24+
- **`ShopifyCheckoutKit.kt`** — the public singleton. Entry point for all consumer interactions (configure, preload, present).
2525
- **`CheckoutDialog.kt`** — the dialog that hosts the WebView, including the progress indicator and error-recovery coordination.
2626
- **`CheckoutWebView.kt`** — primary WebView. Holds the URL-keyed cache with a **5-minute preload TTL**; instruments page loads; routes bridge messages.
2727
- **`BaseWebView.kt`** — abstract base class. Any new WebView variant must extend this so shared configuration (JS interface name, user agent suffix, client handling) is consistent.
@@ -82,7 +82,7 @@ Raising any of these is a consumer-facing breaking change and needs visible rele
8282

8383
Versions are bumped via:
8484

85-
1. The fallback value in `lib/build.gradle` for the `CHECKOUT_SHEET_KIT_VERSION` env var.
85+
1. The fallback value in `lib/build.gradle` for the `CHECKOUT_KIT_VERSION` env var.
8686
2. The install snippets in `README.md` (Gradle and Maven).
8787

8888
Publishing goes through GitHub Releases → `.github/workflows/publish.yml` → manual approval gate before Maven Central deploy. Full procedure: `.github/CONTRIBUTING.md` "Releasing a new version".

android/README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Shopify Checkout Kit - Android
22

33
[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](/LICENSE)
4-
![Tests](https://github.com/Shopify/checkout-sheet-kit-android/actions/workflows/test.yml/badge.svg?branch=main)
5-
[![GitHub Release](https://img.shields.io/github/release/shopify/checkout-sheet-kit-android.svg?style=flat)]()
4+
![Tests](https://github.com/Shopify/checkout-kit-android/actions/workflows/test.yml/badge.svg?branch=main)
5+
[![GitHub Release](https://img.shields.io/github/release/shopify/checkout-kit-android.svg?style=flat)]()
66

77
<img width="3200" height="800" alt="gradients" src="https://github.com/user-attachments/assets/1f1d7351-1715-4165-874e-c1f2195bcb20" />
88

99
**Shopify's Checkout Kit for Android** is a library that enables Android apps to provide the world's highest converting, customizable, one-page checkout within an app. The presented experience is a fully-featured checkout that preserves all of the store customizations: Checkout UI extensions, Functions, Web Pixels, and more. It also provides idiomatic defaults such as support for light and dark mode, and convenient developer APIs to embed, customize and follow the lifecycle of the checkout experience. Check out our developer blog to [learn how Checkout Kit is built](https://www.shopify.com/partners/blog/mobile-checkout-sdks-for-ios-and-android).
1010

11-
**Note**: We're in the process of renaming "Checkout Sheet Kit" to "Checkout Kit." The dev docs and README already use the new name, while the package itself will be updated in an upcoming version.
11+
**Note**: We're in the process of renaming "Checkout Kit" to "Checkout Kit." The dev docs and README already use the new name, while the package itself will be updated in an upcoming version.
1212

1313
- [Requirements](#requirements)
1414
- [Getting Started](#getting-started)
@@ -48,14 +48,14 @@
4848

4949
## Getting Started
5050

51-
The SDK is an [open source Android library](https://central.sonatype.com/artifact/com.shopify/checkout-sheet-kit). As a quick start, see
51+
The SDK is an [open source Android library](https://central.sonatype.com/artifact/com.shopify/checkout-kit). As a quick start, see
5252
[sample projects](samples/README.md) or use one of the following ways to integrate the SDK into
5353
your project:
5454

5555
### Gradle
5656

5757
```groovy
58-
implementation "com.shopify:checkout-sheet-kit:3.6.0"
58+
implementation "com.shopify:checkout-kit:3.6.0"
5959
```
6060

6161
### Maven
@@ -64,7 +64,7 @@ implementation "com.shopify:checkout-sheet-kit:3.6.0"
6464

6565
<dependency>
6666
<groupId>com.shopify</groupId>
67-
<artifactId>checkout-sheet-kit</artifactId>
67+
<artifactId>checkout-kit</artifactId>
6868
<version>3.6.0</version>
6969
</dependency>
7070
```
@@ -74,7 +74,7 @@ implementation "com.shopify:checkout-sheet-kit:3.6.0"
7474
Once the SDK has been added as a dependency, you can import the library:
7575

7676
```kotlin
77-
import com.shopify.checkoutsheetkit.ShopifyCheckoutSheetKit
77+
import com.shopify.checkoutkit.ShopifyCheckoutKit
7878
```
7979

8080
To present a checkout to the buyer, your application must first obtain a checkout URL.
@@ -114,7 +114,7 @@ function provided by the SDK:
114114
```kotlin
115115
fun presentCheckout() {
116116
val checkoutUrl = cart.checkoutUrl
117-
ShopifyCheckoutSheetKit.present(checkoutUrl, context, checkoutEventProcessor)
117+
ShopifyCheckoutKit.present(checkoutUrl, context, checkoutEventProcessor)
118118
}
119119
```
120120

@@ -125,15 +125,15 @@ fun presentCheckout() {
125125
## Configuration
126126

127127
The SDK provides a way to customize the presented checkout experience via
128-
the `ShopifyCheckoutSheetKit.configure` function.
128+
the `ShopifyCheckoutKit.configure` function.
129129

130130
### Color Scheme
131131

132132
By default, the SDK will match the user's device color appearance. This behavior can be customized
133133
via the `colorScheme` property:
134134

135135
```kotlin
136-
ShopifyCheckoutSheetKit.configure {
136+
ShopifyCheckoutKit.configure {
137137
// [Default] Automatically toggle idiomatic light and dark themes based on device preference.
138138
it.colorScheme = ColorScheme.Automatic()
139139

@@ -183,7 +183,7 @@ val automatic = ColorScheme.Automatic(
183183
The close icon in the checkout dialog header can be customized using the `customize` method for an ergonomic API:
184184

185185
```kotlin
186-
ShopifyCheckoutSheetKit.configure {
186+
ShopifyCheckoutKit.configure {
187187
it.colorScheme = ColorScheme.Light().customize {
188188
// Option 1: Just tint the default close icon
189189
closeIconTint = Color.ResourceId(R.color.my_custom_tint_color)
@@ -197,7 +197,7 @@ ShopifyCheckoutSheetKit.configure {
197197
For automatic theme switching, you can provide different customizations for light and dark modes:
198198

199199
```kotlin
200-
ShopifyCheckoutSheetKit.configure {
200+
ShopifyCheckoutKit.configure {
201201
it.colorScheme = ColorScheme.Automatic().customize(
202202
light = {
203203
closeIconTint = Color.ResourceId(R.color.light_tint)
@@ -221,14 +221,14 @@ The colors that can be modified are:
221221
- closeIcon - Used to provide a completely custom close icon drawable
222222
- closeIconTint - Used to tint the default close icon with a custom color
223223

224-
The current configuration can be obtained by calling `ShopifyCheckoutSheetKit.getConfiguration()`.
224+
The current configuration can be obtained by calling `ShopifyCheckoutKit.getConfiguration()`.
225225

226226
### Log Level
227227

228228
Enable additional debug logs via the `logLevel` configuration option.
229229

230230
```kotlin
231-
ShopifyCheckoutSheetKit.configure {
231+
ShopifyCheckoutKit.configure {
232232
it.logLevel = LogLevel.DEBUG
233233
}
234234
```
@@ -252,7 +252,7 @@ initialized in the background, ahead of time.
252252
Preloading is an advanced feature that can be disabled via a runtime flag:
253253

254254
```kotlin
255-
ShopifyCheckoutSheetKit.configure {
255+
ShopifyCheckoutKit.configure {
256256
it.preloading = Preloading(enabled = false) // defaults to true
257257
}
258258
```
@@ -261,16 +261,16 @@ Once enabled, preloading a checkout is as simple as calling
261261
`preload(checkoutUrl)` with a valid `checkoutUrl`.
262262

263263
```kotlin
264-
ShopifyCheckoutSheetKit.preload(checkoutUrl)
264+
ShopifyCheckoutKit.preload(checkoutUrl)
265265
```
266266

267267
Setting enabled to `false` will cause all calls to the `preload` function to be ignored. This allows the application to selectively toggle preloading behavior as a remote feature flag or dynamically in response to client conditions - e.g. when data saver functionality is enabled by the user.
268268

269269
```kotlin
270-
ShopifyCheckoutSheetKit.configure {
270+
ShopifyCheckoutKit.configure {
271271
it.preloading = Preloading(enabled = false)
272272
}
273-
ShopifyCheckoutSheetKit.preload(checkoutUrl) // no-op
273+
ShopifyCheckoutKit.preload(checkoutUrl) // no-op
274274
```
275275

276276
### Important considerations
@@ -303,13 +303,13 @@ Instead, a better approach is to call `preload()` when you have a strong enough
303303
304304
### Cache invalidation
305305
306-
Should you wish to manually clear the preload cache, there is a `ShopifyCheckoutSheetKit.invalidate()` helper function to do so. This function will be a no-op if no checkout is preloaded.
306+
Should you wish to manually clear the preload cache, there is a `ShopifyCheckoutKit.invalidate()` helper function to do so. This function will be a no-op if no checkout is preloaded.
307307
308308
You may wish to do this if the buyer changes shortly before entering checkout, e.g. by changing cart quantity on a cart view.
309309
310310
### Lifecycle management for preloaded checkout
311311
312-
Preloading renders a checkout in a background webview, which is brought to foreground when `ShopifyCheckoutSheetKit.present()` is called. The content of preloaded checkout reflects the state of the cart when `preload()` was initially called. If the cart is mutated after `preload()` is called, the application is responsible for invalidating the preloaded checkout to ensure that up-to-date checkout content is displayed to the buyer:
312+
Preloading renders a checkout in a background webview, which is brought to foreground when `ShopifyCheckoutKit.present()` is called. The content of preloaded checkout reflects the state of the cart when `preload()` was initially called. If the cart is mutated after `preload()` is called, the application is responsible for invalidating the preloaded checkout to ensure that up-to-date checkout content is displayed to the buyer:
313313
314314
1. To update preloaded contents: call `preload()` once again
315315
2. To disable preloaded content: toggle the preload configuration setting
@@ -421,7 +421,7 @@ Should you wish to opt-out of this fallback experience entirely, you can do so b
421421
`preRecoveryActions()` can also be overridden to execute code before a fallback takes place, for example to add logging, or clear up any potentially problematic state such as in cookies. By default this function is a no-op.
422422

423423
```kotlin
424-
ShopifyCheckoutSheetKit.configure {
424+
ShopifyCheckoutKit.configure {
425425
it.errorRecovery = object: ErrorRecovery {
426426
override fun shouldRecoverFromError(checkoutException: CheckoutException): Boolean {
427427
// To disable recovery (default = checkoutException.isRecoverable)
@@ -447,10 +447,10 @@ ShopifyCheckoutSheetKit.configure {
447447
| `CheckoutExpiredException` | 'cart_expired' | The cart or checkout is no longer available. | Create a new cart and open a new checkout URL. |
448448
| `CheckoutExpiredException` | 'cart_completed' | The cart associated with the checkout has completed checkout. | Create new cart and open a new checkout URL. |
449449
| `CheckoutExpiredException` | 'invalid_cart' | The cart associated with the checkout is invalid (e.g. empty). | Create a new cart and open a new checkout URL. |
450-
| `CheckoutSheetKitException` | 'error_receiving_message' | Checkout Kit failed to receive a message from checkout. | Show checkout in a fallback WebView. |
451-
| `CheckoutSheetKitException` | 'error_sending_message' | Checkout Kit failed to send a message to checkout. | Show checkout in a fallback WebView. |
452-
| `CheckoutSheetKitException` | 'render_process_gone' | The render process for the checkout WebView is gone. | Show checkout in a fallback WebView. |
453-
| `CheckoutSheetKitException` | 'unknown' | An error in Checkout Kit has occurred, see error details for more info. | Show checkout in a fallback WebView. |
450+
| `CheckoutKitException` | 'error_receiving_message' | Checkout Kit failed to receive a message from checkout. | Show checkout in a fallback WebView. |
451+
| `CheckoutKitException` | 'error_sending_message' | Checkout Kit failed to send a message to checkout. | Show checkout in a fallback WebView. |
452+
| `CheckoutKitException` | 'render_process_gone' | The render process for the checkout WebView is gone. | Show checkout in a fallback WebView. |
453+
| `CheckoutKitException` | 'unknown' | An error in Checkout Kit has occurred, see error details for more info. | Show checkout in a fallback WebView. |
454454
| `HttpException` | 'http_error' | An unexpected server error has been encountered. | Show checkout in a fallback WebView. |
455455
| `ClientException` | 'client_error' | An unhandled client error was encountered. | Show checkout in a fallback WebView. |
456456
| `CheckoutUnavailableException` | 'unknown' | Checkout is unavailable for another reason, see error details for more info. | Show checkout in a fallback WebView. |
@@ -464,7 +464,7 @@ title: Checkout Kit Exception Hierarchy
464464
classDiagram
465465
CheckoutException <|-- ConfigurationException
466466
CheckoutException <|-- CheckoutExpiredException
467-
CheckoutException <|-- CheckoutSheetKitException
467+
CheckoutException <|-- CheckoutKitException
468468
CheckoutException <|-- CheckoutUnavailableException
469469
CheckoutUnavailableException <|-- HttpException
470470
CheckoutUnavailableException <|-- ClientException
@@ -490,7 +490,7 @@ classDiagram
490490
class ClientException{
491491
note: "Unexpected client/web error"
492492
}
493-
class CheckoutSheetKitException{
493+
class CheckoutKitException{
494494
note: "Error in Checkout Kit code"
495495
}
496496
```
@@ -574,7 +574,7 @@ and initialize a buyer-aware checkout session.
574574
1. Follow the [Multipass documentation](https://shopify.dev/docs/api/multipass) to create a
575575
multipass
576576
URL and set the `'return_to'` to be the obtained `checkoutUrl`
577-
2. Provide the Multipass URL to `ShopifyCheckoutSheetKit.present()`.
577+
2. Provide the Multipass URL to `ShopifyCheckoutKit.present()`.
578578
579579
> [!Important]
580580
> the above JSON omits useful customer attributes that should be provided where possible and
@@ -595,7 +595,7 @@ checkout sessions.
595595
### Customer Account API
596596
597597
The Customer Account API allows you to authenticate buyers and provide a personalized checkout experience.
598-
For detailed implementation instructions, see our [Customer Account API Authentication Guide](https://shopify.dev/docs/storefronts/headless/mobile-apps/checkout-sheet-kit/authenticate-checkouts).
598+
For detailed implementation instructions, see our [Customer Account API Authentication Guide](https://shopify.dev/docs/storefronts/headless/mobile-apps/checkout-kit/authenticate-checkouts).
599599
600600
---
601601

android/dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: checkout-sheet-kit-android
1+
name: checkout-kit-android
22

33
type: android
44

@@ -64,6 +64,6 @@ check:
6464
android-lint: ./gradlew lintRelease
6565

6666
open:
67-
"GitHub": "https://github.com/Shopify/checkout-sheet-kit-android"
68-
"Issues": "https://github.com/Shopify/checkout-sheet-kit-android/issues"
69-
"PRs": "https://github.com/Shopify/checkout-sheet-kit-android/pulls"
67+
"GitHub": "https://github.com/Shopify/checkout-kit-android"
68+
"Issues": "https://github.com/Shopify/checkout-kit-android/issues"
69+
"PRs": "https://github.com/Shopify/checkout-kit-android/pulls"

0 commit comments

Comments
 (0)