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

Add android expo support and permissions checker #224

Merged
merged 4 commits into from
Mar 31, 2022

Conversation

jdivock-stripe
Copy link
Contributor

@jdivock-stripe jdivock-stripe commented Mar 30, 2022

Summary

This one wound up being an adventure, here are the hits:

  • built another permissions util specific to expo / android, it makes use of the react-native-permissions lib which is not compatible with react-cli and our example app so it's been broken out.
  • added target to the expo plugin to update the AndroidManifest.xml file with the required user-permissions to gain BT access an enable react-native-permissions to work
  • added docs on all these special steps

That said, we should revisit all this when expo is updated to 45 as I imagine most of these rough edges will be handled.

Motivation

#201

Testing

Validated on my expo example app, works 🎉

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

dhenry-stripe
dhenry-stripe previously approved these changes Mar 30, 2022
@jdivock-stripe jdivock-stripe force-pushed the jdivock/expo-compat-android-perms branch from d21b964 to 800c45a Compare March 30, 2022 18:33
@jdivock-stripe jdivock-stripe changed the title [wip] update perms helper Add android expo support and permissions checker Mar 30, 2022
@jdivock-stripe jdivock-stripe force-pushed the jdivock/expo-compat-android-perms branch from bd34ac8 to 4089433 Compare March 30, 2022 20:24
Copy link
Contributor

@dhenry-stripe dhenry-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -231,6 +236,37 @@ android.jetifier.blacklist=moshi-1.13.0.jar

Depending on the version of jetifier in use.

#### Permissions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we deduplicate by linking to docs/set-up-your-sdk.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I was thinking of making a partial. I believe the intent with everything in /docs is to eventually migrate it into our docs portal. Once we get that going we can gate in users and scrap just about everything in the README aside from our alpha/hero users steps

}

const hasGrantedPermission = (status: string) => {
return status === RESULTS.GRANTED;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good starting point, but users will also need to detect whether a permission denial was temporary or permanent. Android permissions have three states:

  • Granted
  • Denied, which has two substates:
    • Denied once
    • Denied permanently (ie checking the "Never ask again" checkbox in the permission dialog UI)

If a permission is denied permanently then the permissions dialog is never displayed to the user and the permission request is automatically denied.

react-native-permissions seems to model the permanent denial using RESULTS.BLOCKED [0]. I suggest we consider exposing this (or some abstraction of it to hide the lib) to applications to allow them to appropriately handle the permanent denial case.

Or, failing that leave a comment to warn consumers that they'll need to implement permanent denial handling themselves.

[0] https://github.com/zoontek/react-native-permissions#android-flow

Copy link
Contributor Author

@jdivock-stripe jdivock-stripe Mar 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or, failing that leave a comment to warn consumers that they'll need to implement permanent denial handling themselves.

That would work, but honestly it feels like we can just return a typed error object here and let the user decide cause at that point their app is useless. I'm thinking something along the lines of:

type Error = { error: Record<string, string> | null };

and {error: null} if all perms are granted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, gave it the ole refactor. I don't feel great about having 2 perms utils that are nearly identical, but hopefully the expo one can just go away in the next Expo release when they hopefully handle this better.

@arekkubaczkowski
Copy link
Contributor

well done 👍

@jdivock-stripe jdivock-stripe merged commit e5ee19f into main Mar 31, 2022
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe pushed a commit that referenced this pull request Apr 6, 2022
internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments
jdivock-stripe added a commit that referenced this pull request Apr 6, 2022
* internet reader e2e tests

internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (#179)

templates (#181)

yarn diff check (#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (#84)

npm release script (#87)

* chore: add publish script

* chore: update docs

test connection token on init (#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (#111)" (#186)

This reverts commit 18db810.

fix dependabot minimist issue (#189)

usb connection type (#188)

upgrade minimist in example app as well (#190)

duplicated event listeners (#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (#200)

Android validation and transformation helpers (#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods #111 (#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (#208)

[WIP] Android unit tests (#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (#218)

* android permissions util

* improve location permission message

add android expo steps to readme (#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (#203)" (#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments

* hide simulated and connect fields

Co-authored-by: Jason Divock <jdivock@stripe.com>
arekkubaczkowski pushed a commit to arekkubaczkowski/stripe-terminal-react-native that referenced this pull request Jun 29, 2022
* update perms helper

* it works

* docs

* refactor permissions utils
arekkubaczkowski added a commit to arekkubaczkowski/stripe-terminal-react-native that referenced this pull request Jun 29, 2022
* internet reader e2e tests

internet reader e2e fixes

fix typo

fix e2e tests

tests fixes and improvements

setReadDisplay/clearReaderDisplay e2e test

run setReaderDisplay e2e only on iOS

fix setReaderDisplay test

fix setReaderDisplay scenario

fix test

fix e2e test

improve reader display screen layout

prettier/eslint js files (stripe#172)

* updates

* updates linting settings, adds prettier target

* npm reg

removed tvos target (stripe#179)

templates (stripe#181)

yarn diff check (stripe#180)

* add manual yarn.lock diff check

* force fail

* how about this

* and this

* restore lockfile

Create expo plugin (stripe#113)

* chore: create expo plugin

* chore: add plugin params

* chore: add expo docs

* fix package.json path

upgrade tsc and clean up example app routing param types (stripe#185)

* upgrade tsc

* clean up routing param types

fix: TextInput color on Android (stripe#84)

npm release script (stripe#87)

* chore: add publish script

* chore: update docs

test connection token on init (stripe#177)

* chore: test connection token on init

* chore: render app conditionally

Handle other Android connection methods (stripe#111)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix indentations

* fix methods params

* fix merge issues

Revert "Handle other Android connection methods (stripe#111)" (stripe#186)

This reverts commit 18db810.

fix dependabot minimist issue (stripe#189)

usb connection type (stripe#188)

upgrade minimist in example app as well (stripe#190)

duplicated event listeners (stripe#182)

* fix: duplicated event listeners

* temporary listener fix

* fix typings

* cleanup

* fix updateing callbacks refs

fix labels

handle multiple secret keys, in-person refund tests

updated android sdk to 2.7.1 (stripe#200)

Android validation and transformation helpers (stripe#192)

* making use of new transformation functions

* validation helpers

* removed some mappers

Handle other Android connection methods stripe#111 (stripe#187)

* chore: handle other connection methods

* chore: add proper e2e tests

* fix: e2e tests

* fix: e2e test

* fix methods params

* rebase fixes

* rebase fix

Co-authored-by: David Henry <dhenry@stripe.com>

StripeTerminalReactNativeModule reduced scope (stripe#202)

* separated callbacks and listeners from RN module

* cancelOperation added

* ReactNativeConstants imports

* extracting reader.serialNumber

[wip] update readme with expo guidance and re-order content (stripe#206)

* update readme with expo guidance and re-order content

* more

* shufflin things

* toc

more doc fixes (stripe#207)

* more fixes

* refactor

* add note about links not being available

adding codeowners (stripe#208)

[WIP] Android unit tests (stripe#204)

* separated callbacks and listeners from RN module

* TokenProvider unit tests

* run unit tests in circleci

* unit test yarn command

* BluetoothReaderListener unit tests

* store test results

* DiscoveryListener unit tests

* updated test output path

* test results path updated

* UsbListenerTest

* TerminalListener and HandoffReaderListener unit tests

* one more try with the test output path

Bump plist from 3.0.4 to 3.0.5 (stripe#216)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 (stripe#215)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump ansi-regex from 4.1.0 to 4.1.1 in /example (stripe#213)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump plist from 3.0.4 to 3.0.5 in /example (stripe#214)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Reader update errors received by RN SDK (stripe#217)

* reader update errors received by RN SDK

* lint

* ios SDK sends update errors to RN SDK

Prevent from calling methods before SDK initializing SDK (stripe#203)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

Memoize StripeTerminalProvider values (stripe#221)

* fixing hooks deps

* fix android all target

* pushing looping location check

* memoize context

* discover

* rrc

* setupIntents

android permissions util (stripe#218)

* android permissions util

* improve location permission message

add android expo steps to readme (stripe#210)

* add android steps

* shuffle

* update both files

* toc

test tokenProvider on init (stripe#211)

* test tokenProvider on init

* catchable tokenProvider error

Revert "Prevent from calling methods before SDK initializing SDK (stripe#203)" (stripe#225)

This reverts commit 38972ad.

added metadata property to enable Android SDK RN identification (stripe#227)

rename e2e file

patch package

revert API_URL

handle CA server

fix commands

script rename

fix server:ci command

use canada API url from env

fix server endpoint

fix createPaymentIntent via server

Add android expo support and permissions checker (stripe#224)

* update perms helper

* it works

* docs

* refactor permissions utils

logLevel only on StripeTerminalProvider component level (stripe#223)

* logLevel only on StripeTerminalProvider component level

* fix typo

createPaymentIntent uses INTERAC_PRESENT for CAD currency (stripe#232)

* createPaymentIntent uses INTERAC_PRESENT for CAD currency

* createPaymentIntent receives paymentMethodTypes from the POS application

* enum mapping fix

add setSimulatedCard method

clean up

use bluetooth reader for collecting CA payments

fix e2e tests

use keyboard aware scroll view

fix linter

set unique testID

fix tests

fix in-person refund e2e

scroll to bottom before tap

fix log name

fetch latest interac charge

refund - set test card number

fix refund e2e

fix e2e

fix android ui

fix e2e test, record failing tests

prevent call methods being not initialized (stripe#228)

* prevent from calling methods before SDK initializing SDK

* improve error message

* isInitialized as a util function

* improvements

* remove direct functions export

implement onDidReportAvailableUpdate in example app (stripe#236)

enable interac for e2e android scenario

skip refunding tests on android

fix e2e test

add comments

* hide simulated and connect fields

Co-authored-by: Jason Divock <jdivock@stripe.com>
@nazli-stripe nazli-stripe deleted the jdivock/expo-compat-android-perms branch September 6, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants