react-native-sdk-pianoio 0.3.0 → 0.3.1
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 +3 -3
- package/SdkPianoio.podspec +4 -16
- package/android/build.gradle +12 -19
- package/android/gradle.properties +17 -2
- package/android/src/main/java/com/sdkpianoio/SdkPianoioModule.kt +543 -7
- package/android/src/main/java/com/sdkpianoio/SdkPianoioPackage.kt +3 -3
- package/ios/ComposerPianoImpl.swift +247 -0
- package/ios/MyComposerDelegate.swift +79 -206
- package/ios/SdkPianoio.swift +150 -0
- package/ios/SdkPianoioBridge.m +81 -0
- package/ios/services/TokenService.swift +10 -7
- package/lib/commonjs/NativeSdkPianoio.ts +12 -3
- package/lib/commonjs/PianoComposer.js +4 -4
- package/lib/commonjs/PianoComposer.js.map +1 -1
- package/lib/commonjs/debug.js +23 -0
- package/lib/commonjs/debug.js.map +1 -0
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/NativeSdkPianoio.ts +12 -3
- package/lib/module/PianoComposer.js +4 -4
- package/lib/module/PianoComposer.js.map +1 -1
- package/lib/module/debug.js +18 -0
- package/lib/module/debug.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeSdkPianoio.d.ts +1 -1
- package/lib/typescript/commonjs/src/NativeSdkPianoio.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/PianoComposer.d.ts +1 -1
- package/lib/typescript/commonjs/src/debug.d.ts +2 -0
- package/lib/typescript/commonjs/src/debug.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeSdkPianoio.d.ts +1 -1
- package/lib/typescript/module/src/NativeSdkPianoio.d.ts.map +1 -1
- package/lib/typescript/module/src/PianoComposer.d.ts +1 -1
- package/lib/typescript/module/src/debug.d.ts +2 -0
- package/lib/typescript/module/src/debug.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +31 -16
- package/src/NativeSdkPianoio.ts +12 -3
- package/src/PianoComposer.tsx +4 -4
- package/src/debug.ts +19 -0
- package/src/index.tsx +1 -0
- package/ios/ComposerPiano.swift +0 -304
- package/ios/SdkPianoio.h +0 -4
- package/ios/SdkPianoio.mm +0 -283
- package/ios/services/ComposerService.swift +0 -49
package/package.json
CHANGED
@@ -1,23 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-native-sdk-pianoio",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.1",
|
4
4
|
"description": "Piano io sdk integration",
|
5
5
|
"source": "./src/index.tsx",
|
6
6
|
"main": "./lib/commonjs/index.js",
|
7
7
|
"module": "./lib/module/index.js",
|
8
|
-
"
|
8
|
+
"sideEffects": false,
|
9
9
|
"exports": {
|
10
10
|
".": {
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
"require": {
|
16
|
-
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
17
|
-
"default": "./lib/commonjs/index.js"
|
18
|
-
}
|
11
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
12
|
+
"import": "./lib/module/index.js",
|
13
|
+
"require": "./lib/commonjs/index.js",
|
14
|
+
"default": "./lib/module/index.js"
|
19
15
|
},
|
20
|
-
"./package.json": "./package.json"
|
16
|
+
"./package.json": "./package.json",
|
17
|
+
"./types": "./lib/typescript/module/src/index.d.ts"
|
21
18
|
},
|
22
19
|
"files": [
|
23
20
|
"src",
|
@@ -41,16 +38,29 @@
|
|
41
38
|
"scripts": {
|
42
39
|
"example": "yarn workspace react-native-sdk-pianoio-example",
|
43
40
|
"test": "jest",
|
41
|
+
"test:watch": "jest --watch",
|
42
|
+
"test:coverage": "jest --coverage",
|
44
43
|
"typecheck": "tsc",
|
45
44
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
45
|
+
"lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
|
46
|
+
"format": "prettier --write \"**/*.{js,ts,tsx,json,md}\"",
|
47
|
+
"format:check": "prettier --check \"**/*.{js,ts,tsx,json,md}\"",
|
46
48
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
47
49
|
"prepare": "bob build",
|
50
|
+
"build": "bob build",
|
51
|
+
"prepack": "bob build",
|
48
52
|
"release": "release-it"
|
49
53
|
},
|
50
54
|
"keywords": [
|
51
55
|
"react-native",
|
52
56
|
"ios",
|
53
|
-
"android"
|
57
|
+
"android",
|
58
|
+
"piano",
|
59
|
+
"piano-io",
|
60
|
+
"paywall",
|
61
|
+
"subscription",
|
62
|
+
"monetization",
|
63
|
+
"sdk"
|
54
64
|
],
|
55
65
|
"repository": {
|
56
66
|
"type": "git",
|
@@ -59,9 +69,9 @@
|
|
59
69
|
"author": "sarakalessia <alessia@hexagonswiss.ch> ",
|
60
70
|
"license": "MIT",
|
61
71
|
"bugs": {
|
62
|
-
"url": ""
|
72
|
+
"url": "https://github.com/HexagonSwiss/hex-react-native-sdk-pianoio/issues"
|
63
73
|
},
|
64
|
-
"homepage": "https://github.com/HexagonSwiss/hex-react-native-sdk-pianoio
|
74
|
+
"homepage": "https://github.com/HexagonSwiss/hex-react-native-sdk-pianoio#readme",
|
65
75
|
"publishConfig": {
|
66
76
|
"registry": "https://registry.npmjs.org/"
|
67
77
|
},
|
@@ -71,7 +81,7 @@
|
|
71
81
|
"@react-native-community/cli": "15.0.1",
|
72
82
|
"@react-native/eslint-config": "^0.73.1",
|
73
83
|
"@release-it/conventional-changelog": "^9.0.2",
|
74
|
-
"@types/jest": "^29.5.
|
84
|
+
"@types/jest": "^29.5.14",
|
75
85
|
"@types/react": "^19.0.0",
|
76
86
|
"commitlint": "^19.6.1",
|
77
87
|
"del-cli": "^5.1.0",
|
@@ -87,6 +97,11 @@
|
|
87
97
|
"turbo": "^1.10.7",
|
88
98
|
"typescript": "^5.2.2"
|
89
99
|
},
|
100
|
+
"engines": {
|
101
|
+
"node": ">=18.0.0",
|
102
|
+
"npm": ">=9.0.0",
|
103
|
+
"yarn": ">=3.0.0"
|
104
|
+
},
|
90
105
|
"peerDependencies": {
|
91
106
|
"react": "*",
|
92
107
|
"react-native": "*"
|
@@ -200,4 +215,4 @@
|
|
200
215
|
"languages": "kotlin-objc",
|
201
216
|
"version": "0.48.9"
|
202
217
|
}
|
203
|
-
}
|
218
|
+
}
|
package/src/NativeSdkPianoio.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { NativeModules } from 'react-native';
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
2
2
|
|
3
3
|
interface SdkPianoioType {
|
4
4
|
initializeComposer(aid: string): Promise<any>;
|
@@ -12,7 +12,7 @@ interface SdkPianoioType {
|
|
12
12
|
setComposerUserToken(token: string): Promise<any>;
|
13
13
|
executeComposer(): Promise<void>;
|
14
14
|
|
15
|
-
|
15
|
+
executeExperience(): Promise<boolean>;
|
16
16
|
showLogin(): Promise<boolean>;
|
17
17
|
showTemplate(): Promise<boolean>;
|
18
18
|
showForm(): Promise<boolean>;
|
@@ -25,4 +25,13 @@ interface SdkPianoioType {
|
|
25
25
|
composerExecutionCompleted(): Promise<boolean>;
|
26
26
|
}
|
27
27
|
|
28
|
-
|
28
|
+
const SdkPianoio = NativeModules.SdkPianoio;
|
29
|
+
|
30
|
+
if (!SdkPianoio) {
|
31
|
+
throw new Error(
|
32
|
+
`react-native-sdk-pianoio: Native module 'SdkPianoio' is not available on ${Platform.OS}. ` +
|
33
|
+
'Make sure you have properly linked the library and rebuilt your app.'
|
34
|
+
);
|
35
|
+
}
|
36
|
+
|
37
|
+
export default SdkPianoio as SdkPianoioType;
|
package/src/PianoComposer.tsx
CHANGED
@@ -58,13 +58,13 @@ class PianoComposer {
|
|
58
58
|
return SdkPianoio.executeComposer();
|
59
59
|
}
|
60
60
|
|
61
|
-
async
|
61
|
+
async executeExperience() {
|
62
62
|
try {
|
63
|
-
let r = await SdkPianoio.
|
64
|
-
console.log('
|
63
|
+
let r = await SdkPianoio.executeExperience();
|
64
|
+
console.log('executeExperience triggered');
|
65
65
|
console.log('Experience executed:', r);
|
66
66
|
} catch (e) {
|
67
|
-
console.error('Errore nel
|
67
|
+
console.error('Errore nel executeExperience:', e);
|
68
68
|
}
|
69
69
|
}
|
70
70
|
|
package/src/debug.ts
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
2
|
+
|
3
|
+
export const debugNativeModule = () => {
|
4
|
+
console.log('🔍 Debugging Native Module...');
|
5
|
+
console.log('Platform:', Platform.OS);
|
6
|
+
console.log('Available Native Modules:', Object.keys(NativeModules));
|
7
|
+
|
8
|
+
const SdkPianoio = NativeModules.SdkPianoio;
|
9
|
+
console.log('SdkPianoio module:', SdkPianoio);
|
10
|
+
|
11
|
+
if (SdkPianoio) {
|
12
|
+
console.log('✅ SdkPianoio module found!');
|
13
|
+
console.log('Available methods:', Object.keys(SdkPianoio));
|
14
|
+
} else {
|
15
|
+
console.log('❌ SdkPianoio module NOT found!');
|
16
|
+
}
|
17
|
+
|
18
|
+
return SdkPianoio;
|
19
|
+
};
|
package/src/index.tsx
CHANGED
package/ios/ComposerPiano.swift
DELETED
@@ -1,304 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// ComposerPiano.swift
|
3
|
-
// SdkPianoio
|
4
|
-
//
|
5
|
-
//
|
6
|
-
import Foundation
|
7
|
-
import PianoComposer
|
8
|
-
import PianoOAuth
|
9
|
-
import PianoConsents
|
10
|
-
import PianoTemplate
|
11
|
-
import React
|
12
|
-
|
13
|
-
import SwiftUI
|
14
|
-
|
15
|
-
|
16
|
-
@objcMembers public class ComposerPianoImpl: NSObject {
|
17
|
-
private var composer: PianoComposer?;
|
18
|
-
private var delegateHelper : MyComposerDelegate?;
|
19
|
-
public static var aid = "";
|
20
|
-
|
21
|
-
@objc public func initializeComposer(_ aid: String) -> PianoComposer? {
|
22
|
-
ComposerPianoImpl.aid = aid;
|
23
|
-
let tokenService = TokenService();
|
24
|
-
delegateHelper = MyComposerDelegate(tokenService: tokenService);
|
25
|
-
composer = PianoComposer(aid: ComposerPianoImpl.aid, endpoint: PianoEndpoint.productionEurope);
|
26
|
-
composer = delegateHelper?.setComposerAndDelegate(composer!);
|
27
|
-
return composer;
|
28
|
-
}
|
29
|
-
|
30
|
-
@objc public func addTag(_ tag: String) -> PianoComposer? {
|
31
|
-
return composer?.tag(tag);
|
32
|
-
}
|
33
|
-
@objc public func addTagToComposer(_ composer: PianoComposer, tag: String) {
|
34
|
-
composer.tag(tag);
|
35
|
-
}
|
36
|
-
|
37
|
-
@objc public func addTags(_ tags: [String]) -> PianoComposer? {
|
38
|
-
return composer?.tags(tags);
|
39
|
-
}
|
40
|
-
|
41
|
-
@objc public func setZoneId(_ zoneId: String) -> PianoComposer? {
|
42
|
-
return composer?.zoneId(zoneId);
|
43
|
-
}
|
44
|
-
|
45
|
-
@objc public func setReferrer(_ referrer: String) -> PianoComposer? {
|
46
|
-
return composer?.referrer(referrer);
|
47
|
-
}
|
48
|
-
|
49
|
-
@objc public func setUrl(_ url: String) -> PianoComposer? {
|
50
|
-
return composer?.url(url);
|
51
|
-
}
|
52
|
-
|
53
|
-
@objc public func setCustomVariable(_ name: String, value: String) -> PianoComposer? {
|
54
|
-
return composer?.customVariable(name: name, value: value);
|
55
|
-
}
|
56
|
-
|
57
|
-
@objc public func setUserToken(_ token: String) -> PianoComposer? {
|
58
|
-
return composer?.userToken(token);
|
59
|
-
}
|
60
|
-
|
61
|
-
@objc public func executeComposer() {
|
62
|
-
print("Esecuzione composer")
|
63
|
-
DispatchQueue.main.async( group: nil, qos: .unspecified, flags: [], execute: {
|
64
|
-
guard let rootVC = UIApplication.shared.connectedScenes
|
65
|
-
.compactMap({ $0 as? UIWindowScene })
|
66
|
-
.first(where: { $0.activationState == .foregroundActive })?.windows
|
67
|
-
.first(where: { $0.isKeyWindow })?.rootViewController else {
|
68
|
-
|
69
|
-
return
|
70
|
-
}
|
71
|
-
if let composer = self.composer {
|
72
|
-
print("Va nell'esecuzione yaay")
|
73
|
-
|
74
|
-
composer.execute()
|
75
|
-
} else {
|
76
|
-
print("⚠️ Composer è nil")
|
77
|
-
}
|
78
|
-
})
|
79
|
-
}
|
80
|
-
|
81
|
-
// Delegate handler
|
82
|
-
@objc public func executeExperience(_ completion: @escaping (NSNumber) -> Void) {
|
83
|
-
let eventDict: [String: Any] = [
|
84
|
-
"eventType": "login"
|
85
|
-
]
|
86
|
-
let xpEvent = XpEvent(dict: eventDict)
|
87
|
-
|
88
|
-
guard let composer = composer, let _ = composer.delegate else {
|
89
|
-
completion(NSNumber(value: false))
|
90
|
-
return
|
91
|
-
}
|
92
|
-
|
93
|
-
delegateHelper?.executeExperience(composer: composer, event: xpEvent, params: nil)
|
94
|
-
}
|
95
|
-
|
96
|
-
@objc public func composerExecutionCompleted() {
|
97
|
-
let eventDict: [String: Any] = [
|
98
|
-
"eventType": "login"
|
99
|
-
]
|
100
|
-
let xpEvent = XpEvent(dict: eventDict)
|
101
|
-
|
102
|
-
if(composer != nil && composer!.delegate != nil ) {
|
103
|
-
delegateHelper?.composerExecutionCompleted(composer: composer!);
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
@objc public func showLogin() {
|
108
|
-
let eventDict: [String: Any] = [
|
109
|
-
"eventType": "login"
|
110
|
-
];
|
111
|
-
|
112
|
-
let xpEvent = XpEvent(dict: eventDict);
|
113
|
-
|
114
|
-
if(composer != nil && composer!.delegate != nil ) {
|
115
|
-
delegateHelper?.myShowLogin(composer: composer!, event: xpEvent, params: nil);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
@objc public func showTemplate() {
|
120
|
-
DispatchQueue.main.async {
|
121
|
-
guard let rootVC = UIApplication.shared
|
122
|
-
.connectedScenes
|
123
|
-
.compactMap({ $0 as? UIWindowScene })
|
124
|
-
.flatMap({ $0.windows })
|
125
|
-
.first(where: { $0.isKeyWindow })?
|
126
|
-
.rootViewController else {
|
127
|
-
print("⚠️ rootViewController non trovato")
|
128
|
-
return
|
129
|
-
}
|
130
|
-
|
131
|
-
let tokenService = self.delegateHelper!.tokenService
|
132
|
-
let view = ShowTemplateView(tokenService: tokenService)
|
133
|
-
let hostingController = UIHostingController(rootView: view)
|
134
|
-
hostingController.modalPresentationStyle = .fullScreen
|
135
|
-
|
136
|
-
rootVC.present(hostingController, animated: true, completion: nil)
|
137
|
-
}
|
138
|
-
}
|
139
|
-
|
140
|
-
@objc public func showForm() {
|
141
|
-
let eventDict: [String: Any] = [
|
142
|
-
"eventType": "form"
|
143
|
-
];
|
144
|
-
|
145
|
-
let xpEvent = XpEvent(dict: eventDict);
|
146
|
-
|
147
|
-
if(composer != nil && composer!.delegate != nil ) {
|
148
|
-
delegateHelper?.myShowForm(composer: composer!, event: xpEvent, params: nil);
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
@objc public func showRecommendations() {
|
153
|
-
let eventDict: [String: Any] = [
|
154
|
-
"eventType": "recommendations"
|
155
|
-
];
|
156
|
-
|
157
|
-
let xpEvent = XpEvent(dict: eventDict);
|
158
|
-
|
159
|
-
if(composer != nil && composer!.delegate != nil ) {
|
160
|
-
delegateHelper?.showRecommendations(composer: composer!, event: xpEvent, params: nil)
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
@objc public func nonSite() {
|
165
|
-
let eventDict: [String: Any] = [
|
166
|
-
"eventType": "nonSite"
|
167
|
-
]
|
168
|
-
|
169
|
-
let xpEvent = XpEvent(dict: eventDict)
|
170
|
-
|
171
|
-
if(composer != nil && composer!.delegate != nil ) {
|
172
|
-
delegateHelper?.nonSite(composer: composer!, event: xpEvent)
|
173
|
-
}
|
174
|
-
}
|
175
|
-
|
176
|
-
@objc public func userSegmentTrue() {
|
177
|
-
let eventDict: [String: Any] = [
|
178
|
-
"eventType": "userSegmentTrue"
|
179
|
-
]
|
180
|
-
|
181
|
-
let xpEvent = XpEvent(dict: eventDict)
|
182
|
-
|
183
|
-
if(composer != nil && composer!.delegate != nil ) {
|
184
|
-
delegateHelper?.userSegmentTrue(composer: composer!, event: xpEvent)
|
185
|
-
}
|
186
|
-
}
|
187
|
-
|
188
|
-
@objc public func userSegmentFalse() {
|
189
|
-
let eventDict: [String: Any] = [
|
190
|
-
"eventType": "userSegmentFalse"
|
191
|
-
]
|
192
|
-
|
193
|
-
let xpEvent = XpEvent(dict: eventDict)
|
194
|
-
|
195
|
-
if(composer != nil && composer!.delegate != nil ) {
|
196
|
-
delegateHelper?.userSegmentFalse(composer: composer!, event: xpEvent)
|
197
|
-
}
|
198
|
-
}
|
199
|
-
|
200
|
-
@objc public func meterActive() {
|
201
|
-
let eventDict: [String: Any] = [
|
202
|
-
"eventType": "meterActive"
|
203
|
-
]
|
204
|
-
|
205
|
-
let xpEvent = XpEvent(dict: eventDict)
|
206
|
-
|
207
|
-
if(composer != nil && composer!.delegate != nil ) {
|
208
|
-
delegateHelper?.meterActive(composer: composer!, event: xpEvent, params: nil)
|
209
|
-
}
|
210
|
-
}
|
211
|
-
|
212
|
-
@objc public func meterExpired() {
|
213
|
-
let eventDict: [String: Any] = [
|
214
|
-
"eventType": "meterExpired"
|
215
|
-
]
|
216
|
-
|
217
|
-
let xpEvent = XpEvent(dict: eventDict)
|
218
|
-
|
219
|
-
if(composer != nil && composer!.delegate != nil ) {
|
220
|
-
delegateHelper?.meterExpired(composer: composer!, event: xpEvent, params: nil)
|
221
|
-
}
|
222
|
-
}
|
223
|
-
|
224
|
-
@objc public func experienceExecute() {
|
225
|
-
let eventDict: [String: Any] = [
|
226
|
-
"eventType": "experienceExecute"
|
227
|
-
]
|
228
|
-
|
229
|
-
let xpEvent = XpEvent(dict: eventDict)
|
230
|
-
|
231
|
-
if(composer != nil && composer!.delegate != nil ) {
|
232
|
-
delegateHelper?.experienceExecute(composer: composer!, event: xpEvent, params: nil)
|
233
|
-
}
|
234
|
-
}
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
public func findViewBySelector(selector: String) -> UIView? {
|
239
|
-
return nil;
|
240
|
-
}
|
241
|
-
|
242
|
-
|
243
|
-
// method to get values and helpers
|
244
|
-
@objc public func getAid() -> String {
|
245
|
-
if(composer != nil){
|
246
|
-
return composer?.aid ?? "";
|
247
|
-
} else {
|
248
|
-
return "";
|
249
|
-
}
|
250
|
-
}
|
251
|
-
|
252
|
-
@objc public func getTags() -> [String] {
|
253
|
-
if let tags = composer?.tags, !tags.isEmpty {
|
254
|
-
return Array(tags) // Restituisce l'array dei tag se presenti e non vuoti
|
255
|
-
} else {
|
256
|
-
return [] // Restituisce un array vuoto se non ci sono tag
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
@objc public func getComposer() -> PianoComposer? {
|
261
|
-
return composer;
|
262
|
-
}
|
263
|
-
|
264
|
-
@objc public func getZoneId() -> String {
|
265
|
-
return composer?.zoneId ?? ""
|
266
|
-
}
|
267
|
-
|
268
|
-
@objc public func getReferrer() -> String {
|
269
|
-
return composer?.referrer ?? ""
|
270
|
-
}
|
271
|
-
|
272
|
-
@objc public func getUrl() -> String {
|
273
|
-
return composer?.url ?? ""
|
274
|
-
}
|
275
|
-
|
276
|
-
@objc public func getUserToken() -> String {
|
277
|
-
return composer?.userToken ?? ""
|
278
|
-
}
|
279
|
-
|
280
|
-
@objc public func addTagsToComposer(_ composer: PianoComposer, tags: [String]) {
|
281
|
-
composer.tags(tags)
|
282
|
-
}
|
283
|
-
|
284
|
-
@objc public func setCustomVariable(_ composer: PianoComposer, name: String, value: String) {
|
285
|
-
composer.customVariable(name: name, value: value)
|
286
|
-
}
|
287
|
-
|
288
|
-
@objc public func setReferrer(_ composer: PianoComposer, referrer: String) {
|
289
|
-
composer.referrer(referrer)
|
290
|
-
}
|
291
|
-
|
292
|
-
@objc public func setUrl(_ composer: PianoComposer, url: String) {
|
293
|
-
composer.url(url)
|
294
|
-
}
|
295
|
-
|
296
|
-
@objc public func setUserToken(_ composer: PianoComposer, token: String) {
|
297
|
-
composer.userToken(token)
|
298
|
-
}
|
299
|
-
|
300
|
-
@objc public func setZoneId(_ composer: PianoComposer, zoneId: String) {
|
301
|
-
composer.zoneId(zoneId)
|
302
|
-
}
|
303
|
-
|
304
|
-
}
|
package/ios/SdkPianoio.h
DELETED