Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
d2c1da93
Commit
d2c1da93
authored
Feb 03, 2021
by
Oleksandr Bezpalchuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS: Replace the deprecated getValue call with a simple typecast in request permission method.
parent
eb7ef50a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
permission_handler/ios/Classes/PermissionManager.m
+10
-4
No files found.
permission_handler/ios/Classes/PermissionManager.m
View file @
d2c1da93
...
@@ -32,13 +32,19 @@
...
@@ -32,13 +32,19 @@
}
}
-
(
void
)
requestPermissions
:
(
NSArray
*
)
permissions
completion
:
(
PermissionRequestCompletion
)
completion
{
-
(
void
)
requestPermissions
:
(
NSArray
*
)
permissions
completion
:
(
PermissionRequestCompletion
)
completion
{
NSMutableSet
*
requestQueue
=
[[
NSMutableSet
alloc
]
initWithArray
:
permissions
];
NSMutableDictionary
*
permissionStatusResult
=
[[
NSMutableDictionary
alloc
]
init
];
NSMutableDictionary
*
permissionStatusResult
=
[[
NSMutableDictionary
alloc
]
init
];
if
(
permissions
.
count
==
0
)
{
completion
(
permissionStatusResult
);
return
;
}
NSMutableSet
*
requestQueue
=
[[
NSMutableSet
alloc
]
initWithArray
:
permissions
];
for
(
int
i
=
0
;
i
<
permissions
.
count
;
++
i
)
{
for
(
int
i
=
0
;
i
<
permissions
.
count
;
++
i
)
{
PermissionGroup
value
;
NSNumber
*
rawNumberValue
=
permissions
[
i
]
;
[
permissions
[
i
]
getValue
:
&
value
]
;
int
rawValue
=
rawNumberValue
.
intValue
;
PermissionGroup
permission
=
v
alue
;
PermissionGroup
permission
=
(
PermissionGroup
)
rawV
alue
;
id
<
PermissionStrategy
>
permissionStrategy
=
[
PermissionManager
createPermissionStrategy
:
permission
];
id
<
PermissionStrategy
>
permissionStrategy
=
[
PermissionManager
createPermissionStrategy
:
permission
];
[
_strategyInstances
addObject
:
permissionStrategy
];
[
_strategyInstances
addObject
:
permissionStrategy
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment