@doordeck/doordeck-headless-sdk 0.41.0 → 0.43.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
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# Doordeck Headless SDK
|
|
2
|
+
A cross-platform SDK for seamless access to Doordeck’s services. This SDK supports multiple platforms and is designed to cater to a variety of development environments.
|
|
3
|
+
|
|
4
|
+
## Packages
|
|
5
|
+
We are publishing the packages to multiple repositories:
|
|
6
|
+
|
|
7
|
+
| Platform | Repository |
|
|
8
|
+
|:---------------------------:|----------------------------------------------------------------------------------------------------------------------|
|
|
9
|
+
| Multiplatform, Android, JVM | [Maven central](https://central.sonatype.com/namespace/com.doordeck.headless.sdk) |
|
|
10
|
+
| iOS, macOS | [Cocoapods](https://cocoapods.org/pods/DoordeckSDK), [SPM](https://github.com/doordeck/doordeck-headless-sdk-spm) |
|
|
11
|
+
| JS | [NPM](https://www.npmjs.com/package/@doordeck/doordeck-headless-sdk) |
|
|
12
|
+
| Windows | //TODO |
|
|
13
|
+
|
|
14
|
+
## Supported platforms
|
|
15
|
+
The SDK supports a range of targets for different platforms:
|
|
16
|
+
|
|
17
|
+
| Platform | Target |
|
|
18
|
+
|:--------:|-------------------------------------------|
|
|
19
|
+
| Android | `android` |
|
|
20
|
+
| JVM | `jvm` |
|
|
21
|
+
| iOS | `iosX64`, `iosArm64`, `iosSimulatorArm64` |
|
|
22
|
+
| macOS | `macosArm64` |
|
|
23
|
+
| JS | `jsNode`, `jsBrowser` |
|
|
24
|
+
| Windows | `mingwX64` |
|
|
25
|
+
|
|
26
|
+
## Getting started
|
|
27
|
+
To start using the Doordeck Headless SDK, refer to the [documentation index](https://github.com/doordeck/doordeck-headless-sdk/blob/main/docs/01_INDEX.md#index) for detailed setup and usage instructions tailored to your platform.
|
|
28
|
+
|
|
29
|
+
## Samples
|
|
30
|
+
We provide samples for different targets, where you can see how the SDK can be used in fully functional projects. For more information, please see the [samples page](docs/15_SAMPLES.md).
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
return tmp;
|
|
338
338
|
}
|
|
339
339
|
initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
|
|
340
|
-
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder,
|
|
340
|
+
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithUtcOffset, WithTime]);
|
|
341
341
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
342
342
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
343
343
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
|
@@ -48,6 +48,12 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
+
position = position || 0;
|
|
54
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
+
}});
|
|
56
|
+
}
|
|
51
57
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
52
58
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
53
59
|
var subjectString = this.toString();
|
|
@@ -59,12 +65,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
59
65
|
return lastIndex !== -1 && lastIndex === position;
|
|
60
66
|
}});
|
|
61
67
|
}
|
|
62
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
-
position = position || 0;
|
|
65
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
-
}});
|
|
67
|
-
}
|
|
68
68
|
//endregion
|
|
69
69
|
(function (_) {
|
|
70
70
|
'use strict';
|