@wisdomgarden/capacitor-plugin-beacon 0.0.3 → 0.0.4
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/CHANGE-LOG.md +5 -0
- package/ios/Plugin/BeaconUtils.swift +2 -2
- package/package.json +1 -1
package/CHANGE-LOG.md
CHANGED
|
@@ -11,3 +11,8 @@
|
|
|
11
11
|
- Logic Optimization: Aligned cross-platform encoding and improved variable-length payload handling.
|
|
12
12
|
- Code Fixes: Resolved naming conflicts and indexing safety issues.
|
|
13
13
|
- Log Refinement: Simplified logs with concise method tags.
|
|
14
|
+
|
|
15
|
+
## 0.0.4 (2025-12-23)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
- Fix (iOS): Scope Error: Changed `isNonceLetter` to a static method so it can be called by `parseMessage`.
|
|
@@ -65,7 +65,7 @@ public struct BeaconUtils {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// 检查字符是否为 nonce 字母,T-Z
|
|
68
|
-
func isNonceLetter(_ c: Character) -> Bool {
|
|
68
|
+
public static func isNonceLetter(_ c: Character) -> Bool {
|
|
69
69
|
return c >= "T" && c <= "Z"
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -80,7 +80,7 @@ public struct BeaconUtils {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
for (i, char) in message.enumerated() {
|
|
83
|
-
if isNonceLetter(char) {
|
|
83
|
+
if self.isNonceLetter(char) {
|
|
84
84
|
let splitIndex = message.index(message.startIndex, offsetBy: i)
|
|
85
85
|
|
|
86
86
|
let rollcallIdStr = String(message[..<splitIndex])
|
package/package.json
CHANGED