@app-swiss-knife/react-native-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +182 -0
- package/SwissKnifePurchases.podspec +40 -0
- package/android/build.gradle +89 -0
- package/android/gradle.properties +3 -0
- package/android/src/main/AndroidManifest.xml +26 -0
- package/android/src/main/java/com/swissknife/crashreporting/SKCrashReportingModule.kt +216 -0
- package/android/src/main/java/com/swissknife/crashreporting/SKCrashReportingPackage.kt +17 -0
- package/android/src/main/java/com/swissknife/purchases/Conversions.kt +15 -0
- package/android/src/main/java/com/swissknife/purchases/SwissKnifeJson.kt +371 -0
- package/android/src/main/java/com/swissknife/purchases/SwissKnifePurchasesModule.kt +497 -0
- package/android/src/main/java/com/swissknife/purchases/SwissKnifePurchasesPackage.kt +25 -0
- package/android/vendor/GENERATED.md +10 -0
- package/android/vendor/java/com/appswissknife/SwissKnife.kt +533 -0
- package/android/vendor/java/com/appswissknife/analytics/EventQueueStore.kt +326 -0
- package/android/vendor/java/com/appswissknife/analytics/FlushEventsWorker.kt +296 -0
- package/android/vendor/java/com/appswissknife/analytics/SKAnalytics.kt +503 -0
- package/android/vendor/java/com/appswissknife/attributes/AttributesClient.kt +188 -0
- package/android/vendor/java/com/appswissknife/attributes/SetAttributesWorker.kt +204 -0
- package/android/vendor/java/com/appswissknife/attribution/Attribution.kt +447 -0
- package/android/vendor/java/com/appswissknife/context/AppLifecycle.kt +120 -0
- package/android/vendor/java/com/appswissknife/context/Clock.kt +70 -0
- package/android/vendor/java/com/appswissknife/context/DeviceContext.kt +138 -0
- package/android/vendor/java/com/appswissknife/context/IDs.kt +55 -0
- package/android/vendor/java/com/appswissknife/context/Reachability.kt +145 -0
- package/android/vendor/java/com/appswissknife/context/Session.kt +192 -0
- package/android/vendor/java/com/appswissknife/crashreporting/SKCrashReporting.kt +945 -0
- package/android/vendor/java/com/appswissknife/crashreporting/SKScreenshot.kt +201 -0
- package/android/vendor/java/com/appswissknife/device/DeviceID.kt +172 -0
- package/android/vendor/java/com/appswissknife/diagnostics/SKLog.kt +97 -0
- package/android/vendor/java/com/appswissknife/entitlements/EntitlementsRepository.kt +495 -0
- package/android/vendor/java/com/appswissknife/identity/Identity.kt +522 -0
- package/android/vendor/java/com/appswissknife/models/CustomerInfo.kt +67 -0
- package/android/vendor/java/com/appswissknife/models/Enums.kt +35 -0
- package/android/vendor/java/com/appswissknife/models/Offerings.kt +80 -0
- package/android/vendor/java/com/appswissknife/models/PurchasesError.kt +89 -0
- package/android/vendor/java/com/appswissknife/models/StoreTransaction.kt +17 -0
- package/android/vendor/java/com/appswissknife/net/BackendHttpClient.kt +507 -0
- package/android/vendor/java/com/appswissknife/net/ExponentialBackoff.kt +69 -0
- package/android/vendor/java/com/appswissknife/net/IngestClient.kt +582 -0
- package/android/vendor/java/com/appswissknife/net/OfflineQueueStore.kt +320 -0
- package/android/vendor/java/com/appswissknife/offerings/OfferingsRepository.kt +219 -0
- package/android/vendor/java/com/appswissknife/performance/SKFrameTracker.kt +94 -0
- package/android/vendor/java/com/appswissknife/performance/SKPerformance.kt +428 -0
- package/android/vendor/java/com/appswissknife/purchases/BillingClientGateway.kt +560 -0
- package/android/vendor/java/com/appswissknife/purchases/PlayPriceEnrichmentProvider.kt +100 -0
- package/android/vendor/java/com/appswissknife/purchases/PriceEnrichmentProvider.kt +36 -0
- package/android/vendor/java/com/appswissknife/purchases/PurchasesGateway.kt +120 -0
- package/android/vendor/res/xml/swissknife_data_extraction_rules.xml +20 -0
- package/ios/SwissKnifeCrashReporting.m +32 -0
- package/ios/SwissKnifeCrashReporting.swift +186 -0
- package/ios/SwissKnifeJSON.swift +347 -0
- package/ios/SwissKnifePurchases.m +124 -0
- package/ios/SwissKnifePurchases.swift +523 -0
- package/ios/vendor/GENERATED.md +10 -0
- package/ios/vendor/SwissKnifeiOS/Analytics/SKAnalytics.swift +488 -0
- package/ios/vendor/SwissKnifeiOS/AttributesClient.swift +460 -0
- package/ios/vendor/SwissKnifeiOS/Attribution/Attribution.swift +307 -0
- package/ios/vendor/SwissKnifeiOS/Attribution/AttributionNetwork.swift +92 -0
- package/ios/vendor/SwissKnifeiOS/Attribution/AttributionState.swift +141 -0
- package/ios/vendor/SwissKnifeiOS/Context/AppLifecycle.swift +130 -0
- package/ios/vendor/SwissKnifeiOS/Context/Clock.swift +100 -0
- package/ios/vendor/SwissKnifeiOS/Context/DeviceContext.swift +190 -0
- package/ios/vendor/SwissKnifeiOS/Context/IDs.swift +64 -0
- package/ios/vendor/SwissKnifeiOS/Context/Reachability.swift +121 -0
- package/ios/vendor/SwissKnifeiOS/Context/Session.swift +223 -0
- package/ios/vendor/SwissKnifeiOS/CrashReporting/SKCrashReporting.swift +1287 -0
- package/ios/vendor/SwissKnifeiOS/CrashReporting/SKScreenshot.swift +175 -0
- package/ios/vendor/SwissKnifeiOS/DeviceID.swift +161 -0
- package/ios/vendor/SwissKnifeiOS/Diagnostics/SKLog.swift +128 -0
- package/ios/vendor/SwissKnifeiOS/Identity/Identity.swift +323 -0
- package/ios/vendor/SwissKnifeiOS/Identity/IdentityNetwork.swift +70 -0
- package/ios/vendor/SwissKnifeiOS/Net/BackendHttpClient.swift +329 -0
- package/ios/vendor/SwissKnifeiOS/Net/ExponentialBackoff.swift +87 -0
- package/ios/vendor/SwissKnifeiOS/Net/IngestClient.swift +681 -0
- package/ios/vendor/SwissKnifeiOS/Net/OfflineQueueStore.swift +409 -0
- package/ios/vendor/SwissKnifeiOS/Performance/SKFrameTracker.swift +89 -0
- package/ios/vendor/SwissKnifeiOS/Performance/SKPerformance.swift +440 -0
- package/ios/vendor/SwissKnifeiOS/Performance/SKURLSessionDelegate.swift +87 -0
- package/ios/vendor/SwissKnifeiOS/Services/EntitlementsService.swift +646 -0
- package/ios/vendor/SwissKnifeiOS/Services/OfferingsService.swift +458 -0
- package/ios/vendor/SwissKnifeiOS/Services/PurchaseService.swift +374 -0
- package/ios/vendor/SwissKnifeiOS/SwissKnife+Analytics.swift +46 -0
- package/ios/vendor/SwissKnifeiOS/SwissKnife+DeviceID.swift +30 -0
- package/ios/vendor/SwissKnifeiOS/SwissKnife+Session.swift +47 -0
- package/ios/vendor/SwissKnifeiOS/SwissKnife.swift +417 -0
- package/ios/vendor/SwissKnifeiOS/Types.swift +496 -0
- package/lib/commonjs/attribution.js +55 -0
- package/lib/commonjs/attribution.js.map +1 -0
- package/lib/commonjs/identity.js +126 -0
- package/lib/commonjs/identity.js.map +1 -0
- package/lib/commonjs/index.js +118 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/modules/analytics.js +646 -0
- package/lib/commonjs/modules/analytics.js.map +1 -0
- package/lib/commonjs/modules/attachments.js +169 -0
- package/lib/commonjs/modules/attachments.js.map +1 -0
- package/lib/commonjs/modules/crash-reporting.js +1327 -0
- package/lib/commonjs/modules/crash-reporting.js.map +1 -0
- package/lib/commonjs/modules/ids.js +50 -0
- package/lib/commonjs/modules/ids.js.map +1 -0
- package/lib/commonjs/modules/log.js +59 -0
- package/lib/commonjs/modules/log.js.map +1 -0
- package/lib/commonjs/modules/offline-store.js +44 -0
- package/lib/commonjs/modules/offline-store.js.map +1 -0
- package/lib/commonjs/modules/performance.js +494 -0
- package/lib/commonjs/modules/performance.js.map +1 -0
- package/lib/commonjs/native/module.js +41 -0
- package/lib/commonjs/native/module.js.map +1 -0
- package/lib/commonjs/native/spec.js +26 -0
- package/lib/commonjs/native/spec.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/purchases.js +194 -0
- package/lib/commonjs/purchases.js.map +1 -0
- package/lib/commonjs/types.js +236 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/attribution.js +51 -0
- package/lib/module/attribution.js.map +1 -0
- package/lib/module/identity.js +122 -0
- package/lib/module/identity.js.map +1 -0
- package/lib/module/index.js +36 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modules/analytics.js +642 -0
- package/lib/module/modules/analytics.js.map +1 -0
- package/lib/module/modules/attachments.js +162 -0
- package/lib/module/modules/attachments.js.map +1 -0
- package/lib/module/modules/crash-reporting.js +1320 -0
- package/lib/module/modules/crash-reporting.js.map +1 -0
- package/lib/module/modules/ids.js +44 -0
- package/lib/module/modules/ids.js.map +1 -0
- package/lib/module/modules/log.js +54 -0
- package/lib/module/modules/log.js.map +1 -0
- package/lib/module/modules/offline-store.js +39 -0
- package/lib/module/modules/offline-store.js.map +1 -0
- package/lib/module/modules/performance.js +491 -0
- package/lib/module/modules/performance.js.map +1 -0
- package/lib/module/native/module.js +34 -0
- package/lib/module/native/module.js.map +1 -0
- package/lib/module/native/spec.js +22 -0
- package/lib/module/native/spec.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/purchases.js +187 -0
- package/lib/module/purchases.js.map +1 -0
- package/lib/module/types.js +230 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/commonjs/attribution.d.ts +24 -0
- package/lib/typescript/commonjs/attribution.d.ts.map +1 -0
- package/lib/typescript/commonjs/identity.d.ts +37 -0
- package/lib/typescript/commonjs/identity.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +15 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/analytics.d.ts +127 -0
- package/lib/typescript/commonjs/modules/analytics.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/attachments.d.ts +50 -0
- package/lib/typescript/commonjs/modules/attachments.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/crash-reporting.d.ts +175 -0
- package/lib/typescript/commonjs/modules/crash-reporting.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/ids.d.ts +17 -0
- package/lib/typescript/commonjs/modules/ids.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/log.d.ts +12 -0
- package/lib/typescript/commonjs/modules/log.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/offline-store.d.ts +9 -0
- package/lib/typescript/commonjs/modules/offline-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/modules/performance.d.ts +75 -0
- package/lib/typescript/commonjs/modules/performance.d.ts.map +1 -0
- package/lib/typescript/commonjs/native/module.d.ts +6 -0
- package/lib/typescript/commonjs/native/module.d.ts.map +1 -0
- package/lib/typescript/commonjs/native/spec.d.ts +119 -0
- package/lib/typescript/commonjs/native/spec.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/purchases.d.ts +68 -0
- package/lib/typescript/commonjs/purchases.d.ts.map +1 -0
- package/lib/typescript/commonjs/types.d.ts +384 -0
- package/lib/typescript/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/module/attribution.d.ts +24 -0
- package/lib/typescript/module/attribution.d.ts.map +1 -0
- package/lib/typescript/module/identity.d.ts +37 -0
- package/lib/typescript/module/identity.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +15 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modules/analytics.d.ts +127 -0
- package/lib/typescript/module/modules/analytics.d.ts.map +1 -0
- package/lib/typescript/module/modules/attachments.d.ts +50 -0
- package/lib/typescript/module/modules/attachments.d.ts.map +1 -0
- package/lib/typescript/module/modules/crash-reporting.d.ts +175 -0
- package/lib/typescript/module/modules/crash-reporting.d.ts.map +1 -0
- package/lib/typescript/module/modules/ids.d.ts +17 -0
- package/lib/typescript/module/modules/ids.d.ts.map +1 -0
- package/lib/typescript/module/modules/log.d.ts +12 -0
- package/lib/typescript/module/modules/log.d.ts.map +1 -0
- package/lib/typescript/module/modules/offline-store.d.ts +9 -0
- package/lib/typescript/module/modules/offline-store.d.ts.map +1 -0
- package/lib/typescript/module/modules/performance.d.ts +75 -0
- package/lib/typescript/module/modules/performance.d.ts.map +1 -0
- package/lib/typescript/module/native/module.d.ts +6 -0
- package/lib/typescript/module/native/module.d.ts.map +1 -0
- package/lib/typescript/module/native/spec.d.ts +119 -0
- package/lib/typescript/module/native/spec.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/purchases.d.ts +68 -0
- package/lib/typescript/module/purchases.d.ts.map +1 -0
- package/lib/typescript/module/types.d.ts +384 -0
- package/lib/typescript/module/types.d.ts.map +1 -0
- package/package.json +115 -0
- package/react-native.config.js +23 -0
- package/src/attribution.ts +56 -0
- package/src/identity.ts +133 -0
- package/src/index.ts +54 -0
- package/src/modules/analytics.ts +689 -0
- package/src/modules/attachments.ts +222 -0
- package/src/modules/crash-reporting.ts +1577 -0
- package/src/modules/ids.ts +41 -0
- package/src/modules/log.ts +56 -0
- package/src/modules/offline-store.ts +51 -0
- package/src/modules/performance.ts +589 -0
- package/src/native/module.ts +47 -0
- package/src/native/spec.ts +183 -0
- package/src/purchases.ts +214 -0
- package/src/types.ts +470 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// packages/react-native-sdk/src/modules/ids.ts
|
|
2
|
+
//
|
|
3
|
+
// Centralized id-generation helpers. `analytics.ts` and `performance.ts`
|
|
4
|
+
// each carried their own inline UUID/Trace/Span generators with subtly
|
|
5
|
+
// different behaviour (UUIDv4 in both; trace = UUID-minus-dashes; span =
|
|
6
|
+
// first-16-hex-chars of UUID-minus-dashes). The post-#136 audit flagged the
|
|
7
|
+
// duplication; this module consolidates them so the next caller that
|
|
8
|
+
// needs a trace/span id imports rather than copy-pastes.
|
|
9
|
+
//
|
|
10
|
+
// The implementations are intentionally identical to what existed inline:
|
|
11
|
+
// `Math.random()`-based UUIDv4 (cryptographically weak, fine for trace
|
|
12
|
+
// correlation and event idempotency keys — NOT for security tokens).
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* RFC 4122 v4 UUID generator. Cryptographically weak (uses
|
|
16
|
+
* `Math.random()`), suitable for analytics idempotency keys and trace
|
|
17
|
+
* correlation; do NOT use for security tokens.
|
|
18
|
+
*/
|
|
19
|
+
export function generateUUID(): string {
|
|
20
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
21
|
+
const r = (Math.random() * 16) | 0;
|
|
22
|
+
const v = c === "x" ? r : (r & 0x3) | 0x8;
|
|
23
|
+
return v.toString(16);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Sentry-style 32-hex-char trace id (UUIDv4 with dashes stripped).
|
|
29
|
+
* Used by `SKTransaction` to correlate spans within a transaction.
|
|
30
|
+
*/
|
|
31
|
+
export function generateTraceId(): string {
|
|
32
|
+
return generateUUID().replace(/-/g, "");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Sentry-style 16-hex-char span id (first half of a UUIDv4 with dashes
|
|
37
|
+
* stripped). Used by `SKSpan` and `SKTransaction.spanId`.
|
|
38
|
+
*/
|
|
39
|
+
export function generateSpanId(): string {
|
|
40
|
+
return generateUUID().replace(/-/g, "").slice(0, 16);
|
|
41
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// packages/react-native-sdk/src/modules/log.ts
|
|
2
|
+
//
|
|
3
|
+
// Wave 4 — central log wrapper for the JS layer. Mirrors the iOS
|
|
4
|
+
// `SKLog` (Swift) and Android `SKLog` (Kotlin) abstractions. JS-side
|
|
5
|
+
// is much smaller because RN modules already lean on `console.warn`
|
|
6
|
+
// for the rare diagnostic that can't be routed through native — but
|
|
7
|
+
// having one entry point keeps the audit trail of "where does the
|
|
8
|
+
// SDK warn from" finite.
|
|
9
|
+
//
|
|
10
|
+
// Wiring policy:
|
|
11
|
+
// - Hot-path errors that callers might want to see at runtime go
|
|
12
|
+
// through `SKLog.warn` (visible by default in dev). Background
|
|
13
|
+
// reconciler failures route here too.
|
|
14
|
+
// - `SKLog.debug` is off by default and only fires when the host
|
|
15
|
+
// sets `SK_LOG_DEBUG=1` on globalThis (avoids accidental verbose
|
|
16
|
+
// output in production builds).
|
|
17
|
+
|
|
18
|
+
type LogLevel = "debug" | "info" | "warn" | "error";
|
|
19
|
+
|
|
20
|
+
let currentThreshold: LogLevel = "warn";
|
|
21
|
+
|
|
22
|
+
const rank: Record<LogLevel, number> = {
|
|
23
|
+
debug: 0,
|
|
24
|
+
info: 1,
|
|
25
|
+
warn: 2,
|
|
26
|
+
error: 3,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function passes(level: LogLevel): boolean {
|
|
30
|
+
return rank[level] >= rank[currentThreshold];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Override the JS-side threshold. Mirrors `SKLog.setLevel(...)` on
|
|
34
|
+
* native. Hosts that want chatty logs in dev set `"debug"` here. */
|
|
35
|
+
export function setLogLevel(level: LogLevel): void {
|
|
36
|
+
currentThreshold = level;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const SKLog = {
|
|
40
|
+
debug(category: string, message: string): void {
|
|
41
|
+
if (!passes("debug")) return;
|
|
42
|
+
console.log(`[SwissKnife/${category}] ${message}`);
|
|
43
|
+
},
|
|
44
|
+
info(category: string, message: string): void {
|
|
45
|
+
if (!passes("info")) return;
|
|
46
|
+
console.log(`[SwissKnife/${category}] ${message}`);
|
|
47
|
+
},
|
|
48
|
+
warn(category: string, message: string): void {
|
|
49
|
+
if (!passes("warn")) return;
|
|
50
|
+
console.warn(`[SwissKnife/${category}] ${message}`);
|
|
51
|
+
},
|
|
52
|
+
error(category: string, message: string): void {
|
|
53
|
+
if (!passes("error")) return;
|
|
54
|
+
console.error(`[SwissKnife/${category}] ${message}`);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// packages/react-native-sdk/src/modules/offline-store.ts
|
|
2
|
+
//
|
|
3
|
+
// Minimal persistent key-value adapter used by the crash-reporting module
|
|
4
|
+
// for its offline event queue + crashed-session state.
|
|
5
|
+
//
|
|
6
|
+
// Why not the native offline queue: analytics events persist through the
|
|
7
|
+
// native bridge (`trackEvent` → iOS/Android IngestClient JSONL queue), but
|
|
8
|
+
// that surface is analytics-shaped — it serializes to the analytics ingest
|
|
9
|
+
// endpoint only, and there is no bridge method for arbitrary crash payloads.
|
|
10
|
+
// Adding one requires new native code on both platforms (out of scope for
|
|
11
|
+
// the JS-only SDK package). Until such a bridge method exists, crash events
|
|
12
|
+
// persist through the host app's AsyncStorage, resolved lazily via a dynamic
|
|
13
|
+
// require — the same optional-module pattern as the `require("react-native")`
|
|
14
|
+
// guards in crash-reporting.ts — so the SDK keeps zero hard dependencies and
|
|
15
|
+
// degrades to memory-only queueing when AsyncStorage isn't installed.
|
|
16
|
+
|
|
17
|
+
export interface SKKeyValueStorage {
|
|
18
|
+
getItem(key: string): Promise<string | null>;
|
|
19
|
+
setItem(key: string, value: string): Promise<void>;
|
|
20
|
+
removeItem(key: string): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** `undefined` = not yet resolved; `null` = resolved and unavailable. */
|
|
24
|
+
let _storage: SKKeyValueStorage | null | undefined;
|
|
25
|
+
|
|
26
|
+
export function getOfflineStorage(): SKKeyValueStorage | null {
|
|
27
|
+
if (_storage !== undefined) return _storage;
|
|
28
|
+
try {
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
30
|
+
const mod = require("@react-native-async-storage/async-storage");
|
|
31
|
+
const candidate = (mod?.default ?? mod) as SKKeyValueStorage | undefined;
|
|
32
|
+
_storage =
|
|
33
|
+
candidate &&
|
|
34
|
+
typeof candidate.getItem === "function" &&
|
|
35
|
+
typeof candidate.setItem === "function" &&
|
|
36
|
+
typeof candidate.removeItem === "function"
|
|
37
|
+
? candidate
|
|
38
|
+
: null;
|
|
39
|
+
} catch {
|
|
40
|
+
// AsyncStorage not installed (or plain Node/tests) — persistence disabled
|
|
41
|
+
_storage = null;
|
|
42
|
+
}
|
|
43
|
+
return _storage;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Test seam: inject a fake storage. Pass `undefined` to force re-resolution. */
|
|
47
|
+
export function _setOfflineStorageForTests(
|
|
48
|
+
storage: SKKeyValueStorage | null | undefined
|
|
49
|
+
): void {
|
|
50
|
+
_storage = storage;
|
|
51
|
+
}
|