-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
d21b964
to
800c45a
Compare
bd34ac8
to
4089433
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
well done 👍 |
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
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
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
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
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
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
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
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
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
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
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
* 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>
* update perms helper * it works * docs * refactor permissions utils
* 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>
Summary
This one wound up being an adventure, here are the hits:
react-native-permissions
lib which is not compatible with react-cli and our example app so it's been broken out.AndroidManifest.xml
file with the required user-permissions to gain BT access an enablereact-native-permissions
to workThat 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 🎉
Documentation
Select one: