diff --git a/KatalysatorSDK.framework/Versions/A/Headers/KATConfiguration.h b/KatalysatorSDK.framework/Versions/A/Headers/KATConfiguration.h index 84dbef9..25235ea 100644 --- a/KatalysatorSDK.framework/Versions/A/Headers/KATConfiguration.h +++ b/KatalysatorSDK.framework/Versions/A/Headers/KATConfiguration.h @@ -90,6 +90,14 @@ typedef void(^KATUpdateConfigHandler)(NSArray *regions, NSError *error); @property (nonatomic) BOOL monitorVisits; +/** + * Determines whether the SDK needs to share available regions with other parts of the app + * + * @since v1.8.5 + */ +@property (nonatomic) BOOL shareRegions; + + /** * Get the local config * diff --git a/KatalysatorSDK.framework/Versions/A/KatalysatorSDK b/KatalysatorSDK.framework/Versions/A/KatalysatorSDK index 507b402..acfeaaf 100644 Binary files a/KatalysatorSDK.framework/Versions/A/KatalysatorSDK and b/KatalysatorSDK.framework/Versions/A/KatalysatorSDK differ diff --git a/Sample/ViewController.m b/Sample/ViewController.m index 2e712ad..c5ef7cc 100644 --- a/Sample/ViewController.m +++ b/Sample/ViewController.m @@ -17,7 +17,7 @@ - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; - // DATA COLLECTION + // START COLLECTING KATConfiguration *config = [[KATConfiguration alloc] init]; config.apiToken = [[NSUUID alloc] initWithUUIDString:@"B3945743-D258-49D0-AFBF-1E409AE59501"]; config.suppressBluetoothAccuracyAlert = YES; @@ -25,25 +25,14 @@ - (void)viewDidAppear:(BOOL)animated KATBeaconManager *beaconManager = [[KATBeaconManager alloc] initWithConfiguration:config]; [beaconManager startCollecting]; - [beaconManager triggerWithHandler:^(NSDictionary *requestDict) - { - NSLog(@"TRIGGER %@", requestDict); - }]; - - [beaconManager debugWithHandler:^(id result) - { - NSLog(@"DEBUG %@", result); - }]; + [beaconManager debugWithHandler:^(id result) { + NSLog(@"DEBUG %@", result); + }]; - // AUDIENCE RECEIVING + // RECEIVE TAGS KATAudienceManager *audienceManager = [[KATAudienceManager alloc] initWithApiToken:config.apiToken]; - [audienceManager audiencesAndGeotagsWithCompletion:^(NSDictionary *audiences, NSError *error) - { - // raw response + [audienceManager audiencesAndGeotagsWithCompletion:^(NSDictionary *audiences, NSError *error) { NSLog(@"AUDIENCES %@", audiences); - - // helper method to create a url query string from the mapping - NSLog(@"AUDIENCES QUERY %@", [KATAudienceManager toQueryString:audiences[@"mapping"]]); }]; }