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

[ILX-49850-2] Upgrade react-native-scanner #28

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ed80a83
Fetching coordinates for barcode
pushpender30111992 Aug 24, 2023
03cd5d1
Removing logs.
pushpender30111992 Aug 24, 2023
dd613fe
Update Scanner Native Module to expose barcode bounds and corners
ravindraguptacapgemini Aug 25, 2023
b26363a
Merge branch 'fetching-barcode-coordinates' of https://github.com/Int…
ravindraguptacapgemini Aug 25, 2023
1b58ffe
Minor changes
ravindraguptacapgemini Aug 25, 2023
c41e5a5
Updated code to pass format of code
ravindraguptacapgemini Aug 27, 2023
0434afa
Fixed code issues in iOS
ravindraguptacapgemini Aug 28, 2023
269bb81
Added feature for
ravindraguptacapgemini Aug 28, 2023
9dd2dcd
Implemented Pause/Resume, pause after capture for Scanner on Android
ravindraguptacapgemini Aug 29, 2023
cdbcbe4
Minor code changes
ravindraguptacapgemini Aug 29, 2023
4ae135e
Minor fixes for commands
ravindraguptacapgemini Aug 30, 2023
f9238d4
Minor fixes in typescript file
ravindraguptacapgemini Aug 30, 2023
8a1eef7
Exported component with Ref to support commands
ravindraguptacapgemini Sep 1, 2023
37a3c3a
Update camera android code
ravindraguptacapgemini Sep 2, 2023
1709c20
Update ios code for pauseAfterCapture property
ravindraguptacapgemini Sep 4, 2023
ea1a682
Minor fixes
ravindraguptacapgemini Sep 4, 2023
d673897
Fixed issues on iOS for property and commands
ravindraguptacapgemini Sep 4, 2023
cba6d0d
Improved camera handling
ravindraguptacapgemini Nov 21, 2023
1fc7da7
Added isActive property to control session state
ravindraguptacapgemini Nov 21, 2023
865b487
Minor fixes in iOS
ravindraguptacapgemini Nov 21, 2023
4791a36
Added startScanning, stopScanning commands to the scanner module
ravindraguptacapgemini Nov 22, 2023
d6ae3ed
Updated isActive handling to resume/pause preview
ravindraguptacapgemini Nov 22, 2023
accd48b
Stop scanner on unmount
ravindraguptacapgemini Nov 23, 2023
b9449d2
Fix import issue for useEffect
ravindraguptacapgemini Dec 1, 2023
9d8d190
Merge pull request #1 from IntelexTechnologies/fetching-barcode-coord…
ahmedtausif Sep 27, 2024
e0a62f1
Data Matrix Barcode support in iOS
ahmedtausif Sep 27, 2024
d80ad9c
Merge pull request #2 from IntelexTechnologies/data_matrix
ahmedtausif Sep 27, 2024
f84a444
[ILX-49850-2] update package
subhodip-intelex Oct 18, 2024
6be9ed0
[ILX-49850-2] Upgrade react-native-scanner
subhodip-intelex Oct 18, 2024
62bef62
[ILX-49850-2] resolve error
subhodip-intelex Oct 21, 2024
092d794
[ILX-49850-2] Upgrade react-native-scanner
subhodip-intelex Oct 21, 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
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: 🐛 Report a bug
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''
---

### Current behaviour
<!-- Describe your issue in detail -->

### Expected behaviour
<!-- A clear and concise description of what you expected to happen -->

### How to reproduce?
<!-- Help us to reproduce the issue and describe the steps -->
<!-- Attach code example on snack.expo.dev or in a GitHub repo -->

### Preview
<!-- Include screenshots or video if applicable. -->

### What have you tried so far?
<!-- List down the steps you have tried to fix or identify the issue. -->

### Your Environment

| software | version |
| ------------------------------------- | ------- |
| ios | x |
| android | x |
| react-native | x.x.x |
| @pushpendersingh/react-native-scanner | x.x.x |
| node | x.x.x |
| npm or yarn | x.x.x |
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 🗣 Feature request
about: Suggest an idea for this project
title: ''
labels: 'feature request'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 💬 Question
about: You need help with @pushpendersingh/react-native-scanner.
title: ''
labels: 'question'
assignees: ''

---

### Ask your Question
<!-- A clear and concise question describing the concern -->
28 changes: 0 additions & 28 deletions .github/actions/setup/action.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/check-repro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Check for repro
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]

jobs:
check-repro:
if: ${{ github.event.label.name == 'bug' }}
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const user = context.payload.sender.login;
const body = context.payload.comment
? context.payload.comment.body
: context.payload.issue.body;
const regex = new RegExp(
`https?:\\/\\/((github\\.com\\/${user}\\/[^/]+\\/?[\\s\\n]+)|(snack\\.expo\\.dev\\/.+))`,
'gm'
);
if (regex.test(body)) {
await github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['repro provided'],
});
try {
await github.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'needs repro',
});
} catch (error) {
if (!/Label does not exist/.test(error.message)) {
throw error;
}
}
} else {
if (context.eventName !== 'issues') {
return;
}
const body = "Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a [snack.expo.dev](https://snack.expo.dev) link or link to a GitHub repo under your username).\n\nCan you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.";
const comments = await github.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
if (comments.data.some(comment => comment.body === body)) {
return;
}
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
await github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs repro'],
});
}
151 changes: 0 additions & 151 deletions .github/workflows/ci.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Semantic Pull Request"
on: [pull_request]

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true
22 changes: 22 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

name: Close stale issues and PRs
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 7
any-of-labels: 'needs more info,needs repro,needs response'
exempt-issue-labels: 'repro provided,keep open'
exempt-pr-labels: 'keep open'
stale-issue-label: 'stale'
stale-pr-label: 'stale'
stale-issue-message: 'Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.'
stale-pr-message: 'Hello 👋, this pull request has been open for more than a month with no activity on it. If you think this is still necessary with the latest version, please comment and ping a maintainer to get this reviewed, otherwise it will be closed automatically in 7 days.'
27 changes: 27 additions & 0 deletions .github/workflows/triage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Triage
on:
issues:
types: [labeled]

jobs:
needs-more-info:
runs-on: ubuntu-latest
if: github.event.label.name == 'needs more info'
steps:
- uses: actions/checkout@master
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: comment "Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to [snack.expo.dev](https://snack.expo.dev)) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.)."

needs-repro:
runs-on: ubuntu-latest
if: github.event.label.name == 'needs repro'
steps:
- uses: actions/checkout@master
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: comment "Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on [snack.expo.dev](https://snack.expo.dev). If it's not possible to repro it on [snack.expo.dev](https://snack.expo.dev), then you can also provide the repro in a GitHub repository."
Loading