Skip to content

Conversation

lukmccall
Copy link
Contributor

Why

Part of #5061.

@lukmccall lukmccall requested review from tsapeta and bbarthec August 5, 2019 14:42
@lukmccall lukmccall requested a review from bbarthec August 7, 2019 07:11
@lukmccall lukmccall changed the title [Permissions] Make requesters objects [Permissions] Make requester registrable Aug 7, 2019

+ (EXPermissionStatus)statusForPermissions:(NSDictionary *)permissions;
- (void)askForGlobalPermissionWithRequesterClass:(Class)requesterClass
withResolver:(void (^)(NSDictionary *))resolver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't that be just:

Suggested change
withResolver:(void (^)(NSDictionary *))resolver
withResolver:(UMPromiseResolveBlock)resolver

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That couldn't be UMPromiseResolveBlock, because this type is defined as void (^UMPromiseResolveBlock)(id result);

}

- (void)setModuleRegistry:(UMModuleRegistry *)moduleRegistry
{
_moduleRegistry = moduleRegistry;

// only for test purpose
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that should be addressed?

@lukmccall lukmccall merged this pull request into @lukmccall/permissions-rework Aug 8, 2019
@lukmccall lukmccall deleted the @lukmccall/permissions-rework-ios-clean branch August 8, 2019 14:35
lukmccall added a commit that referenced this pull request Aug 8, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Aug 19, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Sep 16, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Oct 22, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Oct 23, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Oct 24, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Oct 28, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Nov 4, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Nov 8, 2019
* Clean iOS

* Fix scoped permissions status (never undetermind)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable
lukmccall added a commit that referenced this pull request Nov 8, 2019
* [Permissions] Extract base class for requester

* [Permissions] Refactor

* [Permissions] Make podspecs for each requester

* [Permissions] Add missing self ensurement to requesters

* [Permissions] Android fix

* [Permissions] Rewrite module to kotlin

* [Permissions] Move scoped ask to activity

* [Permissions] Remove permissions manager

* [Permissions] Remove PermissionsServiceBinding

* [Permissions] Make requesters

* [Permissions] Improve code styling

* [Permissions] Make SystemBrightnessRequester (#5147)

* Make SystemBrightnessRequester

* Make type enum

Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>

* [Permissions] Rewrite android native api (#5186)

* Move logic form module to service

* Remove static var from PermissionsService

* Make getPermission not throwable

* Store asked permissions

* [Permissions] Make requester registrable (#5187)

* Clean iOS

* Fix scoped permissions status (never undetermined)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable

* [Permissions] Small fixes

* [Permissions] Add app ownership check and fix code style

* [Permissions] Rework native api (#5418)

* [Permissions] Move requesters to modules on iOS

* [Permissions] Add bool granted

* [Permissions] Add to native modules, permissions related methods

* [Permissions] Repair CI

* [Permissions] Fix typo

* [Permissions] Reduce boilerplate code

* [Permissions] Fix error description

* [Permissions] Export constants for permissions status

* [Permissions] Rename methods wrapper

* [Permissions] Remove scoped permissions from standalone apps

* [Permissions] Fix lateinit and scoped permissions

Location module in OnHostResume calls getPermissions method before Activity Provider is available.

* [Permissions] Add `never ask again` support

* [Permissions] Scoping only dangerous permission

* [Permissions] Rename  `neverAskAgain` to `canAskAgain`

* [Permissions] Run pod install

* [Permissions] Update docs

* [Permissions] Fix CI

* [Permissions] Fix typo and imports after rebase

* [Permissions] Small improvements in Android

* [Permissions] Make test-suits pass

* [Permissions] Add requested changes

* [Permissions] Move ts types to unimodule

* [Permissions] Add missing requester

* [Permissions] Small fixes

* [Permissions] Fix after rebase

* [Permissions] Update docs

* [Permissions] Publish dev home

* [Permissions] Add kotlin dependency to build.gradle

* [Permissions] Fix permissions in ContactsModule

* [Permissions] Set manifest in HomeActivity class

* [Permissions] Regenerate pods projects
Jamedjo pushed a commit to Jamedjo/expo that referenced this pull request Feb 4, 2021
* [Permissions] Extract base class for requester

* [Permissions] Refactor

* [Permissions] Make podspecs for each requester

* [Permissions] Add missing self ensurement to requesters

* [Permissions] Android fix

* [Permissions] Rewrite module to kotlin

* [Permissions] Move scoped ask to activity

* [Permissions] Remove permissions manager

* [Permissions] Remove PermissionsServiceBinding

* [Permissions] Make requesters

* [Permissions] Improve code styling

* [Permissions] Make SystemBrightnessRequester (expo#5147)

* Make SystemBrightnessRequester

* Make type enum

Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>

* [Permissions] Rewrite android native api (expo#5186)

* Move logic form module to service

* Remove static var from PermissionsService

* Make getPermission not throwable

* Store asked permissions

* [Permissions] Make requester registrable (expo#5187)

* Clean iOS

* Fix scoped permissions status (never undetermined)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable

* [Permissions] Small fixes

* [Permissions] Add app ownership check and fix code style

* [Permissions] Rework native api (expo#5418)

* [Permissions] Move requesters to modules on iOS

* [Permissions] Add bool granted

* [Permissions] Add to native modules, permissions related methods

* [Permissions] Repair CI

* [Permissions] Fix typo

* [Permissions] Reduce boilerplate code

* [Permissions] Fix error description

* [Permissions] Export constants for permissions status

* [Permissions] Rename methods wrapper

* [Permissions] Remove scoped permissions from standalone apps

* [Permissions] Fix lateinit and scoped permissions

Location module in OnHostResume calls getPermissions method before Activity Provider is available.

* [Permissions] Add `never ask again` support

* [Permissions] Scoping only dangerous permission

* [Permissions] Rename  `neverAskAgain` to `canAskAgain`

* [Permissions] Run pod install

* [Permissions] Update docs

* [Permissions] Fix CI

* [Permissions] Fix typo and imports after rebase

* [Permissions] Small improvements in Android

* [Permissions] Make test-suits pass

* [Permissions] Add requested changes

* [Permissions] Move ts types to unimodule

* [Permissions] Add missing requester

* [Permissions] Small fixes

* [Permissions] Fix after rebase

* [Permissions] Update docs

* [Permissions] Publish dev home

* [Permissions] Add kotlin dependency to build.gradle

* [Permissions] Fix permissions in ContactsModule

* [Permissions] Set manifest in HomeActivity class

* [Permissions] Regenerate pods projects
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
* [Permissions] Extract base class for requester

* [Permissions] Refactor

* [Permissions] Make podspecs for each requester

* [Permissions] Add missing self ensurement to requesters

* [Permissions] Android fix

* [Permissions] Rewrite module to kotlin

* [Permissions] Move scoped ask to activity

* [Permissions] Remove permissions manager

* [Permissions] Remove PermissionsServiceBinding

* [Permissions] Make requesters

* [Permissions] Improve code styling

* [Permissions] Make SystemBrightnessRequester (expo#5147)

* Make SystemBrightnessRequester

* Make type enum

Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>

* [Permissions] Rewrite android native api (expo#5186)

* Move logic form module to service

* Remove static var from PermissionsService

* Make getPermission not throwable

* Store asked permissions

* [Permissions] Make requester registrable (expo#5187)

* Clean iOS

* Fix scoped permissions status (never undetermined)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable

* [Permissions] Small fixes

* [Permissions] Add app ownership check and fix code style

* [Permissions] Rework native api (expo#5418)

* [Permissions] Move requesters to modules on iOS

* [Permissions] Add bool granted

* [Permissions] Add to native modules, permissions related methods

* [Permissions] Repair CI

* [Permissions] Fix typo

* [Permissions] Reduce boilerplate code

* [Permissions] Fix error description

* [Permissions] Export constants for permissions status

* [Permissions] Rename methods wrapper

* [Permissions] Remove scoped permissions from standalone apps

* [Permissions] Fix lateinit and scoped permissions

Location module in OnHostResume calls getPermissions method before Activity Provider is available.

* [Permissions] Add `never ask again` support

* [Permissions] Scoping only dangerous permission

* [Permissions] Rename  `neverAskAgain` to `canAskAgain`

* [Permissions] Run pod install

* [Permissions] Update docs

* [Permissions] Fix CI

* [Permissions] Fix typo and imports after rebase

* [Permissions] Small improvements in Android

* [Permissions] Make test-suits pass

* [Permissions] Add requested changes

* [Permissions] Move ts types to unimodule

* [Permissions] Add missing requester

* [Permissions] Small fixes

* [Permissions] Fix after rebase

* [Permissions] Update docs

* [Permissions] Publish dev home

* [Permissions] Add kotlin dependency to build.gradle

* [Permissions] Fix permissions in ContactsModule

* [Permissions] Set manifest in HomeActivity class

* [Permissions] Regenerate pods projects
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
* [Permissions] Extract base class for requester

* [Permissions] Refactor

* [Permissions] Make podspecs for each requester

* [Permissions] Add missing self ensurement to requesters

* [Permissions] Android fix

* [Permissions] Rewrite module to kotlin

* [Permissions] Move scoped ask to activity

* [Permissions] Remove permissions manager

* [Permissions] Remove PermissionsServiceBinding

* [Permissions] Make requesters

* [Permissions] Improve code styling

* [Permissions] Make SystemBrightnessRequester (expo#5147)

* Make SystemBrightnessRequester

* Make type enum

Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>

* [Permissions] Rewrite android native api (expo#5186)

* Move logic form module to service

* Remove static var from PermissionsService

* Make getPermission not throwable

* Store asked permissions

* [Permissions] Make requester registrable (expo#5187)

* Clean iOS

* Fix scoped permissions status (never undetermined)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable

* [Permissions] Small fixes

* [Permissions] Add app ownership check and fix code style

* [Permissions] Rework native api (expo#5418)

* [Permissions] Move requesters to modules on iOS

* [Permissions] Add bool granted

* [Permissions] Add to native modules, permissions related methods

* [Permissions] Repair CI

* [Permissions] Fix typo

* [Permissions] Reduce boilerplate code

* [Permissions] Fix error description

* [Permissions] Export constants for permissions status

* [Permissions] Rename methods wrapper

* [Permissions] Remove scoped permissions from standalone apps

* [Permissions] Fix lateinit and scoped permissions

Location module in OnHostResume calls getPermissions method before Activity Provider is available.

* [Permissions] Add `never ask again` support

* [Permissions] Scoping only dangerous permission

* [Permissions] Rename  `neverAskAgain` to `canAskAgain`

* [Permissions] Run pod install

* [Permissions] Update docs

* [Permissions] Fix CI

* [Permissions] Fix typo and imports after rebase

* [Permissions] Small improvements in Android

* [Permissions] Make test-suits pass

* [Permissions] Add requested changes

* [Permissions] Move ts types to unimodule

* [Permissions] Add missing requester

* [Permissions] Small fixes

* [Permissions] Fix after rebase

* [Permissions] Update docs

* [Permissions] Publish dev home

* [Permissions] Add kotlin dependency to build.gradle

* [Permissions] Fix permissions in ContactsModule

* [Permissions] Set manifest in HomeActivity class

* [Permissions] Regenerate pods projects
Eric-Tyrrell22 pushed a commit to Eric-Tyrrell22/expo that referenced this pull request Aug 14, 2025
* [Permissions] Extract base class for requester

* [Permissions] Refactor

* [Permissions] Make podspecs for each requester

* [Permissions] Add missing self ensurement to requesters

* [Permissions] Android fix

* [Permissions] Rewrite module to kotlin

* [Permissions] Move scoped ask to activity

* [Permissions] Remove permissions manager

* [Permissions] Remove PermissionsServiceBinding

* [Permissions] Make requesters

* [Permissions] Improve code styling

* [Permissions] Make SystemBrightnessRequester (expo#5147)

* Make SystemBrightnessRequester

* Make type enum

Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>

* [Permissions] Rewrite android native api (expo#5186)

* Move logic form module to service

* Remove static var from PermissionsService

* Make getPermission not throwable

* Store asked permissions

* [Permissions] Make requester registrable (expo#5187)

* Clean iOS

* Fix scoped permissions status (never undetermined)

* Requesters belong to EXPermission

* Remove permissions delegate

* Make requester registrable

* [Permissions] Small fixes

* [Permissions] Add app ownership check and fix code style

* [Permissions] Rework native api (expo#5418)

* [Permissions] Move requesters to modules on iOS

* [Permissions] Add bool granted

* [Permissions] Add to native modules, permissions related methods

* [Permissions] Repair CI

* [Permissions] Fix typo

* [Permissions] Reduce boilerplate code

* [Permissions] Fix error description

* [Permissions] Export constants for permissions status

* [Permissions] Rename methods wrapper

* [Permissions] Remove scoped permissions from standalone apps

* [Permissions] Fix lateinit and scoped permissions

Location module in OnHostResume calls getPermissions method before Activity Provider is available.

* [Permissions] Add `never ask again` support

* [Permissions] Scoping only dangerous permission

* [Permissions] Rename  `neverAskAgain` to `canAskAgain`

* [Permissions] Run pod install

* [Permissions] Update docs

* [Permissions] Fix CI

* [Permissions] Fix typo and imports after rebase

* [Permissions] Small improvements in Android

* [Permissions] Make test-suits pass

* [Permissions] Add requested changes

* [Permissions] Move ts types to unimodule

* [Permissions] Add missing requester

* [Permissions] Small fixes

* [Permissions] Fix after rebase

* [Permissions] Update docs

* [Permissions] Publish dev home

* [Permissions] Add kotlin dependency to build.gradle

* [Permissions] Fix permissions in ContactsModule

* [Permissions] Set manifest in HomeActivity class

* [Permissions] Regenerate pods projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants