Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
vhuseinova-msft 2cb88fded7
[ChatSDK] Fixed issue when ChatSDK couldn't run for ARM64 simulator (#1504)
* Updated Trouter version

* Fixed tests for ARM64 simulators

* Version update

* Tag update

* Reverted version change

* Fixed file format

* Updated excluded arch fields

* Removed EXCLUDED-ARCH settings from the proj files
2023-03-24 13:12:11 -07:00
Travis Prescott 0c8ffcbc91
Remove experimental Storage code (#1336)
* Remove storage experiment.

* Remove other references to AzureStorageBlob.

* Remove integration test.

* Remove storage-related examples.

* Remove reference to AzureSDKDemoSwift
2022-08-18 21:29:14 +00:00
Travis Prescott 2f12c77266
Apply AzureCommunicationChat hotfix 1.0.2 (#1019)
* AzureCommunicationChat 1.0.2 patch (#1009)

* Fix displayName optional

* Fix readOn property

* Remove nil senderDisplayName from typing and readreceipt events

* Upgrade Trouter package

* Remove commented out

* Update changelog

* Fix erroneous square brackets in user agent string (#1003)

* Fix application ID format.

* Bump AzureCore version to 1.0.0-beta.13.

* Update UserAgentPolicyTests.

* Revert version bump until release.

* Fix signaling client to stop connection if token invalid

* Rename

* WIP add tests

* Fix recipientId, more tests

* More tests

* More payload tests

* Pass through signaling handler

* Update changelog

* update changelog

* Comments

* PR comments

* Log error

* Revert "Fix erroneous square brackets in user agent string (#1003)"

This reverts commit a5058d1561.

Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* Update settings for release.

* Fix lint errors.

* Fix merge errors.

* Fix api version.

* Update GA patch for preview6 (#1021)

* Updates for preview6

* Consistency with other events

* Update recipientMri

* Keep recipientId

* WIP fix tests

* WIP

* WIP fixing tests

* Metadata tests

* Update metadata payloads

Co-authored-by: knvsl <10719831+knvsl@users.noreply.github.com>
2021-09-03 13:34:12 -07:00
Travis Prescott 0471a3ea91
Create podspecs for AzureIdentity and AzureStorageBlob. Update AzureSDKDemoSwift. (#983)
* Add podspecs and podfiles.

* Tweak podfile.

* Fix CI.

* Exclude arm64 from iphone simulator targets.

* Remove embedded frameworks and use podfile instead.

* Restore embedded frameworks.
2021-08-10 10:32:08 -07:00
Travis Prescott e98393d80f
Fix matching issues with playback tests (#981)
* Work on revising settings.

* Verify re-recording works.

* Troubleshoot linker error...

* Progress on recording.

* Recording progress.

* Recordings.

* TS recordings.

* Fix playback.

* Refactor new filter.
2021-08-04 10:36:56 -07:00
Travis Prescott b72da16e3b
Add AzureTest framework (#967)
* Initial commit for AzureTest.

* AzureTest DVR commit.

* Rename "AzureTestClient" to "ResourceUtilityClient". Eliminate MSAL dependency for AzureTest.

* Add util function to AzureTest to get environment variables (moved out of Chat).

* DVR updates. (#896)

* Update DVR references to point to fork rather than venmo (#903)

* Update DVR references to point to fork rather than venmo.

* Remove static linkage to DVR.

* Recordings on a per-test basis (#904)

* Feature/recording location (#907)

* Environment Variable for sdk root

* Revert project.pbxproj

* Edit to outputDirectory construction

* Env Variable TEST_MODE works as expected (#909)

* Environment Variable for sdk root

Enforce that DVR record-playback honors environment variables

* Environment Variables work as intended with the new DVR updates

* Undo Podfile Changes

Local Changes that need to be removed

* Slight edit to record mode

Co-authored-by: Jair Myree <t-jairmyree@microsoft.com>

* Automated means of creating test resources (#912)

* Add resource group delete operation.

* Progress.

* Project setting fixes.

* Add test-resources.bicep file.

* Update bicep file.

* Target python script in test resource deploy post-script.

* Remove ResourceUtil files and dependencies.

* Revert to previous output style.

* Remove empty environment variable. (#919)

* Injectable test settings  (#924)

* Commit test-settings.plist and git-ignore.

* TestSettings protocol.

* Update Podfile for DVR

* Don't use local DVR

* Chat test updates.

* Add recordings to project.

* Update prepare_chat_tests.py

* Update deployment targets.

* Add podspec.

* Add readme.

* Fix hard-coded links.

* Scrub headings and commit chat test recordings. (#935)

* Remove headers.

* Add scrubbed recordings.

* Feature/scrub subscription ids (#932)

* Major edits toward scrubbing subscription IDs

* Minor edits on scrubbing

* Update sdk/test/AzureTest/Scrubbing.swift

Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* Update sdk/test/AzureTest/Scrubbing.swift

Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* Update sdk/test/AzureTest/Scrubbing.swift

Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* Update sdk/test/AzureTest/Scrubbing.swift

Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* Recommit: Files changes got left out of last commit

* Requested Draft PR changes

* Clean up after rebase

* Testing response scrubbing in progress

* Finished Scrubbing SubscriptionIDs

* Adjustments made to PR based on review comments.

* Edits to PR based on review comments

* Update sdk/test/AzureTest/AzureTestTests/AzureTestTests.swift

Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* More edits based of pr review

* More edits to pr based off of review comments

* More edits to PR based off suggestions in review

* More edits to PR from review comments

* Removed unused functions and extensions

* Edits to PR based off review comments

* Edits to PR from review comments

* Edits based off PR review comments

Co-authored-by: Jair Myree <t-jairmyree@microsoft.com>
Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>

* RPF: RecordableXCTestCase (#963)

* Add base class for recordable tests.

* Run swiftformat.

* CI fixes.

* Fix podspec source_files.

* Fix project structure.

* Fixes

* Fix broken links.

* CI fixes.

* Remove test-settings.plist reference.

* Re-record tests.

* Fix tests for playback.

Co-authored-by: Jair <67484440+jairmyree@users.noreply.github.com>
Co-authored-by: Jair Myree <t-jairmyree@microsoft.com>
2021-07-27 11:32:03 -07:00
Travis Prescott d5cddfb852
Fix CI issues (#933)
* Update Podfile.

* Update Chat for new Trouter dependency.
2021-06-25 14:21:09 -07:00
Travis Prescott 3743bfafe9
Add dummy package AzureTemplate for EngSys development (#857)
* Commit AzureTemplate

* Fix up project files.

* Add marketing version to AzureTemplate Xcodeproj.

* Resolve CI complaints.
2021-05-14 13:57:15 -07:00
Travis Prescott 282dd71bc3
Release AzureCommunicationCommon 1.0.0. Deprecate AzureCommunication. (#829)
* Rename AzureCommunication to AzureCommunicationCommon.

* Add deprecated AzureCommunication podspec.

Project updates for CI

* Work on CI.

* [Project] removing the signing team

* [Project] removing old config files

* [Dependency] adding in core dependency for package and podspec for testing

* Update smoke test settings. Bump Communication versions.

* Fix up all schemes.

* Update imports.

* Final fixes.

Co-authored-by: Josh Lai <joshlai@microsoft.com>
2021-04-26 11:25:05 -07:00
knvsl b16d98677c
Signaling support for Chat Preview 5 (#765)
* Regenerate preview5

* Add generated code to project

* Preview5 changes

* Update README

* Move get thread properties to chatThreadClient

* Change README header to pass CI

* formatting

* Rename readme entirely to pass CI

* Revert package.swift

* Add back file after rebase

* Add test coverage

* Regenerate chat with latest swagger

* Revert readme overwritten

* Remove .jazzy

* Remove generated package.swift

* Remove duplicate reference

* Copy signalling files over

* Add signalling dependencies

* Add import path

* WIP update convenience layer

* Use convenience init instead of helper function

* Copy over rest of methods

* Remove fatalError

* Fix naming conflict

* Update signalling models

* Fix identifiers

* PR comments

* Remove failable init on signaling, fix spelling

* Fix typo after rebase

* Remove uneccessary check

* removing the local trouter librariy and use podfile to obtain published package

* Update podfile for chat test targets

* Rename file

* Remove throws

* Remove redundant enum strings

* Remove do-catch

* Use guard

* Remove swiftlint disable

* Fix license header on signaling files

* Remove eventIds, add init to ChatEventId

* set ENABLE_BITCODE to no since Trouter package doesnt support bitcode

* Rename isRealtimeNotificationsStarted

* Remove getters in troutersettings, remove use of force cast in signaling client

* Remove all the force unwrapping

* Fix type

* Use guard

* Refactor TrouterUtils & chat.swift

* Remove listener from off

* Update off function, move signaling client init into startRealtimeNotifications

* Remove hardcoded path in on()

* Rename listener to handler

* Rename on/off register/unregister

* Make CommunicationSignalingClient internal

* Add MARK comment trouterlistenerprotocol

* Cleanup trouter code

* Remove libs

* Fix project file after rebase

* Update package.swift

* add TrouterClientIos in podspec, and update the version to 0.0.1-beta.3

* remove TrouterClientIos from products

* rename signallingClientStarted to signalingClientStarted to be consistent

* renaming to toIso8601Date as per guideline, and set it to internal instead of public. rename signallingClientStarted tosignalingClientStarted

* [logs] preserve the logs on failure

* temporarily add -verbose to get more information on the failure

* [Project] testing bitcode

* [Project] turn off bitcode

* update trouter version

* change version string from v0.0.1-beta.4 to 0.0.1-beta.4

* use `TrouterClientIos` in dependency directly

* provide the name of the trouter package dependency

* [Project] Include the trouter to the project dependency

* [pipeline] disable the swift build job

* Remove duplicate test

* Move identifier tests into unit test target

* Revert comment out create xcframework

* Add warning if signaling client not initialized

* Use event in logger tag

* Add changelog

* [pipeline] fixing syntax

* [pipeline] remove whole script

* Fix enum, add workaround for missing prefix in payload

Co-authored-by: glorialimicrosoft <gelli@microsoft.com>
Co-authored-by: Josh Lai <joshlai@microsoft.com>
Co-authored-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com>
2021-04-01 14:05:18 -07:00
Travis Prescott cc846d1792
Pin MSAL version to avoid broken release of MSAL 1.1.16 (#786)
* Minor change to test CI.

* Pin MSAL version to avoid breaking change.

* Bump to latest non-broken version of MSAL.
2021-03-26 15:21:34 -07:00
JoshuaLai e3fe0d421e
[Issues-309] - Example - Fleshing out swift ui demo (#675)
* [Conflict] resolve project and podfile conflicts

* [ContentView] WIP of the laytout

* [ContentView] WIP adding in the navigation of the media page

* [Content] breaking up the view into different structs

* [BlobDownloadView] added new blob auth logic

* [BlobListObservable] adding new blob observable

* [BlobRow] extract blob row from example

* [Podfile] update the version of MSAL

* [ContentView] Update the authority to load configuration properly

* [BloblListObservable] setting the MSALInteractiveDelegate

* [BlobDownloadView] Implementing a table view controller

* [BlobDownloadView] trying to hook up the delegate

* [Common] create static blobl client

* [Common] pointing to static blob storage

* [Conflict] resolving conflicts in ClientMethodOptions

* [Conflict] resolving conflicts in ClientMethodOptions

* [BlobViewController] launch video player

* [BlobDownloadView] update to display the progress and state

* [Conflict] resolving conflicts in ClientMethodOptions

* [Conflict] fixing missed conflict markers

* [ViewModel] updating to use the BlobsOperations

* [Podfile] removing unused dependency

* [Podfile.lock] removing file

* [Main.storyboard] revert the changes to the main storyboard generated by Xcode

* [BlobDownloadViewController] revert empty line changes

* [Project] remove the app delegate file

* [ContentView] remove the MSAL implementation

* [BlobDownloadView] remove the MSAL delegate and implementation since it is not used

* [BlobListObservable] remove the import for MSAL

* [MediaView] remove the tab view

* [Revert] undo white space changes

* [Revert] revert the white space changes

* [Project] Fixing project entry point and reintroduce MSAL

* [Common] Clean up, added comment and removed unused methods

* [Appdelegate] remove unused app delegate and update to use scene delegate as main

* [Revert] empty space changes

* [Common] updating StorageBlobClient.init(connectionString:) wthout MSAL
2021-02-17 14:23:10 -08:00
knvsl 41039cc13f
Chat Preview3 (#687)
* Regenerate Chat SDK (#574)

* [Communication] - [Package] - Exclude ObjC files  (#572)

* [Package] Exclude the obj-c in package, and include swift build command in CI script

* [Package] Testing the removing files from exception should throw a CI error

* [Package] bring back the excluded files for CI

* [CI] making swift build its own job

* fixup! [CI] making swift build its own job

Co-authored-by: Brandon Siegel <brsiegel@microsoft.com>

* Regenerate chat

* Remove the old stuff

* Manual fixes

* Fix types

* More type updates

* Remove MergePatchObject

* Update names, remove Custom folder

* More rename member to participant

* Remove comment

* Regenerate again with latest autorest fixes

* Revert readme

* Typo again

* Lint

Co-authored-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com>
Co-authored-by: Brandon Siegel <brsiegel@microsoft.com>

* Add ChatClient and ChatThreadClient convenience layer (#578)

* Renaming for ios guidelines

* More fixing up naming

* Update references to old client

* Swiftformat

* Add dependency

* Fix naming to be consistent

* Fix name, update readme

* Update naming, fix naming in docs

* Format

* Update README

* Update with latest swagger - create thread changes (#581)

* Regenerate SDK

* Update README for create thread

* Update response for adding participants

* Revert change failing lint

* Rename maxpagesize for get threads (#586)

* Updated chatparticipants + maxPageSize naming (#598)

* Add unit tests for ACS chat service (#606)

* Run AzureCommunicationChat tests on CI. (#610)

* Run tests on CI.

* Temporarily switch scheme to just AzureCommunicationChat.

* Update phone deployment target.

* Restore `all` build schema.

* Add integration tests with record/playback mode (#607)

* Fix settings

* Delete old recordings dir

* Add record/playback tests

* Generate chatClient recordings

* Fix typo in unit test

* Sanitize senderId from recordings, add getMessage stub

* Linting

* Revert change to all scheme

* Revert local build setting

* Revert merge changes

* Remove unused files

* Regenerate Chat

* Add ChatMessageContent to project

* Lint and update tests

* Manually fix api-version

* Remove mergepatch

* Update recordings

* Update mocks

* Fix mock stubs conflicting with live tests

* Revert readme

* Add test coverage for list methods (#623)

* Latest swagger updates for Chat SDK (#626)

* Regenerate chat

* Manual fixes

* Fix tests

* Update mocks/recordings

* Update readme

* add signaling test app (#634)

add signaling test app

* [Communication] - Auth - Removing a duplicate policy and replacing it with bearer auth policy (#633)

* [CommunicationAuthenticationPolicy] Removing a duplicate policy
* [CommunicationPolicyTokenCredential] adding documentation
* [CommunicationPolicyTokenCredentialTests] Adding new unit tests testing the token credential
* [CHANGELOG] updating the change log with breaking changes

* Update naming CommuniCationUserCredential -> CommunicationTokenCredential

* Fix changelog merge

* Update Chat with latest swagger (#645)

* Regenerate Chat

* Remove try catch

* Manual fix in generated code

* Remove priority from chatmessage

* Linting

* Remove unused file

* Update recordings

* Remove priority from readme

* Regenerate again

* Chat SDK uses Communication identifiers (#656)

* Add custom models

* More models

WIP

* Update convenience layer to use custom models

WIP

* Convert paged collections, update usage

* Remove todo

* Update tests + recordings

* Clean up duplicated code

* Add comment

* Fix docs

* Update README

* Fix comment

* Remove Codable not needed on identifiers

* Add test for HTML message, clean up tests (#661)

* Chat sets repeatability-Request-ID if its not provided (#660)

* Add repeatability-request-id

* Remove header from mock response

* Fix typo (#664)

* Fix conflicts

Keep preview3 generated

Add deployment target

Add null check, delete unused files

Fix merge on build settings, revert package.swift

Revert change

Keep upgraded build settings

Set missing deployment target failing archive

* Update naming in comments for token credential (#684)

* Build setting for running Chat tests (#685)

* Revert deployment target to see if tests picked up on CI

* Remove warning on pod install

* WIP editing build settings

* Add chat tests to sdk scheme

* typo

* Fix duplicate unit test

* Remove swagger for dev purposes

* gitignore files

* Add back setting for pod install warning

* Remove preview2 generated file

* Cannot reference ohttpstubs removeall

* Split unit and integration tests

* Remove signalling test app

* Remove signalling files

* Update changelog

* Update changelog

* Update changelog

* Add back file, fix changelog

Co-authored-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com>
Co-authored-by: Brandon Siegel <brsiegel@microsoft.com>
Co-authored-by: Jixing (Leo) Li <lijixing3377@gmail.com>
Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>
Co-authored-by: glorialimicrosoft <67171398+glorialimicrosoft@users.noreply.github.com>
2021-02-08 13:04:24 -08:00
Travis Prescott 668e83980b
Add AzureStorageBlobDemo and Container commands. (#603)
* Storage Blob test app.

* Blob get/set metadata commands.

* Remove unused file after bad rebase.

* Code review feedback.

* Code review feedback.

* Comment out blob metadata get/set.

* Update schemes based on code review feedback.

* Fix git tokens in source.

* Rebase and comment out flat API calls in favor or hierarchical ones.

* Update SDKDemo for hierarchical client.
2021-01-28 07:19:47 -08:00
Brandon Siegel 895b223baa
Build upgrade (#653)
* Update / standardize project configurations, enable missing warnings in the Chat project, make sure all projects are being built under their correct schemes

* Apply SwiftLint autofixes

* Update build tools versions

* Update MSAL dependency in Podfile

* Implement significant improvements to build process
- Build libs first, create & publish archives and xcframeworks
- Build examples & smoke test in their own jobs
- Build smoke tests with both static frameworks & frameworks (static libs doesn't work because Calling is pre-built as a framework)
2021-01-26 17:41:03 -08:00
bsiegel 5a35b045f4
Create AzureIdentity project (#328)
* Remove ObjC leftovers

* Add AzureIdentity

* Move MSAL code to AzureIdentity

* Fix issues preventing swiftpm build

* Conditionally import MSAL code in AzureIdentity

* Use Date type in AccessToken
2020-06-11 12:25:48 -07:00
Brandon Siegel 2a47530e2a Add test targets to Podfile
Could not run tests because of this, they were missing their pod
dependencies.
2020-04-16 16:45:26 -07:00
Brandon Siegel 556532467e Update pod & swiftpm files 2020-04-09 11:55:15 -07:00
Travis Prescott e5696a1381
Upload page demo (#238)
* Image upload tab.

* Re-additions to public API.

* Remove debugging and unused code.

* Code review feedback and fix-ups.

* Code review feedback.

* Fix issues with memoization. Convert Download/UploadBlobOptions to structs for synthesized Equatable conformance.

* Add TODO for URLSessionTransferManager.
2020-04-07 16:13:35 -07:00
Travis Prescott 1d18ed20cf
Transfer Manager - Blob Download (#228)
* Transfer manager functionality and demo app.

* Fix for Core Data concurrency bug.

* Code review comments.

* Code review feedback.
2020-03-16 11:26:20 -07:00
Travis Prescott 719257e224 Add unit tests. 2020-01-10 08:13:12 -08:00
Travis Prescott 2decd729a7 Restructure repo to fit standard Azure SDK model. 2019-12-30 13:44:10 -08:00
Travis Prescott bd6ad3b256 Generalize Storage MSAL auth and put into AzureCore. 2019-12-19 12:00:38 -08:00
Travis Prescott 66cca3f4d1 This is a combination of 3 commits.
MSAL authentication
2019-12-19 12:00:37 -08:00