-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(mostly grabbed from react-native-firebase, bent to fit admob post-extraction)
- Loading branch information
0 parents
commit f6dc018
Showing
34 changed files
with
10,972 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# editorconfig | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
src/version.js | ||
**/node_modules/** | ||
node_modules | ||
scripts/ | ||
coverage | ||
docs | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'plugin:react/recommended', | ||
'plugin:mocha/recommended', | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'prettier', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
plugins: ['jest'], | ||
parserOptions: { | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
}, | ||
settings: { | ||
react: { | ||
version: '16.1.0', | ||
}, | ||
}, | ||
env: { | ||
'jest/globals': true, | ||
}, | ||
rules: { | ||
'jest/no-identical-title': 0, | ||
'jest/no-disabled-tests': 'warn', | ||
'jest/no-focused-tests': 'error', | ||
'jest/no-identical-title': 'error', | ||
'jest/prefer-to-have-length': 'warn', | ||
'jest/valid-expect': 'error', | ||
|
||
'eslint-comments/no-unlimited-disable': 0, | ||
'no-new': 0, | ||
'no-continue': 0, | ||
'no-extend-native': 0, | ||
'import/no-dynamic-require': 0, | ||
'global-require': 'off', | ||
'class-methods-use-this': 0, | ||
'no-console': 1, | ||
'no-plusplus': 0, | ||
'no-undef': 0, | ||
'no-shadow': 0, | ||
'no-catch-shadow': 0, | ||
'no-underscore-dangle': 'off', | ||
'no-use-before-define': 0, | ||
'import/no-unresolved': 0, | ||
'@typescript-eslint/ban-ts-comment': 'off', // keep it professional when you use them though please | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/camelcase': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
// off for validation tests | ||
'@typescript-eslint/ban-ts-ignore': 'off', | ||
'mocha/no-skipped-tests': 'off', // we skip tests for a reason, frequently | ||
'mocha/no-top-level-hooks': 'off', // potentially has value if anyone wants to refactor | ||
'mocha/no-hooks-for-single-case': 'off', // potentially has value | ||
'mocha/no-setup-in-describe': 'off', // potentially has value, large refactor here though | ||
'mocha/no-mocha-arrows': 'off', | ||
}, | ||
globals: { | ||
__DEV__: true, | ||
should: true, | ||
Utils: true, | ||
window: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.xcodeproj binary | ||
*.xcworkspace binary | ||
*.pbxproj -text | ||
docs/typedoc.json merge=theirs linguist-vendored | ||
docs/typedoc.min.json merge=theirs linguist-vendored | ||
|
||
# Windows files should use crlf line endings | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
*.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# These are supported funding model platforms | ||
|
||
patreon: # Replace with a single Patreon username | ||
open_collective: # react-native-firebase | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
custom: # Replace with a single custom sponsorship URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
--- | ||
name: "⚠️ Bug/Issue report - React Native" | ||
about: Please provide as much detail as possible. Issues may be closed if they do | ||
not follow the template. | ||
title: "[\U0001F41B] Bug Report Title - CHANGE ME " | ||
labels: 'Help: Needs Triage, Impact: Bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!--- | ||
Hello there you awesome person; | ||
Please note that the issue list of this repo is exclusively for bug reports; | ||
If this is a setup issue then please make sure you've correctly followed the setup guides, most setup issues such as 'duplicate dex files', 'default app has not been initialized' etc are all down to an incorrect setup as the guides haven't been correctly followed. | ||
--> | ||
|
||
<!-- NOTE: You can change any of the `[ ]` to `[x]` to mark an option(s) as selected --> | ||
|
||
<!-- PLEASE DO NOT REMOVE ANY SECTIONS FROM THIS ISSUE TEMPLATE --> | ||
<!-- Leave them as they are even if they're irrelevant to your issue --> | ||
|
||
## Issue | ||
|
||
<!-- Please describe your issue here --^ and provide as much detail as you can. --> | ||
<!-- Include code snippets that show your usages of the library in the context of your project. --> | ||
<!-- Snippets that also show how and where the library is imported in JS are useful to debug issues relating to importing or methods not found issues --> | ||
|
||
Describe your issue here | ||
|
||
--- | ||
|
||
## Project Files | ||
|
||
<!-- Provide the contents of key project files which will help to debug --> | ||
<!-- For Example: --> | ||
<!-- - iOS: `Podfile` contents. --> | ||
<!-- - Android: `android/build.gradle` contents. --> | ||
<!-- - Android: `android/app/build.gradle` contents. --> | ||
<!-- - Android: `AndroidManifest.xml` contents. --> | ||
|
||
<!-- ADD THE CONTENTS OF THE FILES IN THE PROVIDED CODE BLOCKS BELOW --> | ||
|
||
### Javascript | ||
|
||
<details><summary>Click To Expand</summary> | ||
<p> | ||
|
||
#### `package.json`: | ||
|
||
```json | ||
# N/A | ||
``` | ||
|
||
#### `admob.json`: | ||
|
||
```json | ||
# N/A | ||
``` | ||
|
||
</details> | ||
|
||
### iOS | ||
|
||
<details><summary>Click To Expand</summary> | ||
<p> | ||
|
||
#### `ios/Podfile`: | ||
|
||
- [ ] I'm not using Pods | ||
- [x] I'm using Pods and my Podfile looks like: | ||
|
||
```ruby | ||
# N/A | ||
``` | ||
|
||
--- | ||
|
||
### Android | ||
|
||
<details><summary>Click To Expand</summary> | ||
<p> | ||
|
||
|
||
#### `android/build.gradle`: | ||
|
||
```groovy | ||
// N/A | ||
``` | ||
|
||
#### `android/app/build.gradle`: | ||
|
||
```groovy | ||
// N/A | ||
``` | ||
|
||
#### `android/settings.gradle`: | ||
|
||
```groovy | ||
// N/A | ||
``` | ||
|
||
#### `AndroidManifest.xml`: | ||
|
||
```xml | ||
<!-- N/A --> | ||
``` | ||
|
||
</p> | ||
</details> | ||
|
||
--- | ||
|
||
## Environment | ||
|
||
<details><summary>Click To Expand</summary> | ||
<p> | ||
|
||
**`react-native info` output:** | ||
|
||
<!-- Please run `react-native info` on your terminal and paste the contents into the code block below --> | ||
|
||
``` | ||
OUTPUT GOES HERE | ||
``` | ||
|
||
<!-- change `[ ]` to `[x]` to select an option(s) --> | ||
|
||
- **Platform that you're experiencing the issue on**: | ||
- [ ] iOS | ||
- [ ] Android | ||
- [ ] **iOS** but have not tested behavior on Android | ||
- [ ] **Android** but have not tested behavior on iOS | ||
- [ ] Both | ||
- **Are you using `TypeScript`?** | ||
- `Y/N` & `VERSION` | ||
|
||
</p> | ||
</details> | ||
|
||
<!-- Thanks for reading this far down ❤️ --> | ||
<!-- High quality, detailed issues are much easier to triage for maintainers --> | ||
|
||
<!-- For bonus points, if you put a 🔥 (:fire:) emojii at the start of the issue title we'll know --> | ||
<!-- that you took the time to fill this out correctly, or, at least read this far --> | ||
|
||
--- | ||
|
||
- 👉 Check out [`Invertase`](https://twitter.com/invertaseio) on Twitter for updates on the library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: "\U0001F4D6 Documentation Feedback" | ||
about: Report an issue with the documentation or suggest an improvement. | ||
title: "[\U0001F4DA] Documentation Issue Title - CHANGE ME " | ||
labels: 'Help: Good First Issue, Type: Docs' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Documentation Feedback | ||
|
||
Please describe your documentation issue or suggested improvement in detail here and provide links to any pre-existing/relevant documentation and screenshots if necessary: | ||
|
||
|
||
|
||
|
||
--- | ||
|
||
- 👉 Check out [`Invertase`](https://twitter.com/invertaseio) on Twitter for updates on the library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
blank_issues_enabled: false | ||
# contact_links: | ||
# - name: Feature Request | ||
# url: https://github.com/invertase/react-native-admob/discussions/new?category_id=24212123 | ||
# about: Share ideas for new features. | ||
# - name: Ask a Question | ||
# url: https://github.com/invertase/react-native-admob/discussions/new?category_id=24212122 | ||
# about: Ask the community for help. | ||
# - name: Show and tell | ||
# url: https://github.com/invertase/react-native-admob/discussions/4106 | ||
# about: Share what you've built with React Native Firebase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
### Description | ||
|
||
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request properly. --> | ||
<!-- Explain the **motivation** for making this change e.g. what existing problem does the pull request solve? --> | ||
|
||
### Related issues | ||
|
||
<!-- If this PR fixes an issue, include "Fixes #issueNumber" to automatically close the issue when the PR is merged. --> | ||
|
||
### Release Summary | ||
|
||
<!-- An optional description that you want to appear on the generated changelog --> | ||
|
||
### Checklist | ||
|
||
- I read the [Contributor Guide](../CONTRIBUTING.md) and followed the process outlined there for submitting PRs. | ||
- [ ] Yes | ||
- My change supports the following platforms; | ||
- [ ] `Android` | ||
- [ ] `iOS` | ||
- My change includes tests; | ||
- [ ] `e2e` tests added or updated in `__tests__e2e__` | ||
- [ ] `jest` tests added or updated in `__tests__` | ||
- [ ] I have updated TypeScript types that are affected by my change. | ||
- This is a breaking change; | ||
- [ ] Yes | ||
- [ ] No | ||
|
||
### Test Plan | ||
|
||
<!-- Demonstrate the code you've added is solid, e.g. test logs or screenshots. --> | ||
|
||
--- | ||
|
||
Think `react-native-admob` is great? Please consider supporting the project with any of the below: | ||
|
||
- 👉 Star this repo on GitHub ⭐️ | ||
- 👉 Follow [`Invertase`](https://twitter.com/invertaseio) on Twitter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Label name and color to set, when potential duplicates are detected | ||
issueLabel: potential-duplicate | ||
labelColor: cfd3d7 | ||
|
||
# If similarity is higher than this threshold, issue will be marked as duplicate | ||
threshold: 0.50 | ||
|
||
# Comment to post when potential duplicates are detected | ||
referenceComment: > | ||
Potential duplicates found: | ||
{{#issues}} | ||
- [#{{ number }}] {{ title }} ({{ accuracy }}%) | ||
{{/issues}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Configuration for reaction-comments - https://github.com/dessant/reaction-comments | ||
|
||
# Issues and pull requests with these labels accept reaction comments. | ||
# Set to `[]` to disable | ||
exemptLabels: [] | ||
|
||
# Replace matching comments with this message, `{comment-author}` is an | ||
# optional placeholder. Set to `false` to disable | ||
reactionComment: > | ||
:wave: @{comment-author}, did you mean to use | ||
a [reaction](https://git.io/vhzhC) instead? | ||
# Limit to only `issues` or `pulls` | ||
# only: issues | ||
|
||
# Optionally, specify configuration settings just for `issues` or `pulls` | ||
# issues: | ||
# exemptLabels: | ||
# - party-parrot | ||
|
||
# pulls: | ||
# reactionComment: false | ||
|
||
# Repository to extend settings from | ||
# _extends: repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 28 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 15 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- 📌 pin | ||
- Blocked: Upstream Issue | ||
- Workflow: Needs Review | ||
# Label to use when marking an issue as stale | ||
staleLabel: 'Type: Stale' | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
Hello 👋, to help manage issues we automatically close stale issues. | ||
This issue has been automatically marked as stale because it has not had activity for quite some time. | ||
Has this issue been fixed, or does it still require the community's attention? | ||
> This issue will be closed in 15 days if no further activity occurs. | ||
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 is still present in the latest release, please feel free to create a new issue with up-to-date information. | ||
only: issues |
Oops, something went wrong.