Commit 570104d
authored
Add header and stub for User Messaging Platform SDK. (#1391)
* Added initial header and empty stub for UMP ConsentInfo.
* Added error message getters.
* Add ConsentInfo methods.
* Format code.
* Comment tweak.
* Fix lint error.
* Add LastResult methods.
* Additional implementation.
* Fix build.
* Fix lint errors.
* Added integration test for initializing library.
* Update test.
* Fix initialization.
* Add internal methods.
* Add mappings from interface class to internal class.
* Add string conversion for error code.
* Add conversion of form errors.
* Add stub function implementations.
* Add stub operations and unit tests.
* Add missing file.
* Format code.
* Add check for form.
* Add test for expected error not specifying tag for age of consent.
* Clean up tests by moving initialization into shared method.
* Fix TODO.
* Fix lint issues.
* Add Doxygen comments to public interface.
* Add LastResult implementations, and tests to confirm.
* Add method stubs for new UserMessagingPlatform API.
* Handle invalid internal pointers.
* Format code.
* Add objective-C header for FormParent.
* Add ump.h to top-level CMake file, so it gets added to the framework.
* Change RequestConsentStatus to RequestConsentInfoUpdate.
* Update integration test method name.
* Update all Future return types to Future<void>.
Added GetInstance() with no parameters for Android, for convenience.
* Add a test to ensure that GetInstance() always returns the same instance.
* Change params to a struct.
Add ConsentFormErrorUnavailable and remove some other enum entries.
* Document the workflow that the stub simulates.
* Clean up stub workflow for privacy options.
* Add comment to struct.
* Fix comments & enum text.
* Newline removed.
* Lint error.
* Added comment explaining what EEA means.
* Add a comment about ResetInfo in the UMP tests.
* Add expectation for privacy also being unknown.
* Move GetConsent*ErrorMessage to internal.
* Update method documentation and fixed FormUnavailable/Available logic.
* Fix comments.1 parent 9b8e34e commit 570104d
File tree
11 files changed
+1474
-1
lines changed- app
- gma
- integration_test/src
- src
- common/ump
- include/firebase/gma
- ump
- stub/ump
11 files changed
+1474
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
550 | 553 | | |
551 | 554 | | |
552 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments