react-native-radar 3.8.19 → 3.9.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/android/build.gradle
CHANGED
|
@@ -18,7 +18,7 @@ android {
|
|
|
18
18
|
minSdkVersion 16
|
|
19
19
|
targetSdkVersion 31
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName '3.
|
|
21
|
+
versionName '3.9.1'
|
|
22
22
|
}
|
|
23
23
|
lintOptions {
|
|
24
24
|
abortOnError false
|
|
@@ -45,5 +45,5 @@ repositories {
|
|
|
45
45
|
|
|
46
46
|
dependencies {
|
|
47
47
|
api 'com.facebook.react:react-native:+'
|
|
48
|
-
api 'io.radar:sdk:3.
|
|
48
|
+
api 'io.radar:sdk:3.9.1'
|
|
49
49
|
}
|
|
@@ -941,9 +941,9 @@ public class RNRadarModule extends ReactContextBaseJavaModule implements Permiss
|
|
|
941
941
|
String country = optionsMap.hasKey("countryCode") ? optionsMap.getString("countryCode") : optionsMap.hasKey("country") ? optionsMap.getString("country") : null;
|
|
942
942
|
String[] layers = optionsMap.hasKey("layers") ? RNRadarUtils.stringArrayForArray(optionsMap.getArray("layers")) : null;
|
|
943
943
|
|
|
944
|
-
boolean
|
|
944
|
+
boolean mailable = optionsMap.hasKey("mailable") ? optionsMap.getBoolean("mailable") : false;
|
|
945
945
|
|
|
946
|
-
Radar.autocomplete(query, near, layers, limit, country,
|
|
946
|
+
Radar.autocomplete(query, near, layers, limit, country, true, mailable, new Radar.RadarGeocodeCallback() {
|
|
947
947
|
@Override
|
|
948
948
|
public void onComplete(@NonNull Radar.RadarStatus status, @Nullable RadarAddress[] addresses) {
|
|
949
949
|
if (status == Radar.RadarStatus.SUCCESS) {
|
package/ios/Cartfile.resolved
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
github "radarlabs/radar-sdk-ios" "3.
|
|
1
|
+
github "radarlabs/radar-sdk-ios" "3.9.3"
|
package/ios/RNRadar.m
CHANGED
|
@@ -795,16 +795,16 @@ RCT_EXPORT_METHOD(autocomplete:(NSDictionary *)optionsDict resolve:(RCTPromiseRe
|
|
|
795
795
|
country = optionsDict[@"country"];
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
BOOL
|
|
799
|
-
NSNumber *
|
|
800
|
-
if (
|
|
801
|
-
|
|
798
|
+
BOOL mailable = false;
|
|
799
|
+
NSNumber *mailableNumber = optionsDict[@"mailable"];
|
|
800
|
+
if (mailableNumber != nil && [mailableNumber isKindOfClass:[NSNumber class]]) {
|
|
801
|
+
mailable = [mailableNumber boolValue];
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
__block RCTPromiseResolveBlock resolver = resolve;
|
|
805
805
|
__block RCTPromiseRejectBlock rejecter = reject;
|
|
806
806
|
|
|
807
|
-
[Radar autocompleteQuery:query near:near layers:layers limit:limit country:country
|
|
807
|
+
[Radar autocompleteQuery:query near:near layers:layers limit:limit country:country mailable:mailable completionHandler:^(RadarStatus status, NSArray<RadarAddress *> * _Nullable addresses) {
|
|
808
808
|
if (status == RadarStatusSuccess && resolver) {
|
|
809
809
|
NSMutableDictionary *dict = [NSMutableDictionary new];
|
|
810
810
|
[dict setObject:[Radar stringForStatus:status] forKey:@"status"];
|
package/package.json
CHANGED