cordova-plugin-repro 6.20.0 → 6.22.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 +1 -1
- package/repro-version.json +3 -3
- package/src/android/CordovaPlugin.java +151 -2
- package/src/android/repro-android-sdk.aar +0 -0
- package/src/ios/CDVRepro.h +1 -1
- package/src/ios/CDVRepro.m +117 -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 +12 -12
- package/src/ios/Repro.xcframework/_CodeSignature/CodeSignature +0 -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/Info.plist +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Repro +0 -0
- package/www/Repro.js +37 -0
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
2
|
|
|
3
|
-
<plugin xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-repro" version="6.
|
|
3
|
+
<plugin xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-repro" version="6.22.0" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
4
4
|
<name>Repro</name>
|
|
5
5
|
<description>Repro Cordova Plugin</description>
|
|
6
6
|
<license>Commercial</license>
|
package/repro-version.json
CHANGED
|
@@ -35,6 +35,8 @@ import io.repro.android.Repro;
|
|
|
35
35
|
import io.repro.android.CordovaBridge;
|
|
36
36
|
import io.repro.android.newsfeed.NewsFeedEntry;
|
|
37
37
|
import io.repro.android.newsfeed.NewsFeedCampaignType;
|
|
38
|
+
import io.repro.android.remoteconfig.RemoteConfigListener;
|
|
39
|
+
import io.repro.android.remoteconfig.RemoteConfigValue;
|
|
38
40
|
import io.repro.android.user.UserProfileGender;
|
|
39
41
|
import io.repro.android.user.UserProfilePrefecture;
|
|
40
42
|
|
|
@@ -44,7 +46,7 @@ import io.repro.android.user.UserProfilePrefecture;
|
|
|
44
46
|
*/
|
|
45
47
|
public final class CordovaPlugin extends org.apache.cordova.CordovaPlugin {
|
|
46
48
|
|
|
47
|
-
private static final String REPRO_CORDOVA_BRIDGE_VERSION = "6.
|
|
49
|
+
private static final String REPRO_CORDOVA_BRIDGE_VERSION = "6.22.0";
|
|
48
50
|
|
|
49
51
|
private static SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.US);
|
|
50
52
|
|
|
@@ -177,6 +179,33 @@ public final class CordovaPlugin extends org.apache.cordova.CordovaPlugin {
|
|
|
177
179
|
else if ("setOpenUrlCallback".equals(action)) {
|
|
178
180
|
return setOpenUrlCallback(args, callbackContext);
|
|
179
181
|
}
|
|
182
|
+
else if ("remoteConfig_fetch".equals(action)) {
|
|
183
|
+
return remoteConfig_fetch(args, callbackContext);
|
|
184
|
+
}
|
|
185
|
+
else if ("remoteConfig_activateFetched".equals(action)) {
|
|
186
|
+
return remoteConfig_activateFetched(args, callbackContext);
|
|
187
|
+
}
|
|
188
|
+
else if ("remoteConfig_setDefaultsFromJson".equals(action)) {
|
|
189
|
+
return remoteConfig_setDefaultsFromJson(args, callbackContext);
|
|
190
|
+
}
|
|
191
|
+
else if ("remoteConfig_setDefaultsFromJsonString".equals(action)) {
|
|
192
|
+
return remoteConfig_setDefaultsFromJsonString(args, callbackContext);
|
|
193
|
+
}
|
|
194
|
+
else if ("remoteConfig_getAllValues".equals(action)) {
|
|
195
|
+
return remoteConfig_getAllValues(args, callbackContext);
|
|
196
|
+
}
|
|
197
|
+
else if ("remoteConfig_getAllValuesWithPrefix".equals(action)) {
|
|
198
|
+
return remoteConfig_getAllValuesWithPrefix(args, callbackContext);
|
|
199
|
+
}
|
|
200
|
+
else if ("remoteConfig_getValue".equals(action)) {
|
|
201
|
+
return remoteConfig_getValue(args, callbackContext);
|
|
202
|
+
}
|
|
203
|
+
else if ("remoteConfig_getLocalDefaultValue".equals(action)) {
|
|
204
|
+
return remoteConfig_getLocalDefaultValue(args, callbackContext);
|
|
205
|
+
}
|
|
206
|
+
else if ("remoteConfig_forceReset".equals(action)) {
|
|
207
|
+
return remoteConfig_forceReset(args, callbackContext);
|
|
208
|
+
}
|
|
180
209
|
|
|
181
210
|
return false;
|
|
182
211
|
}
|
|
@@ -958,6 +987,111 @@ public final class CordovaPlugin extends org.apache.cordova.CordovaPlugin {
|
|
|
958
987
|
return true;
|
|
959
988
|
}
|
|
960
989
|
|
|
990
|
+
|
|
991
|
+
private boolean remoteConfig_fetch(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
992
|
+
int timeout = args.optInt(0); // fallback: 0
|
|
993
|
+
Repro.getRemoteConfig().fetch(timeout, new RemoteConfigListener() {
|
|
994
|
+
@Override
|
|
995
|
+
public void onCompletion(FetchStatus fetchStatus) {
|
|
996
|
+
if (fetchStatus == FetchStatus.TIMEOUT_REACHED) {
|
|
997
|
+
callbackContext.error(fetchStatus.ordinal());
|
|
998
|
+
} else {
|
|
999
|
+
callbackContext.success(fetchStatus.ordinal());
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
return true;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
private boolean remoteConfig_activateFetched(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1007
|
+
if (Repro.getRemoteConfig().activateFetched()) {
|
|
1008
|
+
callbackContext.success();
|
|
1009
|
+
} else {
|
|
1010
|
+
callbackContext.error("Failed to do 'activateFetched'.");
|
|
1011
|
+
}
|
|
1012
|
+
return true;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
private boolean remoteConfig_setDefaultsFromJson(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1016
|
+
JSONObject defaults = args.optJSONObject(0);
|
|
1017
|
+
if (Repro.getRemoteConfig().setDefaultsFromJsonString(defaults.toString())) {
|
|
1018
|
+
callbackContext.success();
|
|
1019
|
+
} else {
|
|
1020
|
+
callbackContext.error("Failed to do 'setDefaultsFromJson'.");
|
|
1021
|
+
}
|
|
1022
|
+
return true;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
private boolean remoteConfig_setDefaultsFromJsonString(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1026
|
+
String jsonString = args.optString(0);
|
|
1027
|
+
if (Repro.getRemoteConfig().setDefaultsFromJsonString(jsonString)) {
|
|
1028
|
+
callbackContext.success();
|
|
1029
|
+
} else {
|
|
1030
|
+
callbackContext.error("Failed to do 'setDefaultsFromJsonString'.");
|
|
1031
|
+
}
|
|
1032
|
+
return true;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
private boolean remoteConfig_getAllValues(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1036
|
+
callAPI(new API<JSONObject>(callbackContext) {
|
|
1037
|
+
@Override
|
|
1038
|
+
JSONObject api() {
|
|
1039
|
+
Map<String, RemoteConfigValue> values = Repro.getRemoteConfig().getAllValues();
|
|
1040
|
+
return mapToJson(values);
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
return true;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
private boolean remoteConfig_getAllValuesWithPrefix(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1047
|
+
String prefix = args.optString(0);
|
|
1048
|
+
callAPI(new API<JSONObject>(callbackContext) {
|
|
1049
|
+
@Override
|
|
1050
|
+
JSONObject api() {
|
|
1051
|
+
Map<String, RemoteConfigValue> values = Repro.getRemoteConfig().getAllValuesWithPrefix(prefix);
|
|
1052
|
+
return mapToJson(values);
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
return true;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
private boolean remoteConfig_getValue(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1059
|
+
Object key = args.opt(0);
|
|
1060
|
+
if (!(key instanceof String)) {
|
|
1061
|
+
callbackContext.error("A non-String value was specified for key.");
|
|
1062
|
+
return true;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
RemoteConfigValue value = Repro.getRemoteConfig().get((String)key);
|
|
1066
|
+
String stringValue = value.asString();
|
|
1067
|
+
callbackContext.success(stringValue);
|
|
1068
|
+
return true;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
private boolean remoteConfig_getLocalDefaultValue(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1072
|
+
Object key = args.opt(0);
|
|
1073
|
+
if (!(key instanceof String)) {
|
|
1074
|
+
callbackContext.error("A non-String value was specified for key.");
|
|
1075
|
+
return true;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
RemoteConfigValue value = Repro.getRemoteConfig().getLocalDefaultValue((String)key);
|
|
1079
|
+
String stringValue = value.asString();
|
|
1080
|
+
callbackContext.success(stringValue);
|
|
1081
|
+
return true;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
private boolean remoteConfig_forceReset(final CordovaArgs args, final CallbackContext callbackContext) {
|
|
1085
|
+
callAPI(new API<Void>(callbackContext) {
|
|
1086
|
+
@Override
|
|
1087
|
+
Void api() {
|
|
1088
|
+
Repro.getRemoteConfig().forceReset();
|
|
1089
|
+
return null;
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
return true;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
961
1095
|
// helper
|
|
962
1096
|
|
|
963
1097
|
private static abstract class API<T> implements Runnable {
|
|
@@ -971,7 +1105,7 @@ public final class CordovaPlugin extends org.apache.cordova.CordovaPlugin {
|
|
|
971
1105
|
public void run() {
|
|
972
1106
|
final T ret = api();
|
|
973
1107
|
|
|
974
|
-
if (ret
|
|
1108
|
+
if (ret == null) {
|
|
975
1109
|
mCallbackContext.success();
|
|
976
1110
|
} else if (ret instanceof String) {
|
|
977
1111
|
mCallbackContext.success((String)ret);
|
|
@@ -990,4 +1124,19 @@ public final class CordovaPlugin extends org.apache.cordova.CordovaPlugin {
|
|
|
990
1124
|
private void callAPI(final API api) {
|
|
991
1125
|
cordova.getActivity().runOnUiThread(api);
|
|
992
1126
|
}
|
|
1127
|
+
|
|
1128
|
+
private JSONObject mapToJson(final Map<String, RemoteConfigValue> map) {
|
|
1129
|
+
JSONObject jsonObject = new JSONObject();
|
|
1130
|
+
try {
|
|
1131
|
+
for (String key : map.keySet()) {
|
|
1132
|
+
RemoteConfigValue value = map.get(key);
|
|
1133
|
+
if (value != null) {
|
|
1134
|
+
jsonObject.put(key, value.asString());
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
return jsonObject;
|
|
1138
|
+
} catch (JSONException e) {
|
|
1139
|
+
return null;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
993
1142
|
}
|
|
Binary file
|
package/src/ios/CDVRepro.h
CHANGED
package/src/ios/CDVRepro.m
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
#import "Repro/Repro.h"
|
|
11
11
|
#import "Repro/RPRNewsFeedEntry.h"
|
|
12
12
|
#import "Repro/RPRUserProfileTypes.h"
|
|
13
|
+
#import "Repro/RPRRemoteConfig.h"
|
|
13
14
|
|
|
14
15
|
#import "CDVRepro.h"
|
|
15
16
|
#import "CDVReproEventPropertiesFactory.h"
|
|
@@ -655,6 +656,122 @@ static NSDictionary* convertNSStringJSONToNSDictionary(NSString* json) {
|
|
|
655
656
|
}];
|
|
656
657
|
}
|
|
657
658
|
|
|
659
|
+
// RemoteConfig
|
|
660
|
+
- (void)remoteConfig_fetch:(CDVInvokedUrlCommand*)command
|
|
661
|
+
{
|
|
662
|
+
NSNumber *timeout = [command.arguments objectAtIndex:0];
|
|
663
|
+
double timeoutSecs = [timeout longLongValue] * 0.001;
|
|
664
|
+
[[Repro remoteConfig] fetchWithTimeout:timeoutSecs completionHandler:^(RPRRemoteConfigFetchStatus fetchStatus) {
|
|
665
|
+
CDVCommandStatus status = CDVCommandStatus_OK;
|
|
666
|
+
if (fetchStatus == RPRRemoteConfigFetchStatusTimeoutReached) {
|
|
667
|
+
status = CDVCommandStatus_ERROR;
|
|
668
|
+
}
|
|
669
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:status messageAsInt:(int)fetchStatus];
|
|
670
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
671
|
+
}];
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
- (void)remoteConfig_activateFetched:(CDVInvokedUrlCommand*)command
|
|
675
|
+
{
|
|
676
|
+
if ([[Repro remoteConfig] activateFetched])
|
|
677
|
+
{
|
|
678
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"success"];
|
|
679
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Failed to activateFetched"];
|
|
683
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
- (void)remoteConfig_setDefaultsFromJson:(CDVInvokedUrlCommand*)command
|
|
688
|
+
{
|
|
689
|
+
NSDictionary *dict = [command.arguments objectAtIndex:0];
|
|
690
|
+
if ([[Repro remoteConfig] setDefaultsFromDictionary: dict])
|
|
691
|
+
{
|
|
692
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"success"];
|
|
693
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
694
|
+
}
|
|
695
|
+
else {
|
|
696
|
+
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Failed to setDefaultsFromJson"];
|
|
697
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
- (void)remoteConfig_setDefaultsFromJsonString:(CDVInvokedUrlCommand*)command
|
|
702
|
+
{
|
|
703
|
+
NSString *string = [command.arguments objectAtIndex:0];
|
|
704
|
+
if (string && [string isKindOfClass:NSString.class] && [[Repro remoteConfig] setDefaultsFromJsonString: string])
|
|
705
|
+
{
|
|
706
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"success"];
|
|
707
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Failed to setDefaultsFromJsonString"];
|
|
711
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
- (void)remoteConfig_getAllValues:(CDVInvokedUrlCommand*)command
|
|
716
|
+
{
|
|
717
|
+
NSDictionary<NSString *, RPRRemoteConfigValue *> *values = [[Repro remoteConfig] allValues];
|
|
718
|
+
|
|
719
|
+
NSMutableDictionary<NSString *, NSString *> *dict = [[NSMutableDictionary alloc] init];
|
|
720
|
+
for (id key in values) {
|
|
721
|
+
[dict setObject:values[key].stringValue forKey:key];
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:dict];
|
|
725
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
- (void)remoteConfig_getAllValuesWithPrefix:(CDVInvokedUrlCommand*)command
|
|
729
|
+
{
|
|
730
|
+
NSString *prefix = [command.arguments objectAtIndex:0];
|
|
731
|
+
NSDictionary<NSString *, RPRRemoteConfigValue *> *values = [[Repro remoteConfig] allValuesWithPrefix: prefix];
|
|
732
|
+
|
|
733
|
+
NSMutableDictionary<NSString *, NSString *> *dict = [[NSMutableDictionary alloc] init];
|
|
734
|
+
for (id key in values) {
|
|
735
|
+
[dict setObject:values[key].stringValue forKey:key];
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:dict];
|
|
739
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
- (void)remoteConfig_getValue:(CDVInvokedUrlCommand*)command
|
|
743
|
+
{
|
|
744
|
+
NSString *key = [command.arguments objectAtIndex:0];
|
|
745
|
+
if (!key || ![key isKindOfClass:NSString.class]) {
|
|
746
|
+
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"A non-String value was specified for key."];
|
|
747
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
748
|
+
} else {
|
|
749
|
+
RPRRemoteConfigValue *value = [[Repro remoteConfig] valueForKey: key];
|
|
750
|
+
|
|
751
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:value.stringValue];
|
|
752
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
- (void)remoteConfig_getLocalDefaultValue:(CDVInvokedUrlCommand*)command
|
|
757
|
+
{
|
|
758
|
+
NSString *key = [command.arguments objectAtIndex:0];
|
|
759
|
+
if (!key || ![key isKindOfClass:NSString.class]) {
|
|
760
|
+
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"A non-String value was specified for key."];
|
|
761
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
762
|
+
} else {
|
|
763
|
+
RPRRemoteConfigValue *value = [[Repro remoteConfig] localDefaultValueForKey: key];
|
|
764
|
+
|
|
765
|
+
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:value.stringValue];
|
|
766
|
+
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
- (void)remoteConfig_forceReset:(CDVInvokedUrlCommand*)command
|
|
771
|
+
{
|
|
772
|
+
[[Repro remoteConfig] forceReset];
|
|
773
|
+
}
|
|
774
|
+
|
|
658
775
|
- (NSString *)convertCampaignTypeToString:(RPRCampaignType)campaignType
|
|
659
776
|
{
|
|
660
777
|
switch (campaignType) {
|
|
@@ -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>
|
|
Binary file
|
|
Binary file
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</data>
|
|
27
27
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Info.plist</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
TGArnxiXiYFE/kJOljZ3xjZ3wrs=
|
|
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
|
+
HT9EB7n+V8lE51sauJbf7LxvCZc=
|
|
42
42
|
</data>
|
|
43
43
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPREventProperties.h</key>
|
|
44
44
|
<data>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</data>
|
|
63
63
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
Ca+/1BJaVA6Dg6LLrliVDl0voDw=
|
|
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
|
+
46UHtbh4L4Fa/21vWlbvWrQmP/0=
|
|
78
78
|
</data>
|
|
79
79
|
</dict>
|
|
80
80
|
<key>files2</key>
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
<dict>
|
|
139
139
|
<key>hash</key>
|
|
140
140
|
<data>
|
|
141
|
-
|
|
141
|
+
TGArnxiXiYFE/kJOljZ3xjZ3wrs=
|
|
142
142
|
</data>
|
|
143
143
|
<key>hash2</key>
|
|
144
144
|
<data>
|
|
145
|
-
|
|
145
|
+
4y4E+Sd/sXkTAK4acLNMbGalXyH6N7XJ4qHt1u3pjgw=
|
|
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
|
+
HT9EB7n+V8lE51sauJbf7LxvCZc=
|
|
175
175
|
</data>
|
|
176
176
|
<key>hash2</key>
|
|
177
177
|
<data>
|
|
178
|
-
|
|
178
|
+
eSQ/nUwKv3L33U5hZxAd6iyHa2QwLeAWYhMtpiKf4Fs=
|
|
179
179
|
</data>
|
|
180
180
|
</dict>
|
|
181
181
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPREventProperties.h</key>
|
|
@@ -237,11 +237,11 @@
|
|
|
237
237
|
<dict>
|
|
238
238
|
<key>hash</key>
|
|
239
239
|
<data>
|
|
240
|
-
|
|
240
|
+
Ca+/1BJaVA6Dg6LLrliVDl0voDw=
|
|
241
241
|
</data>
|
|
242
242
|
<key>hash2</key>
|
|
243
243
|
<data>
|
|
244
|
-
|
|
244
|
+
YgnoGmve9dtrykXh4YcCncn1Ok4Ag9T1PpZAZZOtyAo=
|
|
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
|
+
46UHtbh4L4Fa/21vWlbvWrQmP/0=
|
|
274
274
|
</data>
|
|
275
275
|
<key>hash2</key>
|
|
276
276
|
<data>
|
|
277
|
-
|
|
277
|
+
5IuBJCr7vG48pXSxekMWUkGuhyddC7kR0ZZzxR9eNts=
|
|
278
278
|
</data>
|
|
279
279
|
</dict>
|
|
280
280
|
</dict>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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
|
@@ -197,6 +197,43 @@ Repro.prototype.UserProfilePrefecture = Object.freeze (
|
|
|
197
197
|
}
|
|
198
198
|
)
|
|
199
199
|
|
|
200
|
+
Repro.prototype.remoteConfig = {
|
|
201
|
+
fetch: function(timeout, successCallback, errorCallback) {
|
|
202
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_fetch", [timeout]);
|
|
203
|
+
},
|
|
204
|
+
activateFetched: function(successCallback, errorCallback) {
|
|
205
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_activateFetched", []);
|
|
206
|
+
},
|
|
207
|
+
setDefaultsFromJson: function(dict, successCallback, errorCallback) {
|
|
208
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_setDefaultsFromJson", [dict]);
|
|
209
|
+
},
|
|
210
|
+
setDefaultsFromJsonString: function(json, successCallback, errorCallback) {
|
|
211
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_setDefaultsFromJsonString", [json]);
|
|
212
|
+
},
|
|
213
|
+
getAllValues: function(successCallback, errorCallback) {
|
|
214
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_getAllValues", []);
|
|
215
|
+
},
|
|
216
|
+
getAllValuesWithPrefix: function(prefix, successCallback, errorCallback) {
|
|
217
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_getAllValuesWithPrefix", [prefix]);
|
|
218
|
+
},
|
|
219
|
+
getValue: function(key, successCallback, errorCallback) {
|
|
220
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_getValue", [key]);
|
|
221
|
+
},
|
|
222
|
+
getLocalDefaultValue: function(key, successCallback, errorCallback) {
|
|
223
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_getLocalDefaultValue", [key]);
|
|
224
|
+
},
|
|
225
|
+
forceReset: function(successCallback, errorCallback) {
|
|
226
|
+
exec(successCallback, errorCallback, "Repro", "remoteConfig_forceReset", []);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
Repro.prototype.remoteConfig.FetchStatus = Object.freeze (
|
|
231
|
+
{
|
|
232
|
+
Success: 0,
|
|
233
|
+
TimeoutReached: 1,
|
|
234
|
+
AlreadyFetched: 2,
|
|
235
|
+
}
|
|
236
|
+
)
|
|
200
237
|
|
|
201
238
|
|
|
202
239
|
module.exports = new Repro();
|