Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: 2.0.0 #291

Merged
merged 60 commits into from
Sep 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
35b68e7
Delete example
zoontek Jan 29, 2019
91f3b33
Add .editorconfig
zoontek Jan 29, 2019
9f73dee
Update project dependencies
zoontek Jan 29, 2019
55634b4
Run new prettier config over the codebase
zoontek Jan 29, 2019
ca75dfd
Move and update podspec file
zoontek Jan 29, 2019
bfa5993
Commit new native modules
zoontek Jan 30, 2019
ea8aa1a
Add JS module + example
zoontek Jan 30, 2019
de6edfa
Add checkMultiple, improve parallelism
zoontek Jan 30, 2019
9b1eb60
Cleanup a bit, fix typing
zoontek Jan 31, 2019
d0c0bb9
Fix checkMultiple on iOS
zoontek Jan 31, 2019
c013fb8
Fix LocationWhenInUse permission
zoontek Jan 31, 2019
db15e41
Fix Xcode line formatting
zoontek Jan 31, 2019
a4e415e
Fix Bluetooth permission
zoontek Feb 1, 2019
0dd10d7
Replace CBManagerState since it’s not available on iOS < 10
zoontek Feb 1, 2019
0f46040
Add a working iOS demo
zoontek Feb 1, 2019
3bba891
Fix AsyncStorage usage
zoontek Feb 1, 2019
a166c16
Add all example permissions in AndroidManifest
zoontek Feb 1, 2019
2cc2e87
Fix error.code cast
zoontek Mar 5, 2019
d96f543
Move podspec file to the project root
zoontek Mar 5, 2019
cfaa2dd
Add support for new dangerous permissions on Android
zoontek Mar 5, 2019
813a1b1
Install RNPermissions/Core
zoontek Mar 5, 2019
ec17f07
Basic documentation to experiment the v2.0.0
zoontek Mar 5, 2019
c6373c3
Improve exposed methods typings
zoontek Mar 5, 2019
9650428
Merge branch '2.0.0' of github.com:yonahforst/react-native-permission…
zoontek Mar 5, 2019
a3e8672
Change header size
zoontek Mar 5, 2019
bd370e5
Merge branch 'master' into 2.0.0
zoontek Mar 5, 2019
a7d0a02
Fix comment
zoontek Mar 5, 2019
f3d9500
Improve request type doc
zoontek Mar 5, 2019
8ceca9a
Bump to 2.0.0-rc.0
zoontek Aug 21, 2019
1d67806
Replace 2.0.0-rc.0 by next tag
zoontek Aug 21, 2019
4761167
Update README.md
zoontek Aug 22, 2019
8310b03
Wrap check / requestNotifications to avoid mocking
zoontek Sep 4, 2019
356d39b
Merge branch '2.0.0' of github.com:react-native-community/react-nativ…
zoontek Sep 4, 2019
1c030f5
Use repository url for git source
zoontek Sep 4, 2019
9eb1f4f
Fix ARC issues (handlers released too soon)
zoontek Sep 15, 2019
60b764b
Improve example
zoontek Sep 15, 2019
49a0a02
Add notificationCenter setting check
zoontek Sep 17, 2019
2d62b77
Remove console.warn
zoontek Sep 17, 2019
1b8dc37
Publish 2.0.0-rc.1
zoontek Sep 17, 2019
b6f40b5
Fix typo
zoontek Sep 19, 2019
0efc978
Add tvOS deployment_target
zoontek Sep 19, 2019
6cc9755
Improve example npm scripts
zoontek Sep 19, 2019
373fbd8
Fix gradle setup
zoontek Sep 19, 2019
11fac08
Update example dependencies
zoontek Sep 19, 2019
ff797bc
Add support for NSBluetoothAlwaysUsageDescription (iOS 13)
zoontek Sep 19, 2019
54ac46f
Add a warning about bad install
zoontek Sep 19, 2019
df3addd
Return no supported permissions for platforms other than iOS / android
zoontek Sep 19, 2019
fb110e9
Hide manual linking instructions by default
zoontek Sep 21, 2019
df0b484
Add flowcharts
zoontek Sep 21, 2019
39d6b37
Put flowcharts after the API documentation
zoontek Sep 21, 2019
26084bf
Add NSBluetoothAlwaysUsageDescription in example plist file
zoontek Sep 24, 2019
b4887cb
Merge branch '2.0.0' of github.com:react-native-community/react-nativ…
zoontek Sep 24, 2019
1f21c36
Add plist / AndroidManifest.xml instructions
zoontek Sep 24, 2019
1359c42
Add plist xml tag
zoontek Sep 24, 2019
a902f2a
Typo
zoontek Sep 24, 2019
cb7c376
Replace CBPeripheralManager.authorizationStatus (deprecated)
zoontek Sep 28, 2019
583fc9c
Update example to RN 0.61.1
zoontek Sep 28, 2019
85e9c2e
Add stale config
zoontek Sep 28, 2019
3d43be3
Add FUNDING.yml
zoontek Sep 28, 2019
4b800f9
Bump to 2.0.0
zoontek Sep 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.gradle]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
lib/
example/android/app/build
example/ios/Pods
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const typescriptEslintRecommended = require('@typescript-eslint/eslint-plugin/dist/configs/recommended.json');
const typescriptEslintPrettier = require('eslint-config-prettier/@typescript-eslint');

module.exports = {
extends: ['@react-native-community'],
overrides: [
{
files: ['*.ts', '*.tsx'],
// Apply the recommended Typescript defaults and the prettier overrides to all Typescript files
rules: Object.assign(
typescriptEslintRecommended.rules,
typescriptEslintPrettier.rules,
{'@typescript-eslint/explicit-member-accessibility': 'off'},
),
},
{
files: ['example/**/*.ts', 'example/**/*.tsx'],
rules: {
// Turn off rules which are useless and annoying for the example files files
'@typescript-eslint/explicit-function-return-type': 'off',
'react-native/no-inline-styles': 'off',
},
},
],
};
9 changes: 0 additions & 9 deletions .flowconfig

This file was deleted.

74 changes: 0 additions & 74 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: https://www.paypal.me/zoontek
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Configuration for probot-stale based on: https://github.com/facebook/react-native/blob/master/.github/stale.yml

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90

# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7

# Issues with these labels will never be considered stale
exemptLabels:
- Security
- Pinned
- Good first issue
- 'Type: Discussion'
- Partner
- Core Team
- 'Help Wanted :octocat:'
- 'Impact: Regression'
- 'Resolution: PR Submitted'
- 'Resolution: Backlog'

# Label to use when marking an issue as stale
staleLabel: Stale

# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs.
You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open.
Thank you for your contributions.

# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

only: issues
54 changes: 45 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
*.xcworkspace
# OSX
.DS_Store

# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
build/
.idea
.gradle
local.properties
*.iml

# Visual Studio Code
.vscode/

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# node.js
node_modules/
npm-debug.log
yarn-error.log

*.DS_Store
Thumbs.db
Desktop.ini
# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

.vscode/
# Bundle artifact
*.jsbundle

# Bob
lib/

android/build/
# CocoaPods
Pods/
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

7 changes: 4 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
android/
ios/
example/node_modules/
node_modules
lib/
example/android/app/build
example/ios/Pods
5 changes: 3 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"bracketSpacing": false,
"jsxBracketSameLine": true,
"singleQuote": true,
"trailingComma": "all",
"semi": false
"trailingComma": "all"
}
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact true
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Global owners
* @zoontek
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2015 Yonah Forst
Copyright (c) 2019 Mathieu Acthernoene

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading