capacitor-actito-loyalty 5.0.0-beta.2 → 5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 5.1.0
4
+
5
+ #### Native changes
6
+
7
+ ##### Android
8
+
9
+ - Add a hook to customise the notification generated for the lock screen.
10
+
11
+ ## 5.0.0
12
+
13
+ Prior to upgrading to v5.x, consult the [Migration Guide](./MIGRATION.md), which outlines all necessary changes and procedures to ensure a smooth migration.
14
+
15
+ **Important changes since v4.x:**
16
+
17
+ - Capacitor 8 support
18
+ - Add Swift Package Manager support
19
+ - Added name and size restrictions to tag names, event names and event payloads
20
+ - Crash reporting is deprecated and disabled by default. We recommend using another solution to collect crash analytics
21
+
22
+ #### Native changes
23
+
24
+ - Add required referrer for embedded YouTube videos
25
+ - Improved network request retry mechanism
26
+
27
+ ##### iOS
28
+
29
+ - Add option to enable reader mode in in-app browser
30
+ - Align with Swift 6 and its Strict Concurrency requirements
31
+ - Improved UI for iOS 26
32
+ - Changed the default `presentationOptions` to `[.banner, .badge, .sound]`
33
+ - Offload PKPass loading to the background
34
+ - Fix APNS token registration race condition
35
+
36
+ ##### Android
37
+
38
+ - Updated to Kotlin 2.0
39
+ - Fix conflicting flags in geo pending intents
40
+
3
41
  ## 5.0.0-beta.2
4
42
 
5
43
  - Add Swift Package Manager support
@@ -1,7 +1,7 @@
1
1
  require 'json'
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
- actito_version = '5.0.0-beta.2'
4
+ actito_version = '5.0.0'
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'CapacitorActitoLoyalty'
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", from: "7.0.0"),
14
- .package(url: "https://github.com/Actito/actito-sdk-ios.git", from: "5.0.0-beta.2"),
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(
@@ -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.9.2'
8
- classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.20'
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 35
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.VERSION_1_8
36
- targetCompatibility JavaVersion.VERSION_1_8
37
+ sourceCompatibility JavaVersion.VERSION_11
38
+ targetCompatibility JavaVersion.VERSION_11
37
39
  }
38
- kotlinOptions {
39
- jvmTarget = '1.8'
40
- freeCompilerArgs += [
41
- '-Xexplicit-api=strict',
42
- '-Xopt-in=com.actito.InternalActitoApi',
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.0'
60
+ implementation 'androidx.appcompat:appcompat:1.7.1'
57
61
 
58
- def actito_version = '5.0.0-beta.2'
62
+ def actito_version = '5.1.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-beta.2",
3
+ "version": "5.1.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 - 7",
54
- "capacitor-actito": "5.0.0-beta.2"
53
+ "@capacitor/core": "3 - 8",
54
+ "capacitor-actito": "5.1.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@capacitor/android": "^3.0.0",
58
- "@capacitor/core": "^3.0.0",
59
- "@capacitor/docgen": "^0.0.18",
60
- "@capacitor/ios": "^3.0.0",
61
- "capacitor-actito": "5.0.0-beta.2",
62
- "rimraf": "^3.0.2",
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.1.0",
62
+ "rimraf": "^6.1.2",
63
63
  "rollup": "^2.79.2",
64
- "typescript": "^4.5.4"
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": "8a12edd857ad3b8f9245683a19b5fe89ce2e51f6"
74
+ "gitHead": "ebb780fae4212b16290571f56390639c66a6f405"
75
75
  }