react-native-repro 3.7.0 → 3.10.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/android/build.gradle +2 -4
- package/android/src/main/java/io/repro/android/reactbridge/ReproEventEmitterOpenUrl.java +52 -0
- package/android/src/main/java/io/repro/android/reactbridge/ReproReactBridgeModule.java +36 -2
- package/android/src/main/java/io/repro/android/reactbridge/ReproReactBridgePackage.java +5 -1
- package/index.js +22 -1
- package/ios/RPRReproReactBridge.h +27 -1
- package/ios/RPRReproReactBridge.m +98 -0
- package/package.json +2 -2
- package/repro-version.json +3 -3
- package/sdk-android/io/repro/repro-android-sdk/5.7.0/repro-android-sdk-5.7.0.aar +0 -0
- package/sdk-android/io/repro/repro-android-sdk/5.7.0/repro-android-sdk-5.7.0.aar.md5 +1 -0
- package/sdk-android/io/repro/repro-android-sdk/5.7.0/repro-android-sdk-5.7.0.aar.sha1 +1 -0
- package/sdk-android/io/repro/repro-android-sdk/{5.6.0/repro-android-sdk-5.6.0.pom → 5.7.0/repro-android-sdk-5.7.0.pom} +1 -1
- package/sdk-android/io/repro/repro-android-sdk/5.7.0/repro-android-sdk-5.7.0.pom.md5 +1 -0
- package/sdk-android/io/repro/repro-android-sdk/5.7.0/repro-android-sdk-5.7.0.pom.sha1 +1 -0
- package/sdk-android/io/repro/repro-android-sdk/maven-metadata.xml +3 -3
- package/sdk-android/io/repro/repro-android-sdk/maven-metadata.xml.md5 +1 -1
- package/sdk-android/io/repro/repro-android-sdk/maven-metadata.xml.sha1 +1 -1
- package/sdk-ios/Repro.xcframework/Info.plist +8 -8
- package/sdk-ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Headers/RPRRemoteConfig.h +2 -2
- package/sdk-ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Headers/Repro.h +13 -0
- package/sdk-ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Info.plist +0 -0
- package/sdk-ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Repro +0 -0
- package/sdk-ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPRRemoteConfig.h +2 -2
- package/sdk-ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/Repro.h +13 -0
- package/sdk-ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist +0 -0
- package/sdk-ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Repro +0 -0
- package/sdk-android/io/repro/repro-android-sdk/5.6.0/repro-android-sdk-5.6.0.aar +0 -0
- package/sdk-android/io/repro/repro-android-sdk/5.6.0/repro-android-sdk-5.6.0.aar.md5 +0 -1
- package/sdk-android/io/repro/repro-android-sdk/5.6.0/repro-android-sdk-5.6.0.aar.sha1 +0 -1
- package/sdk-android/io/repro/repro-android-sdk/5.6.0/repro-android-sdk-5.6.0.pom.md5 +0 -1
- package/sdk-android/io/repro/repro-android-sdk/5.6.0/repro-android-sdk-5.6.0.pom.sha1 +0 -1
package/android/build.gradle
CHANGED
|
@@ -23,10 +23,8 @@ repositories {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
dependencies {
|
|
26
|
-
|
|
26
|
+
implementation "com.facebook.react:react-native:${getMainProp('reactNativeVersion', '+')}"
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
// change it to 'api' in order to expose Repro library functions to the gradle main project.
|
|
30
|
-
compile "io.repro:repro-android-sdk:+"
|
|
28
|
+
api "io.repro:repro-android-sdk:+"
|
|
31
29
|
}
|
|
32
30
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
package io.repro.android.reactbridge;
|
|
3
|
+
|
|
4
|
+
import android.net.Uri;
|
|
5
|
+
|
|
6
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
7
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
8
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
9
|
+
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
|
10
|
+
|
|
11
|
+
import io.repro.android.Repro;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
public class ReproEventEmitterOpenUrl extends ReactContextBaseJavaModule {
|
|
15
|
+
|
|
16
|
+
private final ReactApplicationContext reactContext;
|
|
17
|
+
|
|
18
|
+
public ReproEventEmitterOpenUrl(ReactApplicationContext reactContext) {
|
|
19
|
+
super(reactContext);
|
|
20
|
+
this.reactContext = reactContext;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// private void sendEvent(String eventName, @Nullable WritableMap params) {
|
|
24
|
+
private void sendEvent(String eventName, Object parameter) {
|
|
25
|
+
this.reactContext
|
|
26
|
+
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
|
|
27
|
+
.emit(eventName, parameter);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@Override
|
|
31
|
+
public String getName() {
|
|
32
|
+
return "RPREventEmitterOpenUrl";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@ReactMethod
|
|
36
|
+
public void addListener(String eventName) {
|
|
37
|
+
Repro.setOpenUrlCallback(new Repro.OpenUrlCallback() {
|
|
38
|
+
@Override
|
|
39
|
+
public void onOpened(Uri uri) {
|
|
40
|
+
sendEvent("__RPR__openUrlCallback", uri.toString());
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@ReactMethod
|
|
46
|
+
public void removeListeners(Integer count) {
|
|
47
|
+
Repro.setOpenUrlCallback(null);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
@@ -14,10 +14,10 @@ import com.facebook.react.bridge.WritableArray;
|
|
|
14
14
|
import com.facebook.react.bridge.WritableNativeArray;
|
|
15
15
|
import com.facebook.react.bridge.ReadableArray;
|
|
16
16
|
import com.facebook.react.bridge.Arguments;
|
|
17
|
+
import com.facebook.react.modules.systeminfo.ReactNativeVersion;
|
|
17
18
|
|
|
18
|
-
import java.
|
|
19
|
+
import java.lang.reflect.Method;
|
|
19
20
|
import java.util.HashMap;
|
|
20
|
-
import java.util.Iterator;
|
|
21
21
|
import java.util.Map;
|
|
22
22
|
import java.util.ArrayList;
|
|
23
23
|
import java.util.List;
|
|
@@ -57,9 +57,43 @@ public class ReproReactBridgeModule extends ReactContextBaseJavaModule {
|
|
|
57
57
|
|
|
58
58
|
private final ReactApplicationContext reactContext;
|
|
59
59
|
|
|
60
|
+
private static final String REPRO_REACT_NATIVE_BRIDGE_VERSION = "3.10.0";
|
|
61
|
+
|
|
60
62
|
public ReproReactBridgeModule(ReactApplicationContext reactContext) {
|
|
61
63
|
super(reactContext);
|
|
62
64
|
this.reactContext = reactContext;
|
|
65
|
+
this.versionPassing();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private String getReactNativeVersion() {
|
|
69
|
+
try {
|
|
70
|
+
return String.format(Locale.US, "%d.%d.%d",
|
|
71
|
+
ReactNativeVersion.VERSION.get("major"),
|
|
72
|
+
ReactNativeVersion.VERSION.get("minor"),
|
|
73
|
+
ReactNativeVersion.VERSION.get("patch")
|
|
74
|
+
);
|
|
75
|
+
} catch (Throwable t) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
private void versionPassing() {
|
|
81
|
+
final Map<String, Object> platformValues = new HashMap<>();
|
|
82
|
+
platformValues.put("sub_sdk_platform", "react_native");
|
|
83
|
+
platformValues.put("sub_sdk_bridge_version", REPRO_REACT_NATIVE_BRIDGE_VERSION);
|
|
84
|
+
|
|
85
|
+
String rnVerString = getReactNativeVersion();
|
|
86
|
+
if (rnVerString != null) {
|
|
87
|
+
platformValues.put("sub_sdk_platform_version", rnVerString);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
try {
|
|
91
|
+
Method method = Repro.class.getDeclaredMethod("_passRuntimeValues", Map.class);
|
|
92
|
+
method.setAccessible(true);
|
|
93
|
+
method.invoke(null, platformValues);
|
|
94
|
+
} catch (Throwable t) {
|
|
95
|
+
t.printStackTrace();
|
|
96
|
+
}
|
|
63
97
|
}
|
|
64
98
|
|
|
65
99
|
@Override
|
|
@@ -16,7 +16,11 @@ public class ReproReactBridgePackage implements ReactPackage {
|
|
|
16
16
|
|
|
17
17
|
@Override
|
|
18
18
|
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
19
|
-
return Arrays.<NativeModule>asList(
|
|
19
|
+
return Arrays.<NativeModule>asList(
|
|
20
|
+
new ReproReactBridgeModule(reactContext),
|
|
21
|
+
new ReproEventEmitterOpenUrl(reactContext),
|
|
22
|
+
new ReproRemoteConfigBridge(reactContext)
|
|
23
|
+
);
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
// Deprecated from RN 0.47
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
//
|
|
3
3
|
// import Repro from 'react-native-repro';
|
|
4
4
|
|
|
5
|
-
import { NativeModules } from 'react-native';
|
|
5
|
+
import { NativeModules, NativeEventEmitter } from 'react-native';
|
|
6
6
|
|
|
7
7
|
const safeString = (str) => {
|
|
8
8
|
if (str && str === 'null') { return null };
|
|
@@ -210,11 +210,32 @@ class RemoteConfigModule {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
|
|
214
|
+
class EventEmitterOpenUrl {
|
|
215
|
+
static setCallback(callback)
|
|
216
|
+
{
|
|
217
|
+
if (!this.emitter) {
|
|
218
|
+
this.emitter = new NativeEventEmitter(NativeModules.RPREventEmitterOpenUrl);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (this.subscription) {
|
|
222
|
+
this.subscription.remove()
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (callback) {
|
|
226
|
+
this.subscription = this.emitter.addListener('__RPR__openUrlCallback', url => callback(url));
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
213
231
|
const Repro = {
|
|
214
232
|
...NativeModules.Repro,
|
|
215
233
|
...NewsFeedModule,
|
|
216
234
|
...{ remoteConfig: RemoteConfigModule },
|
|
235
|
+
|
|
236
|
+
setOpenUrlCallback: EventEmitterOpenUrl.setCallback,
|
|
217
237
|
}
|
|
218
238
|
|
|
239
|
+
|
|
219
240
|
export default Repro;
|
|
220
241
|
|
|
@@ -25,11 +25,37 @@
|
|
|
25
25
|
#error "Can't find RCTBridgeModule.h anywhere."
|
|
26
26
|
#endif
|
|
27
27
|
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
// ReactNative Version >= 0.41
|
|
31
|
+
#if __has_include(<React/RCTEventEmitter.h>)
|
|
32
|
+
#import <React/RCTEventEmitter.h>
|
|
33
|
+
|
|
34
|
+
// ReactNative Version < 0.41
|
|
35
|
+
#elif __has_include("RCTEventEmitter.h")
|
|
36
|
+
#import "RCTEventEmitter.h"
|
|
37
|
+
|
|
38
|
+
// if ReactNative is a cocoapod and the project has swift enabled
|
|
39
|
+
#elif __has_include("React/RCTEventEmitter.h")
|
|
40
|
+
#import "React/RCTEventEmitter.h"
|
|
41
|
+
|
|
42
|
+
#else
|
|
43
|
+
#error "Can't find RCTEventEmitter.h anywhere."
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
#define REPRO_REACT_NATIVE_BRIDGE_VERSION "3.10.0"
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
28
51
|
@interface RPRRemoteConfigBridge: NSObject <RCTBridgeModule>
|
|
29
52
|
|
|
30
53
|
@end
|
|
31
54
|
|
|
32
|
-
|
|
33
55
|
@interface RPRReproReactBridge : NSObject <RCTBridgeModule>
|
|
34
56
|
|
|
35
57
|
@end
|
|
58
|
+
|
|
59
|
+
@interface RPREventEmitterOpenUrl : RCTEventEmitter <RCTBridgeModule>
|
|
60
|
+
|
|
61
|
+
@end
|
|
@@ -29,6 +29,27 @@
|
|
|
29
29
|
#error "Can't find RCTConvert.h anywhere."
|
|
30
30
|
#endif
|
|
31
31
|
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
// ReactNative Version >= 0.41
|
|
36
|
+
#if __has_include(<React/RCTVersion.h>)
|
|
37
|
+
#import <React/RCTVersion.h>
|
|
38
|
+
|
|
39
|
+
// ReactNative Version < 0.41
|
|
40
|
+
#elif __has_include("RCTVersion.h")
|
|
41
|
+
#import "RCTVersion.h"
|
|
42
|
+
|
|
43
|
+
// if ReactNative is a cocoapod and the project has swift enabled
|
|
44
|
+
#elif __has_include("React/RCTVersion.h")
|
|
45
|
+
#import "React/RCTVersion.h"
|
|
46
|
+
|
|
47
|
+
#else
|
|
48
|
+
#define RPR_CANT_DETERMINE_RN_VERSION 1
|
|
49
|
+
#endif
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
32
53
|
static NSObject*
|
|
33
54
|
safe_value(id value)
|
|
34
55
|
{
|
|
@@ -186,8 +207,58 @@ RCT_EXPORT_METHOD(forceReset)
|
|
|
186
207
|
@end
|
|
187
208
|
|
|
188
209
|
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
@interface Repro (NonPublicApi)
|
|
213
|
+
+ (void)_passRuntimeValues:(nonnull NSDictionary<NSString *, NSString *> *)values;
|
|
214
|
+
@end
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
#ifndef RPR_CANT_DETERMINE_RN_VERSION
|
|
220
|
+
static NSString *get_react_native_version()
|
|
221
|
+
{
|
|
222
|
+
// see: https://github.com/facebook/react-native/commit/30469ed00170a74743d2ba5aadce61aae742715c#
|
|
223
|
+
#ifdef RCT_REACT_NATIVE_VERSION
|
|
224
|
+
NSDictionary *vermap = RCT_REACT_NATIVE_VERSION;
|
|
225
|
+
return [NSString stringWithFormat:@"%@.%@.%@",
|
|
226
|
+
vermap[@"major"],
|
|
227
|
+
vermap[@"minor"],
|
|
228
|
+
vermap[@"patch"]];
|
|
229
|
+
|
|
230
|
+
#else
|
|
231
|
+
NSDictionary *vermap = RCTGetReactNativeVersion();
|
|
232
|
+
return [NSString stringWithFormat:@"%@.%@.%@",
|
|
233
|
+
vermap[RCTVersionMajor],
|
|
234
|
+
vermap[RCTVersionMinor],
|
|
235
|
+
vermap[RCTVersionPatch]];
|
|
236
|
+
|
|
237
|
+
#endif
|
|
238
|
+
}
|
|
239
|
+
#endif
|
|
240
|
+
|
|
241
|
+
|
|
189
242
|
@implementation RPRReproReactBridge
|
|
190
243
|
|
|
244
|
+
- (instancetype)init
|
|
245
|
+
{
|
|
246
|
+
self = [super init];
|
|
247
|
+
|
|
248
|
+
if ([Repro respondsToSelector:@selector(_passRuntimeValues:)]) {
|
|
249
|
+
[Repro _passRuntimeValues:@{
|
|
250
|
+
@"sub_sdk_platform": @"react_native",
|
|
251
|
+
#ifndef RPR_CANT_DETERMINE_RN_VERSION
|
|
252
|
+
@"sub_sdk_platform_version": get_react_native_version(),
|
|
253
|
+
#endif
|
|
254
|
+
@"sub_sdk_bridge_version": [NSString stringWithUTF8String:REPRO_REACT_NATIVE_BRIDGE_VERSION],
|
|
255
|
+
}];
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return self;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
191
262
|
RCT_EXPORT_MODULE(Repro)
|
|
192
263
|
|
|
193
264
|
- (NSDictionary *)constantsToExport
|
|
@@ -623,3 +694,30 @@ RCT_EXPORT_METHOD(setSilverEggCookie:(NSString *)silverEggCookie)
|
|
|
623
694
|
|
|
624
695
|
@end
|
|
625
696
|
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
@implementation RPREventEmitterOpenUrl
|
|
700
|
+
|
|
701
|
+
RCT_EXPORT_MODULE()
|
|
702
|
+
|
|
703
|
+
- (NSArray<NSString*> *)supportedEvents
|
|
704
|
+
{
|
|
705
|
+
return @[@"__RPR__openUrlCallback"];
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
- (void)startObserving
|
|
709
|
+
{
|
|
710
|
+
[Repro setOpenUrlCallback:^(NSURL * _Nonnull url) {
|
|
711
|
+
[self sendEventWithName:@"__RPR__openUrlCallback" body:url.absoluteString];
|
|
712
|
+
}];
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
- (void)stopObserving
|
|
716
|
+
{
|
|
717
|
+
[Repro setOpenUrlCallback:nil];
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
@end
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-repro",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Repro is a mobile analytics tool that lets you have much deeper understanding of mobile app users
|
|
3
|
+
"version": "3.10.0",
|
|
4
|
+
"description": "Repro is a mobile analytics tool that lets you have much deeper understanding of mobile app users.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"repro",
|
package/repro-version.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d88a410db986a3fd3c4d1464f582b508
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b1076cb31c1d72a72648e0b8086567c44d07bcf2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
01bd5f9cb5a9436af4e0d1082e613a0b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
baf13360c8c4305de167edc1a45033a8c56872f0
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<groupId>io.repro</groupId>
|
|
4
4
|
<artifactId>repro-android-sdk</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<release>5.
|
|
6
|
+
<release>5.7.0</release>
|
|
7
7
|
<versions>
|
|
8
|
-
<version>5.
|
|
8
|
+
<version>5.7.0</version>
|
|
9
9
|
</versions>
|
|
10
|
-
<lastUpdated>
|
|
10
|
+
<lastUpdated>20220831164626</lastUpdated>
|
|
11
11
|
</versioning>
|
|
12
12
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9a432f77bc88dec8f2b6e0a49a371c96
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c5f0519952b18bf5e3415ea2b114647dc84b47e7
|
|
@@ -6,33 +6,33 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_i386_x86_64-simulator</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>i386</string>
|
|
16
|
+
<string>x86_64</string>
|
|
17
17
|
</array>
|
|
18
18
|
<key>SupportedPlatform</key>
|
|
19
19
|
<string>ios</string>
|
|
20
|
+
<key>SupportedPlatformVariant</key>
|
|
21
|
+
<string>simulator</string>
|
|
20
22
|
</dict>
|
|
21
23
|
<dict>
|
|
22
24
|
<key>LibraryIdentifier</key>
|
|
23
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_armv7_armv7s</string>
|
|
24
26
|
<key>LibraryPath</key>
|
|
25
27
|
<string>Repro.framework</string>
|
|
26
28
|
<key>SupportedArchitectures</key>
|
|
27
29
|
<array>
|
|
28
30
|
<string>arm64</string>
|
|
29
|
-
<string>
|
|
30
|
-
<string>
|
|
31
|
+
<string>armv7</string>
|
|
32
|
+
<string>armv7s</string>
|
|
31
33
|
</array>
|
|
32
34
|
<key>SupportedPlatform</key>
|
|
33
35
|
<string>ios</string>
|
|
34
|
-
<key>SupportedPlatformVariant</key>
|
|
35
|
-
<string>simulator</string>
|
|
36
36
|
</dict>
|
|
37
37
|
</array>
|
|
38
38
|
<key>CFBundlePackageType</key>
|
package/sdk-ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Headers/RPRRemoteConfig.h
CHANGED
|
@@ -98,11 +98,11 @@ NS_SWIFT_NAME(value(forKey:));
|
|
|
98
98
|
/// Access to remote config values via subscript syntax.
|
|
99
99
|
- (nonnull RPRRemoteConfigValue *)objectForKeyedSubscript:(nonnull NSString *)key;
|
|
100
100
|
|
|
101
|
-
/// Return a
|
|
101
|
+
/// Return a dictionary with all key value pairs.
|
|
102
102
|
- (nonnull NSDictionary<NSString *, RPRRemoteConfigValue *> *)allValues
|
|
103
103
|
NS_SWIFT_NAME(allValues());
|
|
104
104
|
|
|
105
|
-
/// Return a
|
|
105
|
+
/// Return a dictionary with all key value pairs for a given prefix. Pass `nil` or an empty string to get all values.
|
|
106
106
|
- (nonnull NSDictionary<NSString *, RPRRemoteConfigValue *> *)allValuesWithPrefix:(nullable NSString *)prefix
|
|
107
107
|
NS_SWIFT_NAME(allValues(withPrefix:));
|
|
108
108
|
|
|
@@ -69,6 +69,9 @@ NS_SWIFT_NAME(setUserProfile(emailAddress:));
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
// Event tracking
|
|
72
|
+
+ (void)track:(nonnull NSString *)name
|
|
73
|
+
NS_SWIFT_NAME(track(event:));
|
|
74
|
+
|
|
72
75
|
+ (void)track:(nonnull NSString *)name properties:(nullable NSDictionary *)properties
|
|
73
76
|
NS_SWIFT_NAME(track(event:properties:));
|
|
74
77
|
|
|
@@ -136,6 +139,16 @@ NS_SWIFT_NAME(set(silverEggCookie:));
|
|
|
136
139
|
+ (void)setSilverEggProdKey:(nonnull NSString *)silverEggProdKey
|
|
137
140
|
NS_SWIFT_NAME(set(silverEggProdKey:));
|
|
138
141
|
|
|
142
|
+
|
|
143
|
+
// Event Callbacks
|
|
144
|
+
|
|
145
|
+
+ (void)addOpenUrlFilterRegEx:(nonnull NSString *)filterRegEx
|
|
146
|
+
NS_SWIFT_NAME(add(openUrlFilterRegEx:));
|
|
147
|
+
|
|
148
|
+
+ (void)setOpenUrlCallback:(void(^ _Nullable)(NSURL * _Nonnull url))callback
|
|
149
|
+
NS_SWIFT_NAME(setOpenUrlCallback(_:));
|
|
150
|
+
|
|
151
|
+
|
|
139
152
|
// Remote Configuration
|
|
140
153
|
@property (class, nonatomic, readonly, nonnull) RPRRemoteConfig *remoteConfig;
|
|
141
154
|
|
|
Binary file
|
|
Binary file
|
|
@@ -98,11 +98,11 @@ NS_SWIFT_NAME(value(forKey:));
|
|
|
98
98
|
/// Access to remote config values via subscript syntax.
|
|
99
99
|
- (nonnull RPRRemoteConfigValue *)objectForKeyedSubscript:(nonnull NSString *)key;
|
|
100
100
|
|
|
101
|
-
/// Return a
|
|
101
|
+
/// Return a dictionary with all key value pairs.
|
|
102
102
|
- (nonnull NSDictionary<NSString *, RPRRemoteConfigValue *> *)allValues
|
|
103
103
|
NS_SWIFT_NAME(allValues());
|
|
104
104
|
|
|
105
|
-
/// Return a
|
|
105
|
+
/// Return a dictionary with all key value pairs for a given prefix. Pass `nil` or an empty string to get all values.
|
|
106
106
|
- (nonnull NSDictionary<NSString *, RPRRemoteConfigValue *> *)allValuesWithPrefix:(nullable NSString *)prefix
|
|
107
107
|
NS_SWIFT_NAME(allValues(withPrefix:));
|
|
108
108
|
|
package/sdk-ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/Repro.h
CHANGED
|
@@ -69,6 +69,9 @@ NS_SWIFT_NAME(setUserProfile(emailAddress:));
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
// Event tracking
|
|
72
|
+
+ (void)track:(nonnull NSString *)name
|
|
73
|
+
NS_SWIFT_NAME(track(event:));
|
|
74
|
+
|
|
72
75
|
+ (void)track:(nonnull NSString *)name properties:(nullable NSDictionary *)properties
|
|
73
76
|
NS_SWIFT_NAME(track(event:properties:));
|
|
74
77
|
|
|
@@ -136,6 +139,16 @@ NS_SWIFT_NAME(set(silverEggCookie:));
|
|
|
136
139
|
+ (void)setSilverEggProdKey:(nonnull NSString *)silverEggProdKey
|
|
137
140
|
NS_SWIFT_NAME(set(silverEggProdKey:));
|
|
138
141
|
|
|
142
|
+
|
|
143
|
+
// Event Callbacks
|
|
144
|
+
|
|
145
|
+
+ (void)addOpenUrlFilterRegEx:(nonnull NSString *)filterRegEx
|
|
146
|
+
NS_SWIFT_NAME(add(openUrlFilterRegEx:));
|
|
147
|
+
|
|
148
|
+
+ (void)setOpenUrlCallback:(void(^ _Nullable)(NSURL * _Nonnull url))callback
|
|
149
|
+
NS_SWIFT_NAME(setOpenUrlCallback(_:));
|
|
150
|
+
|
|
151
|
+
|
|
139
152
|
// Remote Configuration
|
|
140
153
|
@property (class, nonatomic, readonly, nonnull) RPRRemoteConfig *remoteConfig;
|
|
141
154
|
|
package/sdk-ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
95128ff0f21c7dce392fbe7376049930
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
db014f9b390093608d5678da13c524b8f6f5ab7d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8887c317b5c45b11836fa33156a40986
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6320bb92fa20c8a49d146decfdc83a49a0b00da3
|