capacitor-actito-loyalty 5.0.0-beta.2 → 5.0.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/CHANGELOG.md +29 -0
- package/CapacitorActitoLoyalty.podspec +1 -1
- package/Package.swift +2 -2
- package/android/build.gradle +17 -13
- package/dist/esm/models/actito-pass.d.ts +75 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
Prior to upgrading to v5.x, consult the [Migration Guide](./MIGRATION.md), which outlines all necessary changes and procedures to ensure a smooth migration.
|
|
6
|
+
|
|
7
|
+
**Important changes since v4.x:**
|
|
8
|
+
|
|
9
|
+
- Capacitor 8 support
|
|
10
|
+
- Add Swift Package Manager support
|
|
11
|
+
- Added name and size restrictions to tag names, event names and event payloads
|
|
12
|
+
- Crash reporting is deprecated and disabled by default. We recommend using another solution to collect crash analytics
|
|
13
|
+
|
|
14
|
+
#### Native changes
|
|
15
|
+
|
|
16
|
+
- Add required referrer for embedded YouTube videos
|
|
17
|
+
- Improved network request retry mechanism
|
|
18
|
+
|
|
19
|
+
##### iOS
|
|
20
|
+
|
|
21
|
+
- Add option to enable reader mode in in-app browser
|
|
22
|
+
- Align with Swift 6 and its Strict Concurrency requirements
|
|
23
|
+
- Improved UI for iOS 26
|
|
24
|
+
- Changed the default `presentationOptions` to `[.banner, .badge, .sound]`
|
|
25
|
+
- Offload PKPass loading to the background
|
|
26
|
+
- Fix APNS token registration race condition
|
|
27
|
+
|
|
28
|
+
##### Android
|
|
29
|
+
|
|
30
|
+
- Updated to Kotlin 2.0
|
|
31
|
+
- Fix conflicting flags in geo pending intents
|
|
3
32
|
## 5.0.0-beta.2
|
|
4
33
|
|
|
5
34
|
- Add Swift Package Manager support
|
package/Package.swift
CHANGED
|
@@ -10,8 +10,8 @@ let package = Package(
|
|
|
10
10
|
targets: ["ActitoLoyaltyPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git",
|
|
14
|
-
.package(url: "https://github.com/Actito/actito-sdk-ios.git", from: "5.0.0
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", "7.0.0"..<"9.0.0"),
|
|
14
|
+
.package(url: "https://github.com/Actito/actito-sdk-ios.git", from: "5.0.0"),
|
|
15
15
|
],
|
|
16
16
|
targets: [
|
|
17
17
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
2
|
+
|
|
1
3
|
buildscript {
|
|
2
4
|
repositories {
|
|
3
5
|
google()
|
|
4
6
|
mavenCentral()
|
|
5
7
|
}
|
|
6
8
|
dependencies {
|
|
7
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
8
|
-
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.
|
|
9
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
10
|
+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.20'
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -20,7 +22,7 @@ android {
|
|
|
20
22
|
compileSdkVersion 36
|
|
21
23
|
defaultConfig {
|
|
22
24
|
minSdkVersion 23
|
|
23
|
-
targetSdkVersion
|
|
25
|
+
targetSdkVersion 36
|
|
24
26
|
}
|
|
25
27
|
buildTypes {
|
|
26
28
|
release {
|
|
@@ -32,15 +34,17 @@ android {
|
|
|
32
34
|
abortOnError false
|
|
33
35
|
}
|
|
34
36
|
compileOptions {
|
|
35
|
-
sourceCompatibility JavaVersion.
|
|
36
|
-
targetCompatibility JavaVersion.
|
|
37
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
38
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
kotlin {
|
|
41
|
+
compilerOptions {
|
|
42
|
+
jvmTarget = JvmTarget.JVM_11
|
|
43
|
+
freeCompilerArgs.addAll(
|
|
44
|
+
"-Xexplicit-api=strict",
|
|
45
|
+
"-Xopt-in=com.actito.InternalActitoApi"
|
|
46
|
+
)
|
|
47
|
+
}
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -53,9 +57,9 @@ dependencies {
|
|
|
53
57
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
54
58
|
implementation project(':capacitor-android')
|
|
55
59
|
|
|
56
|
-
implementation 'androidx.appcompat:appcompat:1.7.
|
|
60
|
+
implementation 'androidx.appcompat:appcompat:1.7.1'
|
|
57
61
|
|
|
58
|
-
def actito_version = '5.0.0
|
|
62
|
+
def actito_version = '5.0.0'
|
|
59
63
|
api "com.actito:actito:$actito_version"
|
|
60
64
|
api "com.actito:actito-loyalty:$actito_version"
|
|
61
65
|
}
|
|
@@ -1,20 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a digital pass issued by Actito.
|
|
3
|
+
*
|
|
4
|
+
* An {@link ActitoPass} can be used for loyalty programs, coupons, tickets, or other
|
|
5
|
+
* redeemable items. It includes metadata, redemption history, and optional
|
|
6
|
+
* integrations with mobile wallets like Apple Wallet or Google Pay.
|
|
7
|
+
*/
|
|
1
8
|
export interface ActitoPass {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier of the pass.
|
|
11
|
+
*/
|
|
2
12
|
readonly id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional type of the pass.
|
|
15
|
+
*
|
|
16
|
+
* Supported pass types:
|
|
17
|
+
*
|
|
18
|
+
* - `boarding`
|
|
19
|
+
* - `coupon`
|
|
20
|
+
* - `ticket`
|
|
21
|
+
* - `generic`
|
|
22
|
+
* - `card`
|
|
23
|
+
*/
|
|
3
24
|
readonly type?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the pass.
|
|
27
|
+
*/
|
|
4
28
|
readonly version: number;
|
|
29
|
+
/**
|
|
30
|
+
* Optional Apple Wallet passbook URL or identifier.
|
|
31
|
+
*/
|
|
5
32
|
readonly passbook?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Optional template identifier used to generate the pass.
|
|
35
|
+
*/
|
|
6
36
|
readonly template?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Serial number of the pass.
|
|
39
|
+
*/
|
|
7
40
|
readonly serial: string;
|
|
41
|
+
/**
|
|
42
|
+
* Barcode value associated with the pass.
|
|
43
|
+
*/
|
|
8
44
|
readonly barcode: string;
|
|
45
|
+
/**
|
|
46
|
+
* Redemption behavior of the pass.
|
|
47
|
+
*
|
|
48
|
+
* Supported redemption modes:
|
|
49
|
+
*
|
|
50
|
+
* - `once` — the pass can be redeemed a single time
|
|
51
|
+
* - `limit` — the pass can be redeemed a limited number of times
|
|
52
|
+
* - `always` — the pass can be redeemed an unlimited number of times
|
|
53
|
+
*/
|
|
9
54
|
readonly redeem: string;
|
|
55
|
+
/**
|
|
56
|
+
* History of past redemptions for this pass.
|
|
57
|
+
*/
|
|
10
58
|
readonly redeemHistory: ActitoPassRedemption[];
|
|
59
|
+
/**
|
|
60
|
+
* Maximum number of times the pass can be redeemed.
|
|
61
|
+
*/
|
|
11
62
|
readonly limit: number;
|
|
63
|
+
/**
|
|
64
|
+
* Token associated with the pass for secure validation.
|
|
65
|
+
*/
|
|
12
66
|
readonly token: string;
|
|
67
|
+
/**
|
|
68
|
+
* Collection of key-value pairs used to add extra information to the pass.
|
|
69
|
+
*/
|
|
13
70
|
readonly data: Record<string, any>;
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp indicating when the pass was created or issued.
|
|
73
|
+
*/
|
|
14
74
|
readonly date: string;
|
|
75
|
+
/**
|
|
76
|
+
* Optional link to save the pass to Google Pay.
|
|
77
|
+
*/
|
|
15
78
|
readonly googlePaySaveLink?: string;
|
|
16
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Represents a single redemption record for an Actito pass.
|
|
82
|
+
*
|
|
83
|
+
* Each {@link ActitoPassRedemption} records the time and optional comments
|
|
84
|
+
* when a pass was redeemed.
|
|
85
|
+
*/
|
|
17
86
|
export interface ActitoPassRedemption {
|
|
87
|
+
/**
|
|
88
|
+
* Optional comments associated with the redemption.
|
|
89
|
+
*/
|
|
18
90
|
readonly comments?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Timestamp when the pass was redeemed.
|
|
93
|
+
*/
|
|
19
94
|
readonly date: string;
|
|
20
95
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-actito-loyalty",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Actito Loyalty Capacitor plugin.",
|
|
5
5
|
"author": "Actito <mobile@actito.com> (https://actito.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"docs:replace-symbolic-links": "rm README.md CHANGELOG.md MIGRATION.md; cp ../../README.md ../../CHANGELOG.md ../../MIGRATION.md ."
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@capacitor/core": "3 -
|
|
54
|
-
"capacitor-actito": "5.0.0
|
|
53
|
+
"@capacitor/core": "3 - 8",
|
|
54
|
+
"capacitor-actito": "5.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@capacitor/android": "^
|
|
58
|
-
"@capacitor/core": "^
|
|
59
|
-
"@capacitor/docgen": "^0.
|
|
60
|
-
"@capacitor/ios": "^
|
|
61
|
-
"capacitor-actito": "5.0.0
|
|
62
|
-
"rimraf": "^
|
|
57
|
+
"@capacitor/android": "^8.0.0",
|
|
58
|
+
"@capacitor/core": "^8.0.0",
|
|
59
|
+
"@capacitor/docgen": "^0.3.1",
|
|
60
|
+
"@capacitor/ios": "^8.0.0",
|
|
61
|
+
"capacitor-actito": "5.0.0",
|
|
62
|
+
"rimraf": "^6.1.2",
|
|
63
63
|
"rollup": "^2.79.2",
|
|
64
|
-
"typescript": "^
|
|
64
|
+
"typescript": "^5.9.3"
|
|
65
65
|
},
|
|
66
66
|
"capacitor": {
|
|
67
67
|
"ios": {
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"src": "android"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "7a6124cafb705306229844381780880c734c1eca"
|
|
75
75
|
}
|