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

feat: adds CardNumber element and getTokenById and createSession services #7

Merged
merged 17 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = off
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*
!src
!App.tsx

# generated by bob
dist/
17 changes: 16 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
module.exports = {
extends: [
'get-off-my-lawn',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:react/recommended',
],
plugins: ['eslint-plugin-prettier'],
rules: {
'import/order': 'off',
'sort-keys': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-use-before-define': 'off',
},
root: true,
extends: '@react-native-community',
};
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo.
* @basis-theory/engineers
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
For additional support or to discuss issues/features, please reach out to us on our [Community](https://community.basistheory.com) or via email at [support@basistheory.com](mailto:support@basistheory.com)

## Expected Behavior
-

## Actual Behavior
-

## Steps to Reproduce the Problem
1.
1.
1.

## Specifications
- SDK Version:
- React Native version:
- iOS version:
- Swift version:
- Java/Kotlin version:
- Android version:
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Describe your changes in detail -->
## Description

-

<!-- Please describe in detail how teammates can test your changes. -->
## Testing required outside of automated testing?

- [ ] Not Applicable

<!-- Provide Screenshots when applicable -->
### Screenshots (if appropriate):

- [ ] Not Applicable

<!-- Describe Rollback or Rollforward Procedure -->
## Rollback / Rollforward Procedure

- [ ] Roll Forward
- [ ] Roll Back

## Reviewer Checklist

- [ ] Description of Change
- [ ] Description of outside testing if applicable.
- [ ] Description of Roll Forward / Backward Procedure
- [ ] Documentation updated for Change
-
32 changes: 32 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pull Request

on:
pull_request:
branches: [master, release]

jobs:
verify:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
env:
CI: 1
NPM_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps (with cache)
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --no-progress --ignore-scripts

- name: Verify
run: make verify
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Release

on:
push:
branches: [master, release]

jobs:
request_approval:
runs-on: ubuntu-latest
steps:
- name: Send Deploy Request
uses: Basis-Theory/github-actions/deploy-slack-action@master
with:
slack-api-token: ${{ secrets.SLACK_DUCKBOT_API_KEY }}
channel: ${{ vars.SLACK_DUCKBOT_PRODUCT_APPROVAL_CHANNEL }}
mention-person: ${{ vars.SLACK_DUCKBOT_PRODUCT_APPROVER }}
status: 'request'

build-release:
runs-on: ${{ matrix.os }}
environment: Production
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
env:
CI: 1
NPM_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
token: ${{ secrets.SEMANTIC_RELEASE_PAT }}

- name: Start Deploy Message
uses: Basis-Theory/github-actions/deploy-slack-action@master
with:
slack-api-token: ${{ secrets.SLACK_DUCKBOT_API_KEY }}
channel: ${{ vars.SLACK_DUCKBOT_PRODUCT_DEPLOY_CHANNEL }}

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps (with cache)
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --no-progress --ignore-scripts

- name: Build
run: make build
env:
SKIP_INSTALL: 1 # install with cache was done already

- name: Release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_PAT }}

- name: Slack Deploy / Release Alert
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ job.status }}
channel: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
fields: 'repo,commit,message,workflow,job'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

- name: Stop Deploy Message
if: always()
uses: Basis-Theory/github-actions/deploy-slack-action@master
with:
slack-api-token: ${{ secrets.SLACK_DUCKBOT_API_KEY }}
channel: ${{ vars.SLACK_DUCKBOT_PRODUCT_DEPLOY_CHANNEL }}
status: 'done'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ yarn-error.log

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# generated by bob
dist/
11 changes: 7 additions & 4 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
printWidth: 80,
semi: true,
singleQuote: true,
trailingComma: 'all',
tabWidth: 2,
trailingComma: 'es5',
importOrderSeparation: false,
bracketSpacing: true,
};

26 changes: 26 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"branches": ["release",
{
"name": "master",
"prerelease": "beta"
}],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
Loading