Skip to content

Commit

Permalink
Change option for providers authorization and update verstion
Browse files Browse the repository at this point in the history
  • Loading branch information
snalexeev committed Sep 29, 2022
1 parent 552bbf2 commit 2469d5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VK-ios-sdk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "VK-ios-sdk"
s.version = "1.6.2"
s.version = "1.6.3"
s.summary = "Library for working with VK."
s.homepage = "https://github.com/VKCOM/vk-ios-sdk"
s.license = 'MIT'
Expand Down
4 changes: 2 additions & 2 deletions library/Source/VKSdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ typedef NS_OPTIONS(NSUInteger, VKAuthorizationOptions) {
VKAuthorizationOptionsUnlimitedToken = 1 << 0,
///Pass this option to disable usage of SFSafariViewController
VKAuthorizationOptionsDisableSafariController = 1 << 1,
///Pass this option to disable usage of authorization providers
VKAuthorizationOptionsDisableProviders = 1 << 2,
///Pass this option to enable usage of authorization providers
VKAuthorizationOptionsEnableProviders = 1 << 2,
};

/**
Expand Down
2 changes: 1 addition & 1 deletion library/Source/VKSdk.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ + (void)authorize:(NSArray *)permissions withOptions:(VKAuthorizationOptions)opt
instance.permissions = [permissionsSet copy];
permissions = [permissionsSet allObjects];

BOOL providersEnabled = !(options & VKAuthorizationOptionsDisableProviders);
BOOL providersEnabled = options & VKAuthorizationOptionsEnableProviders;

BOOL vkApp = [self vkAppMayExists]
&& instance.authState == VKAuthorizationInitialized && providersEnabled;
Expand Down

0 comments on commit 2469d5e

Please sign in to comment.