- Add `weak` to mock variables called `delegate`
- Delete `UserNotificationCenterSpy` and use `UserNotificationCenterMock`
- Remove Task.sleep in favour of mock closures along with expectations/fulfillment.
* Add signposts to performance tests.
- Update flow to include support for the migration screen.
* If the welcome screen shows, click on the button.
* Ensure a clean simulator each run.
* Add accessibility identifier for migration screen if required.
* Handle walking into the room and back out again.
* use iphone 14 pro to match what's used in xcode.
* Remove ApplicationTests as duplicated in LoginTests.
We measure app startup time in LoginTests as part of the flow - we may as well avoid spending 60s doing only that measurement in ApplicationTests
* Sleep 10s, the ui is otherwise showing up in random order.
* Revert "Remove ApplicationTests as duplicated in LoginTests."
This reverts commit 8670710315bcd0d6c3c3046f534b32b4c728b837.
* Update script to parse out correct values from results file.
* Allow cancellation of password prompt in any order.
* Remove test timeout, performance tests will always take a while.
* Adjust parsing further
* Remove ApplicationTests.
* Move to a more elegant way to wait for something to disappear.
* Linting.
* Fix unit tests.
---------
Co-authored-by: Doug <douglase@element.io>
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* Fixes#1121 - Hide the loading indicator after the logout task finishes
* Manually restart the sync only when entering the `error` state
* Use stopSync instead of the roomListService directly on client deinit
* Replace WeakClientProxyWrapper with callback based delegate
* Fix homescreen user avatar not automatically updating
* Replace default Build SDK profile with reldbg, which is fast but also doesn't crash
* Always show the loading indicator when the room list is not in a `running` state
* Implement delayed user indicator presentations through the normal API
* Fix the unit tests
* Replace UserIndicatorController delayedIndicators dictionary with a plain set
* Delete deprecated font tokens.
* Migrate from primaryContent to textPrimary/iconPrimary.
* Migrate from links to textLinkExternal.
* Migrate from secondaryContent to textSecondary/iconSecondary.
* Migrate from accent to textActionPrimary.
- Some uses changed to textPrimary or iconPrimary as necessary.
- Some manual tints removed now that that Sentry is fixed.
* Migrate alert to textCriticalPrimary/iconCriticalPrimary.
* Migrate from brand to textActionAccent/iconAccentTertiary.
* Migrate from background to bgCanvasDefault or text/iconOnSolidPrimary
* Migrate system to bgSubtleSecondary.
* Remove ElementUIColors and obsolete migrated colours.
* Migrate tertiaryContent/quaternaryContent/quinaryContent to Compound.
* Migrate bubblesYou/bubblesNotYou to use Compound.
* Update Compound.
* Script that allows to build the sdk without any issue
* target independent solution
* Update CONTRIBUTING.md
* better more scalable solution
* Revert "Update CONTRIBUTING.md"
This reverts commit 5cc20019ad4277f5745f32eb9472e21bdb6f2160.
* Update Tools/Sources/BuildSDK.swift
Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
---------
Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
* testing improvements
* code improvements and sdk bump
* improved the stencil file
* improved the build sdk function
* code improvement
* also added the tearDown
* settting macOS to 13, and let's runa test of... the tests
* I want the artifacts of the test, might give me some more insight in Xcode
* archive artifact
* trying a thing with the xcode version
* push notifications alert makes this test fail
* test improvement
* let's try with a very long time
* let's disable autocorrection
* sleep
* 1 seconds fixed 90% of the issue, 2 should fix 100%
* waiting some more time in flaky tests and updated the content of a test that was failing
* updated a screenshot test that had a notification
* this integration test is a bit so flaky increased the timing
* controlled delay waited a bit moe for the timeline to settle
* try await
* MainActor everywhere
* milliseconds fix
* trying with a bit more waiting time after the tap and a slow velocity for the swipe
* let's try waiting more time
* fix for the sender icon not being rendered sometimes in notifications
* removing a line
* removing the environment every time we run a zsh command
* removed unused parameters that we already have stored in the notification
* changelog
* fixing locheck
* fixing locheck tool
* Revert "fixing locheck tool"
This reverts commit 9bb3dbcd70d1ecbc62b4289623b5f9e584929997.
* locheck install
* using the original code to get the directory
* adding swiftgen to download strings
* setup project on ci
* added Strings.swift to the path
* adding String.swift
* Translations workflow and tools
* improved the name of the workflow
* need this commit to trigger the workflow for the first time
* swift tools can now run on CI
* only strings and stringsdict will be committed
* fixed a workflow issue
* starting the workflow to save it
* fixing downgrade issues
* fixing URL usage
* install localazy
* fixing add-paths typo
* downloaded strings
* removing on push trigger
* Update Tools/Sources/DownloadTranslations.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* Added locheck for string verification
* code formatting improvement
* Update Tools/Sources/Locheck.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* pr suggestion
---------
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* Fixed the issue, added tests and italian translation
* changelog
* improved translation handling code and added more tests
* Update UnitTests/Sources/LocalizationTests.swift
Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
---------
Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
* generated files
* Revert "generated files"
This reverts commit f62c1dbcd9e505083ad4ff17532e2c054e253187.
* renaming files to RoomMembersList
* completed the renaming of the list files
* added generated files
* basic setup of the view and the mock
* added a new mock with a avatar
* share/copy link
* copyUserLink implemented
* removed unimplemented tests
* block user UI
* navigation to room member details added
* implemented but we require a sync from the Rust side
* adjusted some UI test screens
* alert for unblocking
* completed
* some tests
* changelog
* ignore user ui enabled
* loader inside the button when the request is fetching
* removed unused code
* blocking the button while loading
* improved the code
* changelog
* UI tests
* unit tests
* added collection concurrency kit
* Revert "added collection concurrency kit"
This reverts commit 499fbe129f73a75e903d9f4952fe2ad672930f04.
* replaced the asyncMap with a @MainActor builder function
* pr comments
* added localazy to setup
* sdk bump to 1.0.49
* updating dependencies
* minor version pinning
* update completed and also added a tool that checks for outdated swiftpm packages
* changelog
* DTCoreText uses exact version
* minor version for analytics
* pushing OutdatedPackages
* package.swift for the repo also using upToNextMinor
* fixing a typo
* Update Tools/Sources/OutdatedPackages.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* Update Tools/Sources/SetupProject.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* removing unused comment
* removed trailing comma
---------
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* created the row in the view and the alert, and added the new function to the RoomProxy
* fixed an issue with the alert function
* handling the navigation
* fixed a bug with the detail coordinators being dismissed incorrectly when inside a stack
* implementation completed
* replaced UI screenshots
* added a test for the fixed bug of the coordinators
* trying to increase the wait time for the expectation
* improved the test
* improved the buttons UI
* uploading artifacts for unit tests
* added result bundle true
* improved the tests
* added a new test
* pr suggestions
* updating mock
* PR suggestions
* improved tests
* fixed UI tests
* pr should be ready now
* removed testing code
* reduced complexity
* fixed test
* added a an assert to the new test case
* more tests and messages cases
* pr comments addressed
* completed
* updated set_pusher function from the SDK
* this fixes a crash and allows for the navigation to work by using the threadIdentifier of the notification
* adding NCE target
* project setup completed with xcodegen
* no need for those ugly storyboards
* code improvement
* removing unused outlet
* mocks generated with the comment instead of the marker protocol
* updated stencil
* fixed unit tests
* updated swiftformat
* pr comments
* work in progress, was able to generate a mock for the RoomProxyProtocol, I'll try if I can swap the mock we have with this one
* removing swiftformat from generated
* added the disable of swiftlint directly into the .stencil
* testing if danger still complains
* improved the stencil
* session verification controller proxy using auto mockable
* BugReport mocks and tests added
* changelog
* fixing a typo
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* fix typo in the test
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
* removing the Protocol word from the type if present
* using extension in place of a subclass
* removed unused imports
* improved the yielding code
* moved Sourcery files
* stencil master
---------
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Add locale to signalling service name.
Type strings character by character.
Add a default test timeout of 1 minute.
* Directly set UI Tests screens as the root screen.
Speeds up test runs by removing scrolling and searching for buttons.
* Parallelise test runs from Xcode (not fastlane).
* Disable signalling based tests.
* Deleted project file
* Add back SPM Package.resolved + .gitignore
* Generate project file on release builds
* Converge on single CI setup scripts within `ci_scripts/ci_common.sh`
* Fix unit tests
* Use new `ci_common/setup_github_actions_environment` setup script on all workflows
* Move lfs validation check to the pre-commit hooks. Remove validate-lfs github actions workflow
* Fix integration tests workflow
* Tweaks following code review
* Resume other app's music when video playback finished
* Remove old media player
* Add `isModallyPresented` into the video player screen
* Create image viewer screen
* Add test screen identifier
* Display image viewer when message tapped
* Fix template script unit test path
* Tweaks on scaling
* Commit project file
* Add changelog
* Ignore safe areas on the file preview screen
* Display images in preview
* Remove image viewer screen
Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
* Remove status bars when running UITests
* Remove simulator OS versions from screenshot names, be less lenient with image diffing
* Rename UITests splash screen to onboarding
* Switch tests to Xcode 14.1, remove version names for used simulators and switched from iPhone 13 Pro Max to iPhone 14
* Fix ServiceLocator and fallbackLaguage for UI tests
* Drop snapshot diffing precision to 0.99 as 0.999 triggers false negatives
* Fix server selection UI tests after exposing the sliding sync proxy configuration
* Update reference screenshots
* Fixes#286 - Adopted the new SwiftUI NavigationStack based NavigationController throughout the application
* Fixes#315 - Implemented new user notification components on top of SwiftUI and the new navigation flows
* Add home screen fade animation between skeletons and real rooms
* Bump the danger-swift version used on the CI and swiftlint with it
* Renamed Splash to Onboarding, Empty to Splash
* Fix UI test simulator versions
* Pin the used Xcode version used by fastlane to `~> 14.0.1`, as simctl status_bar overrides don't work on the Xcode14.1 RC
* Update base screenshots, fix status bar script warning, fix settings screen test
* Fix Timeline on Xcode 14/iOS 16
Raise requirement to iOS 16+
Reduce pagination jumping.
Sonarcloud fixes.
Fix verification test.
Adopt if let optional { syntax.
* Remove unused ScrollViewReader
The ScrollViewReader didn't appear to change the behaviour.
* Fix warnings on Run Scripts.
Run script build phase 'SwiftLint' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase.
* Add `stop` method to `Coordinator`
* Use new stop method to cleanup room screen
* Call stop implicitly when removing a child coordinator
* Revert placeholder avatar font change
* Fix PR remarks