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

Merge major_release_5.0.0 into main #1648

Merged
merged 180 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
1667530
Bump json5 from 2.2.1 to 2.2.3 in /examples/RNOneSignalTS
dependabot[bot] Jan 4, 2023
a752966
- Android integration
kesheshyan Mar 16, 2023
5c314aa
- iOs integration
kesheshyan Mar 16, 2023
de917bb
- ReactNative TypeScript integration
kesheshyan Mar 16, 2023
54b4d6b
- Example update
kesheshyan Mar 16, 2023
954275a
- eslint fixes
kesheshyan Mar 16, 2023
f45c3c2
- ios setLaunch fix
kesheshyan Mar 16, 2023
6dab730
- Migration guide
kesheshyan Mar 17, 2023
c91df52
- Naming convention fixes
kesheshyan Mar 17, 2023
83ca814
- Migration guide fixes
kesheshyan Mar 17, 2023
efc9f73
- Package version bump
kesheshyan Mar 17, 2023
56c90dd
- Addressed review comments
kesheshyan Mar 23, 2023
6706e0f
- Fixed notification change handler
kesheshyan Mar 23, 2023
ecbd53c
- Added NPM publish on release action
kesheshyan Mar 24, 2023
5abc282
- Updated README.md
kesheshyan Mar 24, 2023
6989c03
Merge branch 'main' into user_model
kesheshyan Mar 24, 2023
f084b6d
- Updated NPM publish action
kesheshyan Mar 24, 2023
7dd6b19
Merge pull request #1505 from OneSignal/user_model
kesheshyan Mar 24, 2023
baa44cb
Bump native version dependencies
jennantilla Jun 2, 2023
c41fac9
Move Live Activities to its own namespace
jennantilla Jun 2, 2023
7b22049
Update privacy consent API names and remove public getters
jennantilla Jun 2, 2023
a69677e
Update InAppMessages event model & interfaces
jennantilla Jun 9, 2023
1800f4a
Update InAppMessages with addEventListener method for click & lifecyc…
jennantilla Jun 9, 2023
6aaa6d9
Add capability to add & remove multiple InAppMessage listeners
jennantilla Jun 9, 2023
a2dcbfd
Update inAppMessages API for iOS
jennantilla Jun 9, 2023
aedbe62
Update InAppMessages API for Android
jennantilla Jun 9, 2023
fc6f4d2
InAppMessages addTrigger(s) now only accepts String values
jennantilla Jun 9, 2023
71d691d
Fix spelling for convertReadable methods
jennantilla Jun 9, 2023
3dad4a4
Update demo app InAppMessages methods
jennantilla Jun 9, 2023
8962cdb
Update example app logging for InAppMessages events
jennantilla Jun 14, 2023
9d15328
Update Notifications API, models, and interfaces
jennantilla Jun 14, 2023
183be87
Add capability to add & remove multiple Notifications listeners
jennantilla Jun 14, 2023
8500e84
Update Notifications API for iOS
jennantilla Jun 14, 2023
24a69fa
Update Notifications API for Android
jennantilla Jun 14, 2023
d12c5ec
Clean up old imports and unused RNUtils methods on Android
jennantilla Jun 14, 2023
b44f51f
Update demo app Notifications methods
jennantilla Jun 14, 2023
7fca0a4
Update PushSubscription namespace
jennantilla Jun 14, 2023
5ee39b8
Update PushSubscription API on iOS
jennantilla Jun 14, 2023
80b4c8f
Update PushSubscription API on Android
jennantilla Jun 14, 2023
11e32de
Update demo app PushSubscription method
jennantilla Jun 14, 2023
fd0b83a
Update permission naming
jennantilla Jun 14, 2023
37b6055
Update permission API on iOS
jennantilla Jun 14, 2023
7f56b36
Update permission API on Android
jennantilla Jun 14, 2023
b8e2a7e
Update demo app permission method
jennantilla Jun 14, 2023
a787afd
Fix onNotificationPermissionDidChange on iOS
jennantilla Jun 15, 2023
9d9ea16
Add permissionNative for iOS
jennantilla Jun 15, 2023
15becb1
Update Migration Guide
jennantilla Jun 16, 2023
8ae6275
run Prettier for linting test failure
jennantilla Jun 20, 2023
8a99c38
Migration guide fixes
jennantilla Jun 27, 2023
7dc08f7
Update Migration Guide formatting
jennantilla Jun 30, 2023
3b1949e
Update Notification permission observer and PushSubscription observer…
jennantilla Jul 1, 2023
c83d478
Update Migration Guide examples with new addEventListener methods for…
jennantilla Jul 1, 2023
118b343
Run Prettier for new linting errors
jennantilla Jul 1, 2023
0fc4ba5
Update clearEventHandler method with early return
jennantilla Jul 10, 2023
c6cf5c5
Fix lint error on EventManager class
jennantilla Jul 10, 2023
e20d6db
[Nit] Clean up extraneous tracked files
jennantilla Jul 13, 2023
25b652c
Update Limitations and Notifications permission event listener code s…
jennantilla Jul 15, 2023
39ff2fe
Update iOS click listeners to be invoked by sharedInstance
jennantilla Jul 15, 2023
164d324
Remove old Email and SMS observers from iOS Event Emitter.
jennantilla Jul 15, 2023
3670e4f
Update PushSubscription interfaces, properties, and functions
jennantilla Jul 15, 2023
f0fb0f0
Delete native call to removePushSubscriptionObserver
jennantilla Jul 15, 2023
dfc58ca
Update InAppMessages listeners to be handled by EventManager
jennantilla Jul 15, 2023
7e10dbf
Update Notification event interfaces and methods
jennantilla Jul 15, 2023
762ee2b
Update Android Notification and IAM listeners to send entire event
jennantilla Jul 15, 2023
c544316
Update EventManager to allow for multiple Notification and IAM listeners
jennantilla Jul 15, 2023
4f8e60c
Fix lint errors
jennantilla Jul 15, 2023
7c0a465
remove clearHandlers public method
jennantilla Jul 17, 2023
970f29e
Update Event Manager method names
jennantilla Jul 21, 2023
5515e81
remove setLaunchURLsInApp
jennantilla Jul 21, 2023
f3b2aa5
Add back clearAll method to iOS
jennantilla Jul 21, 2023
e4ab46c
Update Android notification and push subscription conversion methods …
jennantilla Jul 21, 2023
07b9803
Remove user state refresh limitation from Migration Guide
jennantilla Jul 21, 2023
d8099e1
Update import for push subscription changed state and method declarat…
jennantilla Jul 21, 2023
d5d21f3
Replace logLevel types from int to enum
jennantilla Jul 21, 2023
117722b
Bump iOS native dependency to beta-5
jennantilla Jul 21, 2023
8568b1e
Update InAppMessage lifecycle listeners to send entire event on iOS
jennantilla Jul 21, 2023
980b458
Fix linting errors
jennantilla Jul 21, 2023
be6676e
Merge pull request #1524 from OneSignal/user_model_beta2/rename_events
jennantilla Jul 24, 2023
4c0daca
Merge pull request #1532 from OneSignal/user_model_beta2/observer_upd…
jennantilla Jul 24, 2023
abe3f48
Update iOS dependency to beta-06
jennantilla Jul 24, 2023
a35dce0
Update react-native version for release
jennantilla Jul 24, 2023
76bd5b7
Merge pull request #1535 from OneSignal/release/5.0.0-beta-02
jennantilla Jul 25, 2023
a55234f
Bump native dependencies to GA versions
jennantilla Aug 16, 2023
1c91b53
Rename package to remove geektime
jennantilla Aug 16, 2023
4ea1864
Add reminder of setLaunchURLsInApp removal
jennantilla Aug 16, 2023
8888791
Update Migration Guide logLevel and alertLevel examples
jennantilla Aug 16, 2023
553feb5
Rename PushSubscription to camel case
jennantilla Aug 16, 2023
9ab41b1
Migration Guide updates
jennantilla Aug 17, 2023
2314ab6
Merge pull request #1536 from OneSignal/remove_geektime
nan-li Aug 18, 2023
62836b7
Merge branch 'major_release_5.0.0' into user_model_ga
nan-li Aug 18, 2023
39c6665
Update MIGRATION_GUIDE.md
nan-li Aug 18, 2023
3472b8b
Merge pull request #1537 from OneSignal/user_model_ga
nan-li Aug 18, 2023
5cde971
bump SDK version number to `5.0.0`
nan-li Aug 18, 2023
c1d611c
Merge pull request #1539 from OneSignal/release/5.0.0
nan-li Aug 18, 2023
ccbf17b
Fix migration guide table formatting
nan-li Aug 21, 2023
b12c1b3
Remove OutcomeEvent
nan-li Aug 21, 2023
55767ef
Export more types through index file
nan-li Aug 21, 2023
f1fac3e
Update migration instructions for iOS
jennantilla Aug 21, 2023
a95127e
Change scope for login/logout method
jennantilla Aug 21, 2023
4c773f8
Fix formatting on NSE changes instructions
jennantilla Aug 22, 2023
ba42928
Remove NotificationService file updates
jennantilla Aug 22, 2023
4189a99
Misc migration guide updates
nan-li Aug 31, 2023
5f41a66
Add wrapper type
nan-li Sep 12, 2023
cb8fb20
Fix permission boolean
nan-li Sep 14, 2023
9069cb8
[nit] linting
nan-li Sep 14, 2023
e0c6f4b
Merge pull request #1558 from OneSignal/post_5.0.0_fixes_branch
nan-li Sep 18, 2023
a08df2e
Bump iOS SDK to 5.0.2
nan-li Sep 26, 2023
fc12b2f
Update iOS initialization with nil app ID
nan-li Sep 26, 2023
b835d4d
Add canRequestPermission to Android
nan-li Sep 27, 2023
74db2b0
Merge pull request #1541 from OneSignal/migration_guide_fixes_post_5.…
nan-li Sep 27, 2023
2a7764e
Merge branch 'major_release_5.0.0' into fix/notification_click_listener
nan-li Sep 27, 2023
145c254
Merge pull request #1567 from OneSignal/fix/notification_click_listener
nan-li Sep 27, 2023
651399f
Merge pull request #1570 from OneSignal/fix/android_can_request_permi…
nan-li Sep 27, 2023
11beca5
Android version bump to 5.0.2
nan-li Sep 27, 2023
9e73ffc
SDK version bump to 5.0.1
nan-li Sep 27, 2023
5e4952e
Merge pull request #1571 from OneSignal/rel/5.0.1
nan-li Sep 28, 2023
9f7d666
update native SDK's wrapper version for release
nan-li Sep 28, 2023
94571b6
Merge pull request #1574 from OneSignal/rel/5.0.1_update_native_wrapp…
nan-li Sep 28, 2023
24bea92
release commit
nan-li Oct 6, 2023
868e5a7
Merge pull request #1585 from OneSignal/rel/rn_5.0.2
nan-li Oct 6, 2023
6b9ac44
Resolve correct boolean when permission denied
nan-li Oct 23, 2023
c281499
example app - add permission native button
nan-li Oct 23, 2023
a93d4bb
add codeql action for security scanning
emawby Oct 26, 2023
ac2181a
Merge pull request #1593 from OneSignal/add_codeql
emawby Oct 26, 2023
0421f61
docs: fix optIn and optOut description
nan-li Oct 30, 2023
9680d81
Resolve request permission call when permission already exists
nan-li Nov 6, 2023
f410b06
Merge pull request #1591 from OneSignal/fix/request_permission_deny
nan-li Nov 9, 2023
ebad1a2
release commit
jennantilla Nov 9, 2023
323b31d
Update iOS SDK version
jennantilla Nov 9, 2023
af49bb2
Correct wrapper sdk version
jennantilla Nov 9, 2023
1320e58
Merge pull request #1599 from OneSignal/rel/rn_5.0.3
jennantilla Nov 9, 2023
6803f49
Update RCTOneSignalEventEmitter.m to fix duplicate listeners
essaji Nov 15, 2023
e43f4fe
chore: rename check name
essaji Nov 16, 2023
ac0dfef
bump native sdk version dependencies to 5.0.5
jennantilla Dec 4, 2023
bcaa0d4
add getTags method
jennantilla Dec 4, 2023
f759eca
add getTags button to example app
jennantilla Dec 4, 2023
c076c28
Update migration guide to include getTags
jennantilla Dec 4, 2023
f5d1e27
remove try/catch block from getTags
jennantilla Dec 5, 2023
19d5950
Merge pull request #1609 from OneSignal/feature/getTags
jennantilla Dec 5, 2023
17b9d8c
Merge pull request #1601 from essaji/rel/rn_5.0.3
jennantilla Dec 5, 2023
e5c5fc1
release commit
jennantilla Dec 5, 2023
a6e5c6e
Merge pull request #1611 from OneSignal/rel/5.0.4
jennantilla Dec 5, 2023
19cd60c
Update PushSubscription and Notification permission property getters
jennantilla Jan 26, 2024
192d00c
Update example app to use new async property getter methods
jennantilla Jan 26, 2024
57498c7
Bump SDK versions
jennantilla Jan 30, 2024
ac3e012
Merge pull request #1638 from OneSignal/rel/5.0.5
jennantilla Jan 30, 2024
850f1b0
fix: skip handlers removal if SDK is not initialized
Ribas187 Jan 31, 2024
a24559b
Merge pull request #1639 from Ribas187/fix/error-removing-handlers-wh…
jennantilla Feb 13, 2024
b401ce6
Bump SDK versions
jennantilla Feb 13, 2024
1a7cfd4
Merge pull request #1650 from OneSignal/rel/5.0.6
jennantilla Feb 14, 2024
be62a17
Update Migration Guide with async getter methods
jennantilla Jan 26, 2024
e898034
Add console warnings to deprecated methods
jennantilla Feb 13, 2024
d898dbd
Clarify deprecated annotations
jennantilla Feb 19, 2024
18f85af
Update push subscription getters and observer to ensure ids are nullable
jennantilla Feb 19, 2024
e1d65a5
Update PushSubscriptionState properties to optional
jennantilla Mar 8, 2024
d789599
Merge pull request #1649 from OneSignal/fix/property_getters
jennantilla Mar 12, 2024
0ad50bc
Update User namespace
jennantilla Jan 10, 2024
c65edce
Update example app
jennantilla Jan 10, 2024
2a831c3
[Android] Add getters for onesignal ID/external ID, add user state ob…
jennantilla Jan 10, 2024
94c16e6
[iOS] Add getters for onesignal ID/external ID, add user state observer
jennantilla Jan 10, 2024
5a02457
Update Migration Guide
jennantilla Jan 10, 2024
e30afd9
Run prettier to fix linting errors
jennantilla Jan 10, 2024
1cc3313
Update UserState properties to optional
jennantilla Jan 26, 2024
9863539
Update User Id getters to async
jennantilla Jan 26, 2024
4e252cc
Update Migration Guide
jennantilla Jan 26, 2024
0db0d7c
Update user observer method description with instructions to check ex…
jennantilla Jan 31, 2024
ed9e679
Fix linting
jennantilla Feb 1, 2024
3a6a3e0
Ensure Ids are nullable
jennantilla Feb 16, 2024
4b80bf8
Remove unused method and nonexistent interface property
jennantilla Feb 16, 2024
4997f20
Update UserState observer properties to return null if empty
jennantilla Mar 8, 2024
d9cca19
Merge branch 'major_release_5.0.0' into feat/add_get_ids
jennantilla Mar 12, 2024
0b9fd76
Merge pull request #1627 from OneSignal/feat/add_get_ids
jennantilla Mar 12, 2024
d48b12b
Bump SDK versions
jennantilla Mar 12, 2024
9042a56
Update package.json version
jennantilla Mar 12, 2024
4ab7c7b
Merge pull request #1662 from OneSignal/rel/5.1.0
jennantilla Mar 12, 2024
dd95bc2
Merge pull request #1513 from OneSignal/actions/set_response_time
emawby Apr 17, 2023
9cd5693
Merge pull request #1514 from OneSignal/update-eslint-version
emawby Apr 19, 2023
3134256
Merge pull request #1624 from OneSignal/emawby-patch-1
emawby Jan 10, 2024
35ce75c
release commit 4.5.2
nan-li Aug 25, 2023
30667a1
Merge branch 'main' into user_model_rebase
jennantilla Mar 12, 2024
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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/ask-question.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 🙋‍♂️ Ask a question
description: Tell us what's on your mind
title: "[question]: "
labels: ["question"]
title: '[question]: '
labels: ['question']
# assignees:
# - OneSignal/ios-sdk
body:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 🪳 Bug report
description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]
title: '[Bug]: '
labels: ['bug', 'triage']
# assignees:
# - OneSignal/ios-sdk
body:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/general-feedback.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 📣 General feedback
description: Tell us what's on your mind
title: "[Feedback]: "
labels: ["triage"]
title: '[Feedback]: '
labels: ['triage']
# assignees:
# - OneSignal/ios-sdk
body:
Expand Down
67 changes: 41 additions & 26 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,75 @@
<!-- START -->

# READ AND DELETE THIS SECTION BEFORE SUBMITTING PR
* **Fill out each _REQUIRED_ section**
* **Fill out _OPTIONAL_ sections, remove section if it doesn't apply to your PR**
* **Read and fill out each of the checklists below**
* **Remove this section after reading**

- **Fill out each _REQUIRED_ section**
- **Fill out _OPTIONAL_ sections, remove section if it doesn't apply to your PR**
- **Read and fill out each of the checklists below**
- **Remove this section after reading**
<!-- END -->

# Description

## One Line Summary

**REQUIRED** - Very short description that summaries the changes in this PR.

## Details

### Motivation

**REQUIRED -** Why is this code change being made? Or what is the goal of this PR? Examples: Fixes a specific bug, provides additional logging to debug future issues, feature to allow X.

### Scope

**RECOMMEND - OPTIONAL -** What is intended to be effected. What is known not to change. Example: Notifications are grouped when parameter X is set, not enabled by default.

### OPTIONAL - Other

**OPTIONAL -** Feel free to add any other sections or sub-sections that can explain your PR better.

# Testing

## Unit testing
**OPTIONAL -** Explain unit tests added, if not clear in the code.

**OPTIONAL -** Explain unit tests added, if not clear in the code.

## Manual testing

**RECOMMEND - OPTIONAL -** Explain what scenarios were tested and the environment.
Example: Tested opening a notification while the app was foregrounded, app build with Android Studio 2020.3 with a fresh install of the OneSignal example app on a Pixel 6 with Android 12.

# Affected code checklist
- [ ] Notifications
- [ ] Display
- [ ] Open
- [ ] Push Processing
- [ ] Confirm Deliveries
- [ ] Outcomes
- [ ] Sessions
- [ ] In-App Messaging
- [ ] REST API requests
- [ ] Public API changes

- [ ] Notifications
- [ ] Display
- [ ] Open
- [ ] Push Processing
- [ ] Confirm Deliveries
- [ ] Outcomes
- [ ] Sessions
- [ ] In-App Messaging
- [ ] REST API requests
- [ ] Public API changes

# Checklist

## Overview
- [ ] I have filled out all **REQUIRED** sections above
- [ ] PR does one thing
- If it is hard to explain how any codes changes are related to each other then it most likely needs to be more than one PR
- [ ] Any Public API changes are explained in the PR details and conform to existing APIs

- [ ] I have filled out all **REQUIRED** sections above
- [ ] PR does one thing
- If it is hard to explain how any codes changes are related to each other then it most likely needs to be more than one PR
- [ ] Any Public API changes are explained in the PR details and conform to existing APIs

## Testing
- [ ] I have included test coverage for these changes, or explained why they are not needed
- [ ] All automated tests pass, or I explained why that is not possible
- [ ] I have personally tested this on my device, or explained why that is not possible

- [ ] I have included test coverage for these changes, or explained why they are not needed
- [ ] All automated tests pass, or I explained why that is not possible
- [ ] I have personally tested this on my device, or explained why that is not possible

## Final pass
- [ ] Code is as readable as possible.
- Simplify with less code, followed by splitting up code into well named functions and variables, followed by adding comments to the code.
- [ ] I have reviewed this PR myself, ensuring it meets each checklist item
- WIP (Work In Progress) is ok, but explain what is still in progress and what you would like feedback on. Start the PR title with "WIP" to indicate this.

- [ ] Code is as readable as possible.
- Simplify with less code, followed by splitting up code into well named functions and variables, followed by adding comments to the code.
- [ ] I have reviewed this PR myself, ensuring it meets each checklist item
- WIP (Work In Progress) is ok, but explain what is still in progress and what you would like feedback on. Start the PR title with "WIP" to indicate this.
6 changes: 3 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ categories:
- title: 🐛 Bug Fixes
label: Bug
- title: 🧰 Improvements
label: Improvement
label: Improvement
- title: down arrow Dependency Updates
label: Dependencies
label: Dependencies
change-template: '- $TITLE (#$NUMBER)'
version-resolver:
major:
Expand All @@ -23,5 +23,5 @@ version-resolver:
default: patch
template: |
## Other Changes

$CHANGES
2 changes: 1 addition & 1 deletion .github/workflows/Zapier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Triggers the workflow on push or pull request events but only for the "main" branch
issues:
types: [closed]

permissions:
issues: read

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Test

on:
pull_request:
branches: "**"
branches: '**'

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: "[Setup] Node"
- name: '[Setup] Node'
uses: actions/setup-node@v3
with:
node-version: 16
- name: "[Setup] Dependencies"
- name: '[Setup] Dependencies'
run: yarn
- name: "[Test] Linting"
- name: '[Test] Linting'
run: yarn lint

- name: Unit tests results
Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main", "major_release_5.0.0" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "major_release_5.0.0" ]
schedule:
- cron: '37 19 * * 4'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
18 changes: 18 additions & 0 deletions .github/workflows/npm_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: NPM Publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Publish package
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM }}
1 change: 0 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Release Drafter

on:
Expand Down
17 changes: 10 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,34 @@
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:

### How to Contribute

We love the open source community and enjoy the support and contributions of many of our users. We ask that any potential contributors to the SDK Follow the following guidelines:

If your proposed contribution is a small bug fix, please feel free to create your own fork of the repository and create a pull request.

If your contribution would _break_ or _change_ the functionality of the SDK, please reach out to us on (contact) before you put in a lot of effort into a change we may not be able to use. We try our best to make sure that the SDK remains stable so that developers do not have to continually change their code, however some breaking changes _are_ desirable, so please get in touch to discuss your idea before you put in a lot of effort.

#### Reporting Bugs
If you have found a bug with the SDK, please feel free to open an Issue.

If you have found a bug with the SDK, please feel free to open an Issue.

If you are pretty certain that the issue is only related to the native iOS SDK, please open the issue in our [native iOS SDK repository](https://github.com/OneSignal/OneSignal-iOS-SDK).

If you are certain the issue is contained to the Android SDK, please open the issue in our [Android SDK repository](https://github.com/OneSignal/OneSignal-Android-SDK)

#### Before Submitting A Bug Report

Before creating bug reports, please check this list of steps to follow.

1. Make sure that you are actually encountering an _issue_ and not a _question_. If you simply have a question about the SDK, we would be more than happy to assist you in our Support section on the web (https://www.onesignal.com - click the Message button at the bottom right)
2. Please make sure to [include as many details as possible](#how-do-i-submit-a-good-bug-report)

> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.


#### How Do I Submit a Good Bug Report
* **Use a clear and descriptive title** for the issue to identify the problem.
* **Include Reproducibility** It is nearly always a good idea to include steps to reproduct the issue. If you cannot reliably reproduce the issue yourself, that's ok, but reproducible steps help best.
* **Describe your environment**, tell us what version of react-native your app is using, what version of the react-native-onesignal SDK you're using, how you added it to your project, and so on.
* **Include a Stack Trace** If your issue involves a crash/exception, ***PLEASE*** post the stack trace to help us identify the root issue.
* **Include an Example Project** This isn't required, but if you want your issue fixed quickly, it's often a good idea to include an example project as a zip and include it with the issue. You can also download the Demo project (included in the `/examples` folder of this repo) and set up an example project with this code as a starting point.

- **Use a clear and descriptive title** for the issue to identify the problem.
- **Include Reproducibility** It is nearly always a good idea to include steps to reproduct the issue. If you cannot reliably reproduce the issue yourself, that's ok, but reproducible steps help best.
- **Describe your environment**, tell us what version of react-native your app is using, what version of the react-native-onesignal SDK you're using, how you added it to your project, and so on.
- **Include a Stack Trace** If your issue involves a crash/exception, **_PLEASE_** post the stack trace to help us identify the root issue.
- **Include an Example Project** This isn't required, but if you want your issue fixed quickly, it's often a good idea to include an example project as a zip and include it with the issue. You can also download the Demo project (included in the `/examples` folder of this repo) and set up an example project with this code as a starting point.
Loading
Loading