cordova-plugin-repro 6.22.0 → 6.24.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/package.json +1 -1
- package/plugin.xml +2 -4
- package/repro-version.json +3 -3
- package/src/android/CordovaPlugin.java +682 -149
- package/src/android/repro-android-sdk.aar +0 -0
- package/src/ios/CDVRepro.h +1 -1
- package/src/ios/CDVRepro.m +155 -0
- package/src/ios/Repro.xcframework/Info.plist +8 -8
- package/src/ios/Repro.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/src/ios/Repro.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/src/ios/Repro.xcframework/_CodeSignature/CodeResources +18 -18
- package/src/ios/Repro.xcframework/_CodeSignature/CodeSignature +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Headers/Repro.h +70 -0
- package/src/ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Info.plist +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Repro +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/Repro.h +70 -0
- package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Repro +0 -0
- package/www/Repro.js +92 -0
|
Binary file
|
package/src/ios/CDVRepro.h
CHANGED
package/src/ios/CDVRepro.m
CHANGED
|
@@ -141,6 +141,137 @@
|
|
|
141
141
|
[Repro setUserAge:value.intValue];
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
- (void)onlySetIfAbsentStringUserProfile:(CDVInvokedUrlCommand*)command
|
|
145
|
+
{
|
|
146
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
147
|
+
NSString* value = [command.arguments objectAtIndex:1];
|
|
148
|
+
[Repro onlySetIfAbsentStringUserProfile:value forKey:key];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
- (void)onlySetIfAbsentIntUserProfile:(CDVInvokedUrlCommand*)command
|
|
152
|
+
{
|
|
153
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
154
|
+
NSNumber* value = [command.arguments objectAtIndex:1];
|
|
155
|
+
[Repro onlySetIfAbsentIntUserProfile:value.intValue forKey:key];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
- (void)onlySetIfAbsentDoubleUserProfile:(CDVInvokedUrlCommand*)command
|
|
159
|
+
{
|
|
160
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
161
|
+
NSNumber* value = [command.arguments objectAtIndex:1];
|
|
162
|
+
[Repro onlySetIfAbsentDoubleUserProfile:value.doubleValue forKey:key];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
- (void)onlySetIfAbsentDateUserProfile:(CDVInvokedUrlCommand*)command
|
|
166
|
+
{
|
|
167
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
168
|
+
NSNumber* timestamp = [command.arguments objectAtIndex:1];
|
|
169
|
+
NSDate* date = [NSDate dateWithTimeIntervalSince1970:(timestamp.longValue) / 1000.0];
|
|
170
|
+
[Repro onlySetIfAbsentDateUserProfile:date forKey:key];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
- (void)incrementIntUserProfileBy:(CDVInvokedUrlCommand*)command
|
|
174
|
+
{
|
|
175
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
176
|
+
NSNumber* value = [command.arguments objectAtIndex:1];
|
|
177
|
+
[Repro incrementIntUserProfileBy:value.intValue forKey:key];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
- (void)decrementIntUserProfileBy:(CDVInvokedUrlCommand*)command
|
|
181
|
+
{
|
|
182
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
183
|
+
NSNumber* value = [command.arguments objectAtIndex:1];
|
|
184
|
+
[Repro decrementIntUserProfileBy:value.intValue forKey:key];
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
- (void)incrementDoubleUserProfileBy:(CDVInvokedUrlCommand*)command
|
|
188
|
+
{
|
|
189
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
190
|
+
NSNumber* value = [command.arguments objectAtIndex:1];
|
|
191
|
+
[Repro incrementDoubleUserProfileBy:value.doubleValue forKey:key];
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
- (void)decrementDoubleUserProfileBy:(CDVInvokedUrlCommand*)command
|
|
195
|
+
{
|
|
196
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
197
|
+
NSNumber* value = [command.arguments objectAtIndex:1];
|
|
198
|
+
[Repro decrementDoubleUserProfileBy:value.doubleValue forKey:key];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
- (void)onlySetIfAbsentUserGender:(CDVInvokedUrlCommand*)command
|
|
202
|
+
{
|
|
203
|
+
NSNumber* gender = [command.arguments objectAtIndex:0];
|
|
204
|
+
[Repro onlySetIfAbsentUserGender:(RPRUserProfileGender)gender.intValue];
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
- (void)onlySetIfAbsentUserEmailAddress:(CDVInvokedUrlCommand*)command
|
|
208
|
+
{
|
|
209
|
+
NSString* email = [command.arguments objectAtIndex:0];
|
|
210
|
+
[Repro onlySetIfAbsentUserEmailAddress:email];
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
- (void)onlySetIfAbsentUserResidencePrefecture:(CDVInvokedUrlCommand*)command
|
|
214
|
+
{
|
|
215
|
+
NSNumber* prefecture = [command.arguments objectAtIndex:0];
|
|
216
|
+
[Repro onlySetIfAbsentUserResidencePrefecture:(RPRUserProfilePrefecture)prefecture.intValue];
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
- (void)onlySetIfAbsentUserDateOfBirth:(CDVInvokedUrlCommand*)command
|
|
220
|
+
{
|
|
221
|
+
NSNumber* value = [command.arguments objectAtIndex:0];
|
|
222
|
+
NSDate* date = [NSDate dateWithTimeIntervalSince1970:(value.longValue) / 1000.0];
|
|
223
|
+
[Repro onlySetIfAbsentUserDateOfBirth:date];
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
- (void)onlySetIfAbsentUserAge:(CDVInvokedUrlCommand*)command
|
|
227
|
+
{
|
|
228
|
+
NSNumber* age = [command.arguments objectAtIndex:0];
|
|
229
|
+
[Repro onlySetIfAbsentUserAge:age.intValue];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
- (void)incrementUserAgeBy:(CDVInvokedUrlCommand*)command
|
|
233
|
+
{
|
|
234
|
+
NSNumber* value = [command.arguments objectAtIndex:0];
|
|
235
|
+
[Repro incrementUserAgeBy:value.intValue];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
- (void)decrementUserAgeBy:(CDVInvokedUrlCommand*)command
|
|
239
|
+
{
|
|
240
|
+
NSNumber* value = [command.arguments objectAtIndex:0];
|
|
241
|
+
[Repro decrementUserAgeBy:value.intValue];
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
- (void)deleteUserProfile:(CDVInvokedUrlCommand*)command
|
|
245
|
+
{
|
|
246
|
+
NSString* key = [command.arguments objectAtIndex:0];
|
|
247
|
+
[Repro deleteUserProfile:key];
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
- (void)deleteUserGender:(CDVInvokedUrlCommand*)command
|
|
251
|
+
{
|
|
252
|
+
[Repro deleteUserGender];
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
- (void)deleteUserEmailAddress:(CDVInvokedUrlCommand*)command
|
|
256
|
+
{
|
|
257
|
+
[Repro deleteUserEmailAddress];
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
- (void)deleteUserResidencePrefecture:(CDVInvokedUrlCommand*)command
|
|
261
|
+
{
|
|
262
|
+
[Repro deleteUserResidencePrefecture];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
- (void)deleteUserDateOfBirth:(CDVInvokedUrlCommand*)command
|
|
266
|
+
{
|
|
267
|
+
[Repro deleteUserDateOfBirth];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
- (void)deleteUserAge:(CDVInvokedUrlCommand*)command
|
|
271
|
+
{
|
|
272
|
+
[Repro deleteUserAge];
|
|
273
|
+
}
|
|
274
|
+
|
|
144
275
|
- (void)track:(CDVInvokedUrlCommand*)command
|
|
145
276
|
{
|
|
146
277
|
NSString *eventName = [command.arguments objectAtIndex:0];
|
|
@@ -409,6 +540,30 @@ static NSDictionary* convertNSStringJSONToNSDictionary(NSString* json) {
|
|
|
409
540
|
[Repro setSilverEggProdKey:prodKey];
|
|
410
541
|
}
|
|
411
542
|
|
|
543
|
+
- (void)linkLineID:(CDVInvokedUrlCommand*)command
|
|
544
|
+
{
|
|
545
|
+
id lineUserId = [command.arguments objectAtIndex:0];
|
|
546
|
+
id lineChannelId = [command.arguments objectAtIndex:1];
|
|
547
|
+
if (![lineUserId isKindOfClass:NSString.class] || ![lineChannelId isKindOfClass:NSString.class]) {
|
|
548
|
+
NSLog(@"ERROR: Repro Didn't link LINE ID: LINE user ID and LINE channel ID are required, and should be String. null or undefined is not allowed.");
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
[Repro linkLineID:lineUserId lineChannelID:lineChannelId];
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
- (void)unlinkLineID:(CDVInvokedUrlCommand*)command
|
|
556
|
+
{
|
|
557
|
+
id lineUserId = [command.arguments objectAtIndex:0];
|
|
558
|
+
id lineChannelId = [command.arguments objectAtIndex:1];
|
|
559
|
+
if (![lineUserId isKindOfClass:NSString.class] || ![lineChannelId isKindOfClass:NSString.class]) {
|
|
560
|
+
NSLog(@"ERROR: Repro Didn't unlink LINE ID: LINE user ID and LINE channel ID are required, and should be String. null or undefined is not allowed.");
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
[Repro unlinkLineID:lineUserId lineChannelID:lineChannelId];
|
|
565
|
+
}
|
|
566
|
+
|
|
412
567
|
- (void)getNewsFeedsWithLimit:(CDVInvokedUrlCommand*)command
|
|
413
568
|
{
|
|
414
569
|
NSNumber* limit = [command.arguments objectAtIndex:0];
|
|
@@ -6,33 +6,33 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_armv7_armv7s</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>Repro.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>
|
|
16
|
-
<string>
|
|
15
|
+
<string>armv7</string>
|
|
16
|
+
<string>armv7s</string>
|
|
17
17
|
</array>
|
|
18
18
|
<key>SupportedPlatform</key>
|
|
19
19
|
<string>ios</string>
|
|
20
|
-
<key>SupportedPlatformVariant</key>
|
|
21
|
-
<string>simulator</string>
|
|
22
20
|
</dict>
|
|
23
21
|
<dict>
|
|
24
22
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
23
|
+
<string>ios-arm64_i386_x86_64-simulator</string>
|
|
26
24
|
<key>LibraryPath</key>
|
|
27
25
|
<string>Repro.framework</string>
|
|
28
26
|
<key>SupportedArchitectures</key>
|
|
29
27
|
<array>
|
|
30
28
|
<string>arm64</string>
|
|
31
|
-
<string>
|
|
32
|
-
<string>
|
|
29
|
+
<string>i386</string>
|
|
30
|
+
<string>x86_64</string>
|
|
33
31
|
</array>
|
|
34
32
|
<key>SupportedPlatform</key>
|
|
35
33
|
<string>ios</string>
|
|
34
|
+
<key>SupportedPlatformVariant</key>
|
|
35
|
+
<string>simulator</string>
|
|
36
36
|
</dict>
|
|
37
37
|
</array>
|
|
38
38
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Headers/Repro.h</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
2MLt0k+D6xaQsxA0FiQaLZdmwC0=
|
|
26
26
|
</data>
|
|
27
27
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Info.plist</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
Nk/O1/RLiTreMjEOrm30gOtBgU8=
|
|
30
30
|
</data>
|
|
31
31
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Modules/module.modulemap</key>
|
|
32
32
|
<data>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</data>
|
|
39
39
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Repro</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
veXFK7AKv9JjU0ESbzdAMKrbJEk=
|
|
42
42
|
</data>
|
|
43
43
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPREventProperties.h</key>
|
|
44
44
|
<data>
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
</data>
|
|
59
59
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/Repro.h</key>
|
|
60
60
|
<data>
|
|
61
|
-
|
|
61
|
+
2MLt0k+D6xaQsxA0FiQaLZdmwC0=
|
|
62
62
|
</data>
|
|
63
63
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
1U5K6Xob4ncbssB8QH1uyAqN6WE=
|
|
66
66
|
</data>
|
|
67
67
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Modules/module.modulemap</key>
|
|
68
68
|
<data>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</data>
|
|
75
75
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Repro</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
4VWfsM7IQjPVnsaVC6qv0mkHvM4=
|
|
78
78
|
</data>
|
|
79
79
|
</dict>
|
|
80
80
|
<key>files2</key>
|
|
@@ -127,22 +127,22 @@
|
|
|
127
127
|
<dict>
|
|
128
128
|
<key>hash</key>
|
|
129
129
|
<data>
|
|
130
|
-
|
|
130
|
+
2MLt0k+D6xaQsxA0FiQaLZdmwC0=
|
|
131
131
|
</data>
|
|
132
132
|
<key>hash2</key>
|
|
133
133
|
<data>
|
|
134
|
-
|
|
134
|
+
TKYEuw8EHz9bTdy5FcU6rMSJFqxOgM5vMlb3RVHR8zw=
|
|
135
135
|
</data>
|
|
136
136
|
</dict>
|
|
137
137
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Info.plist</key>
|
|
138
138
|
<dict>
|
|
139
139
|
<key>hash</key>
|
|
140
140
|
<data>
|
|
141
|
-
|
|
141
|
+
Nk/O1/RLiTreMjEOrm30gOtBgU8=
|
|
142
142
|
</data>
|
|
143
143
|
<key>hash2</key>
|
|
144
144
|
<data>
|
|
145
|
-
|
|
145
|
+
C8av7u+ROzY/OSGm/w5frzfkfPBEY/rsP0UQpwILMS4=
|
|
146
146
|
</data>
|
|
147
147
|
</dict>
|
|
148
148
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Modules/module.modulemap</key>
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
<dict>
|
|
172
172
|
<key>hash</key>
|
|
173
173
|
<data>
|
|
174
|
-
|
|
174
|
+
veXFK7AKv9JjU0ESbzdAMKrbJEk=
|
|
175
175
|
</data>
|
|
176
176
|
<key>hash2</key>
|
|
177
177
|
<data>
|
|
178
|
-
|
|
178
|
+
S1AaVjsAtsgZtG3KqzbsbNYZT6aFSpmnMnepqQL1BiY=
|
|
179
179
|
</data>
|
|
180
180
|
</dict>
|
|
181
181
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPREventProperties.h</key>
|
|
@@ -226,22 +226,22 @@
|
|
|
226
226
|
<dict>
|
|
227
227
|
<key>hash</key>
|
|
228
228
|
<data>
|
|
229
|
-
|
|
229
|
+
2MLt0k+D6xaQsxA0FiQaLZdmwC0=
|
|
230
230
|
</data>
|
|
231
231
|
<key>hash2</key>
|
|
232
232
|
<data>
|
|
233
|
-
|
|
233
|
+
TKYEuw8EHz9bTdy5FcU6rMSJFqxOgM5vMlb3RVHR8zw=
|
|
234
234
|
</data>
|
|
235
235
|
</dict>
|
|
236
236
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist</key>
|
|
237
237
|
<dict>
|
|
238
238
|
<key>hash</key>
|
|
239
239
|
<data>
|
|
240
|
-
|
|
240
|
+
1U5K6Xob4ncbssB8QH1uyAqN6WE=
|
|
241
241
|
</data>
|
|
242
242
|
<key>hash2</key>
|
|
243
243
|
<data>
|
|
244
|
-
|
|
244
|
+
0Qy6iShzVDp3GaC5cRNUkyyePiwEIzZlsCkxHjZtFTg=
|
|
245
245
|
</data>
|
|
246
246
|
</dict>
|
|
247
247
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Modules/module.modulemap</key>
|
|
@@ -270,11 +270,11 @@
|
|
|
270
270
|
<dict>
|
|
271
271
|
<key>hash</key>
|
|
272
272
|
<data>
|
|
273
|
-
|
|
273
|
+
4VWfsM7IQjPVnsaVC6qv0mkHvM4=
|
|
274
274
|
</data>
|
|
275
275
|
<key>hash2</key>
|
|
276
276
|
<data>
|
|
277
|
-
|
|
277
|
+
VroyzL0X/TgNry0yu6vJpuKa+Bq2f4rXCpFdgly43zQ=
|
|
278
278
|
</data>
|
|
279
279
|
</dict>
|
|
280
280
|
</dict>
|
|
Binary file
|
|
@@ -52,30 +52,93 @@ NS_SWIFT_NAME(deviceID());
|
|
|
52
52
|
+ (void)setStringUserProfile:(nonnull NSString *)value forKey:(nonnull NSString *)key
|
|
53
53
|
NS_SWIFT_NAME(setUserProfile(stringValue:forKey:));
|
|
54
54
|
|
|
55
|
+
+ (void)onlySetIfAbsentStringUserProfile:(nonnull NSString *)value forKey:(nonnull NSString *)key
|
|
56
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(stringValue:forKey:));
|
|
57
|
+
|
|
55
58
|
+ (void)setIntUserProfile:(NSInteger)value forKey:(nonnull NSString *)key
|
|
56
59
|
NS_SWIFT_NAME(setUserProfile(integerValue:forKey:));
|
|
57
60
|
|
|
61
|
+
+ (void)incrementIntUserProfileBy:(NSInteger)amount forKey:(nonnull NSString *)key
|
|
62
|
+
NS_SWIFT_NAME(incrementIntegerUserProfile(by:forKey:));
|
|
63
|
+
|
|
64
|
+
+ (void)decrementIntUserProfileBy:(NSInteger)amount forKey:(nonnull NSString *)key
|
|
65
|
+
NS_SWIFT_NAME(decrementIntegerUserProfile(by:forKey:));
|
|
66
|
+
|
|
67
|
+
+ (void)onlySetIfAbsentIntUserProfile:(NSInteger)value forKey:(nonnull NSString *)key
|
|
68
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(integerValue:forKey:));
|
|
69
|
+
|
|
58
70
|
+ (void)setDoubleUserProfile:(double)value forKey:(nonnull NSString *)key
|
|
59
71
|
NS_SWIFT_NAME(setUserProfile(doubleValue:forKey:));
|
|
60
72
|
|
|
73
|
+
+ (void)incrementDoubleUserProfileBy:(double)amount forKey:(nonnull NSString *)key
|
|
74
|
+
NS_SWIFT_NAME(incrementDoubleUserProfile(by:forKey:));
|
|
75
|
+
|
|
76
|
+
+ (void)decrementDoubleUserProfileBy:(double)amount forKey:(nonnull NSString *)key
|
|
77
|
+
NS_SWIFT_NAME(decrementDoubleUserProfile(by:forKey:));
|
|
78
|
+
|
|
79
|
+
+ (void)onlySetIfAbsentDoubleUserProfile:(double)value forKey:(nonnull NSString *)key
|
|
80
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(doubleValue:forKey:));
|
|
81
|
+
|
|
61
82
|
+ (void)setDateUserProfile:(nonnull NSDate *)value forKey:(nonnull NSString *)key
|
|
62
83
|
NS_SWIFT_NAME(setUserProfile(dateValue:forKey:));
|
|
63
84
|
|
|
85
|
+
+ (void)onlySetIfAbsentDateUserProfile:(nonnull NSDate *)value forKey:(nonnull NSString *)key
|
|
86
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(dateValue:forKey:));
|
|
87
|
+
|
|
64
88
|
+ (void)setUserGender:(RPRUserProfileGender)value
|
|
65
89
|
NS_SWIFT_NAME(setUserProfile(gender:));
|
|
66
90
|
|
|
91
|
+
+ (void)onlySetIfAbsentUserGender:(RPRUserProfileGender)value
|
|
92
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(gender:));
|
|
93
|
+
|
|
67
94
|
+ (void)setUserEmailAddress:(nonnull NSString *)value
|
|
68
95
|
NS_SWIFT_NAME(setUserProfile(emailAddress:));
|
|
69
96
|
|
|
97
|
+
+ (void)onlySetIfAbsentUserEmailAddress:(nonnull NSString *)value
|
|
98
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(emailAddress:));
|
|
99
|
+
|
|
70
100
|
+ (void)setUserResidencePrefecture:(RPRUserProfilePrefecture)value
|
|
71
101
|
NS_SWIFT_NAME(setUserProfile(residencePrefecture:));
|
|
72
102
|
|
|
103
|
+
+ (void)onlySetIfAbsentUserResidencePrefecture:(RPRUserProfilePrefecture)value
|
|
104
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(residencePrefecture:));
|
|
105
|
+
|
|
73
106
|
+ (void)setUserDateOfBirth:(nonnull NSDate *)value
|
|
74
107
|
NS_SWIFT_NAME(setUserProfile(dateOfBirth:));
|
|
75
108
|
|
|
109
|
+
+ (void)onlySetIfAbsentUserDateOfBirth:(nonnull NSDate *)value
|
|
110
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(dateOfBirth:));
|
|
111
|
+
|
|
76
112
|
+ (void)setUserAge:(NSInteger)value
|
|
77
113
|
NS_SWIFT_NAME(setUserProfile(age:));
|
|
78
114
|
|
|
115
|
+
+ (void)incrementUserAgeBy:(NSInteger)amount
|
|
116
|
+
NS_SWIFT_NAME(incrementUserProfileAge(by:));
|
|
117
|
+
|
|
118
|
+
+ (void)decrementUserAgeBy:(NSInteger)amount
|
|
119
|
+
NS_SWIFT_NAME(decrementUserProfileAge(by:));
|
|
120
|
+
|
|
121
|
+
+ (void)onlySetIfAbsentUserAge:(NSInteger)value
|
|
122
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(age:));
|
|
123
|
+
|
|
124
|
+
+ (void)deleteUserProfile:(nonnull NSString *)key
|
|
125
|
+
NS_SWIFT_NAME(deleteUserProfile(forKey:));
|
|
126
|
+
|
|
127
|
+
+ (void)deleteUserGender
|
|
128
|
+
NS_SWIFT_NAME(deleteUserProfileGender());
|
|
129
|
+
|
|
130
|
+
+ (void)deleteUserEmailAddress
|
|
131
|
+
NS_SWIFT_NAME(deleteUserProfileEmailAddress());
|
|
132
|
+
|
|
133
|
+
+ (void)deleteUserResidencePrefecture
|
|
134
|
+
NS_SWIFT_NAME(deleteUserProfileResidencePrefecture());
|
|
135
|
+
|
|
136
|
+
+ (void)deleteUserDateOfBirth
|
|
137
|
+
NS_SWIFT_NAME(deleteUserProfileDateOfBirth());
|
|
138
|
+
|
|
139
|
+
+ (void)deleteUserAge
|
|
140
|
+
NS_SWIFT_NAME(deleteUserProfileAge());
|
|
141
|
+
|
|
79
142
|
|
|
80
143
|
// Event tracking
|
|
81
144
|
+ (void)track:(nonnull NSString *)name
|
|
@@ -190,4 +253,11 @@ NS_SWIFT_NAME(updateNewsFeeds(_:));
|
|
|
190
253
|
|
|
191
254
|
+ (BOOL)filterReproDeeplinks:(nonnull id)obj;
|
|
192
255
|
|
|
256
|
+
// LINE Integration
|
|
257
|
+
+ (void)linkLineID:(nonnull NSString *)lineUserId lineChannelID:(nonnull NSString *)lineChannelId
|
|
258
|
+
NS_SWIFT_NAME(linkLineID(lineUserID:lineChannelID:));
|
|
259
|
+
|
|
260
|
+
+ (void)unlinkLineID:(nonnull NSString *)lineUserId lineChannelID:(nonnull NSString *)lineChannelId
|
|
261
|
+
NS_SWIFT_NAME(unlinkLineID(lineUserID:lineChannelID:));
|
|
262
|
+
|
|
193
263
|
@end
|
|
Binary file
|
|
Binary file
|
package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/Repro.h
CHANGED
|
@@ -52,30 +52,93 @@ NS_SWIFT_NAME(deviceID());
|
|
|
52
52
|
+ (void)setStringUserProfile:(nonnull NSString *)value forKey:(nonnull NSString *)key
|
|
53
53
|
NS_SWIFT_NAME(setUserProfile(stringValue:forKey:));
|
|
54
54
|
|
|
55
|
+
+ (void)onlySetIfAbsentStringUserProfile:(nonnull NSString *)value forKey:(nonnull NSString *)key
|
|
56
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(stringValue:forKey:));
|
|
57
|
+
|
|
55
58
|
+ (void)setIntUserProfile:(NSInteger)value forKey:(nonnull NSString *)key
|
|
56
59
|
NS_SWIFT_NAME(setUserProfile(integerValue:forKey:));
|
|
57
60
|
|
|
61
|
+
+ (void)incrementIntUserProfileBy:(NSInteger)amount forKey:(nonnull NSString *)key
|
|
62
|
+
NS_SWIFT_NAME(incrementIntegerUserProfile(by:forKey:));
|
|
63
|
+
|
|
64
|
+
+ (void)decrementIntUserProfileBy:(NSInteger)amount forKey:(nonnull NSString *)key
|
|
65
|
+
NS_SWIFT_NAME(decrementIntegerUserProfile(by:forKey:));
|
|
66
|
+
|
|
67
|
+
+ (void)onlySetIfAbsentIntUserProfile:(NSInteger)value forKey:(nonnull NSString *)key
|
|
68
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(integerValue:forKey:));
|
|
69
|
+
|
|
58
70
|
+ (void)setDoubleUserProfile:(double)value forKey:(nonnull NSString *)key
|
|
59
71
|
NS_SWIFT_NAME(setUserProfile(doubleValue:forKey:));
|
|
60
72
|
|
|
73
|
+
+ (void)incrementDoubleUserProfileBy:(double)amount forKey:(nonnull NSString *)key
|
|
74
|
+
NS_SWIFT_NAME(incrementDoubleUserProfile(by:forKey:));
|
|
75
|
+
|
|
76
|
+
+ (void)decrementDoubleUserProfileBy:(double)amount forKey:(nonnull NSString *)key
|
|
77
|
+
NS_SWIFT_NAME(decrementDoubleUserProfile(by:forKey:));
|
|
78
|
+
|
|
79
|
+
+ (void)onlySetIfAbsentDoubleUserProfile:(double)value forKey:(nonnull NSString *)key
|
|
80
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(doubleValue:forKey:));
|
|
81
|
+
|
|
61
82
|
+ (void)setDateUserProfile:(nonnull NSDate *)value forKey:(nonnull NSString *)key
|
|
62
83
|
NS_SWIFT_NAME(setUserProfile(dateValue:forKey:));
|
|
63
84
|
|
|
85
|
+
+ (void)onlySetIfAbsentDateUserProfile:(nonnull NSDate *)value forKey:(nonnull NSString *)key
|
|
86
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(dateValue:forKey:));
|
|
87
|
+
|
|
64
88
|
+ (void)setUserGender:(RPRUserProfileGender)value
|
|
65
89
|
NS_SWIFT_NAME(setUserProfile(gender:));
|
|
66
90
|
|
|
91
|
+
+ (void)onlySetIfAbsentUserGender:(RPRUserProfileGender)value
|
|
92
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(gender:));
|
|
93
|
+
|
|
67
94
|
+ (void)setUserEmailAddress:(nonnull NSString *)value
|
|
68
95
|
NS_SWIFT_NAME(setUserProfile(emailAddress:));
|
|
69
96
|
|
|
97
|
+
+ (void)onlySetIfAbsentUserEmailAddress:(nonnull NSString *)value
|
|
98
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(emailAddress:));
|
|
99
|
+
|
|
70
100
|
+ (void)setUserResidencePrefecture:(RPRUserProfilePrefecture)value
|
|
71
101
|
NS_SWIFT_NAME(setUserProfile(residencePrefecture:));
|
|
72
102
|
|
|
103
|
+
+ (void)onlySetIfAbsentUserResidencePrefecture:(RPRUserProfilePrefecture)value
|
|
104
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(residencePrefecture:));
|
|
105
|
+
|
|
73
106
|
+ (void)setUserDateOfBirth:(nonnull NSDate *)value
|
|
74
107
|
NS_SWIFT_NAME(setUserProfile(dateOfBirth:));
|
|
75
108
|
|
|
109
|
+
+ (void)onlySetIfAbsentUserDateOfBirth:(nonnull NSDate *)value
|
|
110
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(dateOfBirth:));
|
|
111
|
+
|
|
76
112
|
+ (void)setUserAge:(NSInteger)value
|
|
77
113
|
NS_SWIFT_NAME(setUserProfile(age:));
|
|
78
114
|
|
|
115
|
+
+ (void)incrementUserAgeBy:(NSInteger)amount
|
|
116
|
+
NS_SWIFT_NAME(incrementUserProfileAge(by:));
|
|
117
|
+
|
|
118
|
+
+ (void)decrementUserAgeBy:(NSInteger)amount
|
|
119
|
+
NS_SWIFT_NAME(decrementUserProfileAge(by:));
|
|
120
|
+
|
|
121
|
+
+ (void)onlySetIfAbsentUserAge:(NSInteger)value
|
|
122
|
+
NS_SWIFT_NAME(onlySetIfAbsentUserProfile(age:));
|
|
123
|
+
|
|
124
|
+
+ (void)deleteUserProfile:(nonnull NSString *)key
|
|
125
|
+
NS_SWIFT_NAME(deleteUserProfile(forKey:));
|
|
126
|
+
|
|
127
|
+
+ (void)deleteUserGender
|
|
128
|
+
NS_SWIFT_NAME(deleteUserProfileGender());
|
|
129
|
+
|
|
130
|
+
+ (void)deleteUserEmailAddress
|
|
131
|
+
NS_SWIFT_NAME(deleteUserProfileEmailAddress());
|
|
132
|
+
|
|
133
|
+
+ (void)deleteUserResidencePrefecture
|
|
134
|
+
NS_SWIFT_NAME(deleteUserProfileResidencePrefecture());
|
|
135
|
+
|
|
136
|
+
+ (void)deleteUserDateOfBirth
|
|
137
|
+
NS_SWIFT_NAME(deleteUserProfileDateOfBirth());
|
|
138
|
+
|
|
139
|
+
+ (void)deleteUserAge
|
|
140
|
+
NS_SWIFT_NAME(deleteUserProfileAge());
|
|
141
|
+
|
|
79
142
|
|
|
80
143
|
// Event tracking
|
|
81
144
|
+ (void)track:(nonnull NSString *)name
|
|
@@ -190,4 +253,11 @@ NS_SWIFT_NAME(updateNewsFeeds(_:));
|
|
|
190
253
|
|
|
191
254
|
+ (BOOL)filterReproDeeplinks:(nonnull id)obj;
|
|
192
255
|
|
|
256
|
+
// LINE Integration
|
|
257
|
+
+ (void)linkLineID:(nonnull NSString *)lineUserId lineChannelID:(nonnull NSString *)lineChannelId
|
|
258
|
+
NS_SWIFT_NAME(linkLineID(lineUserID:lineChannelID:));
|
|
259
|
+
|
|
260
|
+
+ (void)unlinkLineID:(nonnull NSString *)lineUserId lineChannelID:(nonnull NSString *)lineChannelId
|
|
261
|
+
NS_SWIFT_NAME(unlinkLineID(lineUserID:lineChannelID:));
|
|
262
|
+
|
|
193
263
|
@end
|
package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
package/www/Repro.js
CHANGED
|
@@ -54,6 +54,90 @@ Repro.prototype.setUserAge = function (age, successCallback, errorCallback) {
|
|
|
54
54
|
exec(successCallback, errorCallback, "Repro", "setUserAge", [age]);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
Repro.prototype.onlySetIfAbsentStringUserProfile = function (key, value, successCallback, errorCallback) {
|
|
58
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentStringUserProfile", [key, value]);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
Repro.prototype.onlySetIfAbsentIntUserProfile = function (key, value, successCallback, errorCallback) {
|
|
62
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentIntUserProfile", [key, value]);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
Repro.prototype.onlySetIfAbsentDoubleUserProfile = function (key, value, successCallback, errorCallback) {
|
|
66
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentDoubleUserProfile", [key, value]);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
Repro.prototype.onlySetIfAbsentDateUserProfile = function (key, value, successCallback, errorCallback) {
|
|
70
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentDateUserProfile", [key, value.getTime()]);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
Repro.prototype.incrementIntUserProfileBy = function (key, value, successCallback, errorCallback) {
|
|
74
|
+
exec(successCallback, errorCallback, "Repro", "incrementIntUserProfileBy", [key, value]);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
Repro.prototype.decrementIntUserProfileBy = function (key, value, successCallback, errorCallback) {
|
|
78
|
+
exec(successCallback, errorCallback, "Repro", "decrementIntUserProfileBy", [key, value]);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
Repro.prototype.incrementDoubleUserProfileBy = function (key, value, successCallback, errorCallback) {
|
|
82
|
+
exec(successCallback, errorCallback, "Repro", "incrementDoubleUserProfileBy", [key, value]);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
Repro.prototype.decrementDoubleUserProfileBy = function (key, value, successCallback, errorCallback) {
|
|
86
|
+
exec(successCallback, errorCallback, "Repro", "decrementDoubleUserProfileBy", [key, value]);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
Repro.prototype.onlySetIfAbsentUserGender = function (gender, successCallback, errorCallback) {
|
|
90
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentUserGender", [gender]);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
Repro.prototype.onlySetIfAbsentUserEmailAddress = function (email, successCallback, errorCallback) {
|
|
94
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentUserEmailAddress", [email]);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
Repro.prototype.onlySetIfAbsentUserResidencePrefecture = function (prefecture, successCallback, errorCallback) {
|
|
98
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentUserResidencePrefecture", [prefecture]);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
Repro.prototype.onlySetIfAbsentUserDateOfBirth = function (date, successCallback, errorCallback) {
|
|
102
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentUserDateOfBirth", [date.getTime()]);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
Repro.prototype.onlySetIfAbsentUserAge = function (age, successCallback, errorCallback) {
|
|
106
|
+
exec(successCallback, errorCallback, "Repro", "onlySetIfAbsentUserAge", [age]);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
Repro.prototype.incrementUserAgeBy = function (value, successCallback, errorCallback) {
|
|
110
|
+
exec(successCallback, errorCallback, "Repro", "incrementUserAgeBy", [value]);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
Repro.prototype.decrementUserAgeBy = function (value, successCallback, errorCallback) {
|
|
114
|
+
exec(successCallback, errorCallback, "Repro", "decrementUserAgeBy", [value]);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
Repro.prototype.deleteUserProfile = function (key, successCallback, errorCallback) {
|
|
118
|
+
exec(successCallback, errorCallback, "Repro", "deleteUserProfile", [key]);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
Repro.prototype.deleteUserGender = function (successCallback, errorCallback) {
|
|
122
|
+
exec(successCallback, errorCallback, "Repro", "deleteUserGender", []);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
Repro.prototype.deleteUserEmailAddress = function (successCallback, errorCallback) {
|
|
126
|
+
exec(successCallback, errorCallback, "Repro", "deleteUserEmailAddress", []);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
Repro.prototype.deleteUserResidencePrefecture = function (successCallback, errorCallback) {
|
|
130
|
+
exec(successCallback, errorCallback, "Repro", "deleteUserResidencePrefecture", []);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
Repro.prototype.deleteUserDateOfBirth = function (successCallback, errorCallback) {
|
|
134
|
+
exec(successCallback, errorCallback, "Repro", "deleteUserDateOfBirth", []);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
Repro.prototype.deleteUserAge = function (successCallback, errorCallback) {
|
|
138
|
+
exec(successCallback, errorCallback, "Repro", "deleteUserAge", []);
|
|
139
|
+
};
|
|
140
|
+
|
|
57
141
|
Repro.prototype.track = function (eventName, successCallback, errorCallback) {
|
|
58
142
|
exec(successCallback, errorCallback, "Repro", "track", [eventName]);
|
|
59
143
|
};
|
|
@@ -146,6 +230,14 @@ Repro.prototype.setSilverEggProdKey = function (prodKey, successCallback, errorC
|
|
|
146
230
|
exec(successCallback, errorCallback, "Repro", "setSilverEggProdKey", [prodKey]);
|
|
147
231
|
};
|
|
148
232
|
|
|
233
|
+
Repro.prototype.linkLineID = function (lineUserId, lineChannelId, successCallback, errorCallback) {
|
|
234
|
+
exec(successCallback, errorCallback, "Repro", "linkLineID", [lineUserId, lineChannelId]);
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
Repro.prototype.unlinkLineID = function (lineUserId, lineChannelId, successCallback, errorCallback) {
|
|
238
|
+
exec(successCallback, errorCallback, "Repro", "unlinkLineID", [lineUserId, lineChannelId]);
|
|
239
|
+
};
|
|
240
|
+
|
|
149
241
|
Repro.prototype.getNewsFeedsWithLimit = function (limit, successCallback, errorCallback) {
|
|
150
242
|
exec(successCallback, errorCallback, "Repro", "getNewsFeedsWithLimit", [limit]);
|
|
151
243
|
};
|