Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced repeat rules #8456

Open
wants to merge 32 commits into
base: dev-calendar
Choose a base branch
from

Conversation

murilopereirame
Copy link
Contributor

No description provided.

@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from c8134f0 to 040498f Compare February 3, 2025 08:23
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch 2 times, most recently from 30a7bb4 to 7aefc39 Compare February 3, 2025 08:45
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch 3 times, most recently from ffbc61b to be4c63a Compare February 4, 2025 06:54
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch from be4c63a to e3da4ff Compare February 4, 2025 07:13
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from a0e43a2 to 4ff0a1d Compare February 4, 2025 08:05
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch 2 times, most recently from 58728cf to 3d6d998 Compare February 4, 2025 08:58
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from 39d4116 to cf65d58 Compare February 5, 2025 12:08
@tutao-mac tutao-mac force-pushed the 8046-parse-advanced-repeat-rules branch from cf65d58 to 7446664 Compare February 5, 2025 12:25
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch 2 times, most recently from 5ca250b to c9c0d40 Compare February 6, 2025 12:53
mup and others added 17 commits February 6, 2025 13:54
Some rules aren't supported during event creation/editing.
This commit adds an info banner warning about losing rules if user edits
and event with unsupported rules.

Co-authored-by: André Dias <[email protected]>
To have the SDK we must move the tests from unit to Instrumented Tests
as unit tests aren't able to load our compiled SDK since the target
mismatches (Unit tests require linux-x86-64).

Mockito isn't able to mock final classes and instead of making all of
them open, we can use dexmaker to proxy the classes and be able to
fully mock final classes.

This commit introduces dexmaker as a dependency and also overrides
dexmaker mockito-core with a more updated one.
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from c9c0d40 to 25f09c9 Compare February 6, 2025 12:54
The way that we count events and occurrences changed with the
implementation of the advanced repeat rules, given that, we've had to
fix tests that relies on these counts.

This commit address one corner case for weekly events expansion on SDK
and fixes the tests on Swift.
@murilopereirame murilopereirame force-pushed the 8046-parse-advanced-repeat-rules branch from 25f09c9 to 6e404da Compare February 6, 2025 13:01
}

trait MonthNumber {
fn to_number(&self) -> u8;
Copy link
Contributor

Choose a reason for hiding this comment

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

could we use num_enum?

&self,
date: DateTime,
repeat_rule: EventRepeatRule,
) -> Vec<DateTime> {
Copy link
Contributor

Choose a reason for hiding this comment

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

would making an iterator make more sense, like we do with JS or Swift?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants