forked from chemerisuk/cordova-plugin-firebase-analytics
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RMET-3822 - Firebase Analytics - Prepare to release version 5.0.0-OS16 (
#47) * RMET-3822 Firebase Analytics - Android - Convert values to double if necessary (#45) * fix: if key is "value", "tax", or "shipping", then its value should be a number (double) References: https://outsystemsrd.atlassian.net/browse/RMET-3822 * chore: update changelog References: https://outsystemsrd.atlassian.net/browse/RMET-3822 * RMET-3823 ::: iOS ::: Fix Ecommerce Decimal Values (#46) * fix(ios): make InputParameterData accept value types besides string This requires the code to validate the type being analysed. Considering that we want to split between the available types (Decimal and String), we declare the 'OSFANLInputDataFieldKey' values that should have a Decimal value and be treated differently. These changes allow us to - refactor the code a bit, namely the 'OSFANLManager''s 'validate(dataField:isRequired:eventData:)' method, making it much simpler than it was. - remove the now unused 'StringConvertable' initialiser. References: https://outsystemsrd.atlassian.net/browse/RMET-3823 * fix: remove default value when Decimal can't be initialised Instead of setting the value to 'zero' (which is wrong), throw an error mentioning that an invalid value was provided. Simplify the decimal verification call by using a boolean computed property. References: https://outsystemsrd.atlassian.net/browse/RMET-3823 * chore: add CHANGELOG entry References: https://outsystemsrd.atlassian.net/browse/RMET-3823 * chore: raise to version 5.0.0-OS16 References: https://outsystemsrd.atlassian.net/browse/RMET-3822 https://outsystemsrd.atlassian.net/browse/RMET-3823 --------- Co-authored-by: Ricardo Silva <[email protected]>
- Loading branch information
1 parent
2a39fc0
commit af1dd14
Showing
10 changed files
with
71 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
protocol StringConvertable { | ||
static var variableType: String { get } | ||
init?(value: String) | ||
} | ||
|
||
extension Decimal: StringConvertable { | ||
static var variableType: String { "Decimal" } | ||
|
||
init?(value: String) { | ||
self.init(string: value) | ||
} | ||
} | ||
|
||
extension String: StringConvertable { | ||
static var variableType: String { "Text" } | ||
|
||
init?(value: String) { | ||
self.init(stringLiteral: value) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters