0.0.14 - (2019-12-10)
- Changed readme to reflect publish.
0.0.13 - (2019-12-10)
- Removed private flag from package.json.
0.0.12 - (2019-10-25)
- Fix crash that occurs due to attempting to unregister a non-registered broadcast receiver.
0.0.11 - (2019-10-8)
- Fix payment.tipAmount mapping due to Station 2018 setting tipAmount to null rather than 0.
0.0.10 - (2019-10-8)
- Readme text for scanner functionality
- Moved
useScanner
as a named export rather than part of the default object.
0.0.9 - (2019-10-8)
- Add Scanning functionality to Clover Bridge, use
registerScanner
to activate and then listen toCLOVER.EVENT.BARCODE_SCANNER
. Remember to callunregisterScanner
when cleaning up. Or use the handyuseScanner
hook.
0.0.8 - (2019-09-24)
- Add
HARDWARE_SERIAL_NUMBER
to constants. Clover uses a deprecated method to obtain this value and other libraries have started to migrate away.
- Moved constants logic to a separate
Constants
class. - Refactor how to initialize the
BridgePaymentConnector
in order to lower code reuse and simplify error handling when calling a paymentConnector method when it hasn't been initialized yet.
0.0.7 - (2019-09-20)
- Add
BridgeServiceConnector
to handle Clover service connection rather than loading it on the ReactNativeModule. - Add
printReceipt
flag tosale
,manualRefund
,voidPayment
andrefundPayment
. - Add
PrintJob
flags to constants. See PrintJob. - Add
printPayment
ReactMethod to bridge.
- Change
BridgePaymentConnectorListener
with additional overloadedonResult
methods. - Change
BridgePaymentConnector
and refactored to useBridgeServiceConnector
. Update theBridgePaymentConnector
methods. Add logic to handleprintReceipt
. - Refactor
Payments
methods to DRY it up a bit. - Change
PaymentConnectorListener
forsale
,manualRefund
,voidPayment
, andrefundPayment
to use updatedBridgePaymentConnectorListener
. - Update
index.d.ts
to reflect changes.
- Remove all ServiceConnector logic and variables from
RNCloverBridgeModule
.
0.0.6 - (2019-07-30)
- Expose
setFullRefund
to the JS bridge.
- Clean up and refactor
BridgePaymentConnector
logic.
0.0.5 - (2019-07-24)
- Add maps
TIP_MODE
to constants. See TipMode. - Add
tipMode
,tippableAmount
,tipSuggestions
, andtipAmount
as optional parameters to sale. See Tips for details on these settings. - Add
autoAcceptSignature
as optional parameter to sale. - Add method
authenticate
to module - Experiment with adding JSDocs to d.ts file
- Refactor PaymentConnectorListener logic
0.0.4 - (2019-07-16)
- Update Readme to reflect changes.
- Clean up some commented code.
- Add validation that bridgePaymentConnector has been initialized before calling payment methods.
0.0.3 - (2019-07-16)
- Add a typing definition file.
- Add a .prettierrc file.
- Add maps
DATA_ENTRY_LOCATION
andVOID_REASON
to constants. - Add in additional payment methods (
VoidPayment
,VoidPaymentRefund
).
- BREAKING Add new method
initializePaymentConnector
that must be called with a RAID before the payment methods can be called. - BREAKING Rename payment methods to standardize with what the Clover paymentConnector already calls them.
- Rename payment package classes and methods. Add a new
Payments
class to hold various static constants and methods. - Clean up and refactor payment methods.
- Add validation checks to the payment method's option parameter.
- Update gradle tool and gradle wrapper versions to match RN ~0.60.
- Update react-native peerDependecies to support react-native@^0.60.
0.0.2 - (2019-06-18)
- Remove unneeded android permissions from the manifest.
- Fix styling in Changelog.
0.0.1 - (2019-06-18)
This is the initial versioned/tracked release of @infuse/react-native-clover
as part of our initiative to create a shared/reusable React Native native module for the Clover SDK.
- Add a Changelog.
- Add @infuse/eslint-config and create a .eslintrc.
- Rename repo from
clover-sdk-react-native-bridge
toreact-native-clover
. Also update Android code and JS code to reflect this change. - Reset Version to 0.0.1 as part of this clean up.
- Update .gitignore to match one created from
react-native-cli
. - Update Readme to reflect new changes.
- Update package.json to reflect new changes.
- Remove react methods that were unrelated to the Clover SDK. The list of removed methods are:
getSSID
getConnectionStrength
getIPAddress
getEthernetMacAddress
enabledSound
disableSound
These will be extracted into a separate react native native module for use.
- Remove react methods and android code related to starting external payments through Clover. These will be extracted into a separate react native module for use. This also includes removal of the '/libs' folder.
- Clean up various parts of the android code.