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

39 Коммитов

Автор SHA1 Сообщение Дата
jiminwen-msft 7672c8060f
Jimin/realtime config (#1687)
* Get realtime config to init Trouter
2024-10-23 09:02:03 -07:00
jiminwen-msft bccb27a605
Jimin/dev5 key (#1123)
* Code back up

* Snap for whats working

* Supporting key-store

* Adding comments

* Updating TTL and remove old imples

* Adding comments

* Removing static values

* Reformat

* Reformat2

* Resolving comments

* Move exception handler to worker

* Fixing check style

* Singleton thread safe

* Customized key store

* Removing logs

* Change TTL

* backup

* revise

* revise

* Fixing typo

* Resolving comments

* Adding license

* NIT

* NIT

* NIT

* NIT

* NIT

* NIT

* find bugs

* Reuse key store API

* Finished testing

* Remove comments

* Remove import

* Fixing duration

* Adding error message

* Remove bos.close()

* Remove checking and typo

* Android key-store

* demos

* Android key-store

* Updating comments

* Removing imports

* Formatting

* Formatting format

* handle exceptions

* Changed casing for a few crypto variables.

* Changed instances of encryptText to ciphertext in KeyMetadataStore.

* Fixed casing for the variable "ciphertext".

* Renamed encryptText() and decryptData() to encrypt() and decrypt() respectively.

* Fixed compilation error.

Co-authored-by: vcolin7 <vicolina@microsoft.com>
2022-08-11 13:43:31 -07:00
vcolin7 b957a612e5
Prepare Azure Core beta release for October 2021 (#904)
* Updated READMEs.

* Updated dependency versions.

* Updated more dependencies and removed unused ones.

* Reverted version change to Google's Gradle Plugin. Added a few comments on which dependencies cannot be updated.

* Updated Checkstyle XML files to look more like what's used in the Java repository.

* Updated CHANGELOGs.
2021-10-08 14:46:43 -07:00
vcolin7 f0b70bb76f
Ensure long logging tags work with Android API levels <= 25. (#898)
* Updated Azure Core Logging's dependency on SLF4J from `slf4j-api` to `slf4j-android`, which "is basically a (i) repackaging of the SLF4J API part, together with (ii) a very lightweight binding implementation that simply forwards all SLF4J log requests to the logger provided on the Google Android platform." --excerpt taken from http://www.slf4j.org/android/

* Added logic for shortening long tags in Android API levels <= 25 to DefaultLogger.

* Fixed CheckStyle errors.

* Fixed SpotBugs error.

* Reverted dependency change from `slf4j-api` to `slf4j-android`.

* Added tests for shortening long tags.

* Updated DefaultLogger to include the latest version of the code SLF4J uses to shorten tags.

* Added tests.

* Updated CHANGELOG.

* Moved the method used to validate tag length to a LogUtils class. Added the appropriate license to said class. Updated tests.

* Updated CHANGELOG.

* Added CheckStyle header exception for LogUtils.
2021-10-06 14:04:26 -07:00
CHILIU-MSFT feb2ec3442
Added support FCM push notifications (#841)
* E2E scenario works for push notification.

* Add listener sample for all kind of push notifications

* E2E scenario works for push notification.

* fix const values

* refactoring to only require auth credential in client builder

* Fix spotbugs

* Add empty google-services.json file for push notification in sample app

* Fix build issue

* Revert env change

* update changelog for push notification

* update changelog for push notification

* fix readme link

* PR feedback

* PR feedback

* fix PR comments

* fix PR comment

* fix CHANGELOG.md

* fix registrar response handle

* PR comment
2021-09-07 13:19:06 -07:00
Anu Thomas Chandy eaccc43349
Renaming azure.core.util.Context to azure.core.util.RequestContext (#789)
* Renaming core.util.Context to core.util.RequestContext (to avoid conflict/confusion with android.util.Context)

* Added changelog entries for RequestContext rename and paging abstractions
2021-06-03 18:58:37 -07:00
Jianping Chen c9847baa38
[Communication]: Update version of common for GA release (#750)
* Update version of common for GA release

* Fix broken link in contributing.md

Co-authored-by: JP Chen <jiach@microsoft.com>
2021-04-20 13:29:08 -07:00
Jianping Chen a060af8d5a
Regenerate from Java swagger and Readme.md with expected manual changes (#675)
* Regenerate from Java swagger and Readme.md with expected manual changes

* Move AddChatParticipantsResult to public models folder

* Delete local copy of Chat swagger

* Update CreateChatThreadResultConverter; Add ChatError and ChatErrorConverter

* Add AddChatParticipantsResult back to implementation/models

* Suppress indentation style check on Chat generated code

* Add AddChatParticipantsResultConverter

* Fix null pointer error in unit test

* Remove jacksonSerder from builder

* Fix error in unit test by checking HttpResponseException instead of models.CommunicationErrorResponseException

* Remove obsolete generated files

Co-authored-by: JP Chen <jiach@microsoft.com>
Co-authored-by: CHILIU-MSFT <44037195+CHILIU-MSFT@users.noreply.github.com>
2021-03-19 10:32:33 -07:00
Anu Thomas Chandy 38f04ce468
Removing the temporary "handwritten" package given convenience-layer and tests are integrated (#656)
* azure-communication-chat: deleting the temporary 'handwritten' package used for dev wip.

* azure-communication-chat: removing the temporary supressions added for 'handwritten', removing commented dependencies from chat build.gradle
2021-03-14 16:24:39 -07:00
Anu Thomas Chandy 75b206871d azure-cmmunication-chat: Removing the temporary supression NoImplInPublicAPI that was added for development. 2021-03-10 15:08:09 -08:00
Anu Thomas Chandy ae29583196 azure-communication-chat: Getting the first version of Convenience-Layer on the top of Protocol-Layer 2021-03-09 14:12:30 -08:00
Anu Thomas Chandy 7996ce4c36 azure-communication-chat: Refactoring inline Callback instantiation to static inner class. Getting clean build ready. 2021-03-07 16:30:17 -08:00
Anu Thomas Chandy 73645165ec azure-communication-chat: move all convenience code to a package handwritten, this is to ease the migration of autogen code to new android module system 2021-03-04 00:06:26 -08:00
Anu Thomas Chandy 5c245765dd azure-communication-chat: Setting APILevel29 and getting module compiled 2021-03-03 20:04:55 -08:00
Anu Thomas Chandy 1dcd9cff0f azure-communication-common: Addressing checkstyle and spotbug warnings 2021-03-03 16:31:03 -08:00
Anu Thomas Chandy 567e3c0b4b
Removing azure-core-serde contract (#600)
* [Remove serde cntract]: Replacing serde types with jackson types.

* [Remove serde cntract]: Deleting azure-core-serde moodule with serde contracts.

* [Remove serde cntract]: Renaming the module azure-core-serde-jackson to azure-core-jackson
2021-02-24 09:38:50 -08:00
Anu Thomas Chandy 20e48d244b
Making azure-core-http-httpurlconnection baselined to apiLevel-15 and azure-core-http-okhttp to apiLevel-21 (#595)
* Updating azure-core-serde module's build.gradle be to explict about minSdkVersion:15

* azure-core--http-[httpclient]* minApi: baselining azure-core-http-httpurlconnection to Api Level 15 and azure-core-http-okhttp to api Level 21 (21 is enforced by okhttp).
2021-02-22 10:35:40 -08:00
Anu Thomas Chandy 9d121afab1
Making azure-core-http and azure-core-credentials modules baselined to ApiLevel-15 (#594)
* Removing the azure-core-http module's dependency on azure-core-test module (avoiding cyclic dependency).

* Removing the azure-core-rest module's dependency on azure-core-test module (avoiding cyclic dependency).

* Updating azure-core-logging and azure-core module's build.gradle be to explict about minSdkVersion:15.

* azure-core-credentials minApi-15: baselining azure-core-credentails to Api Level 15.

* azure-core-http minApi-15: baselining azure-core-http to Api Level 15.

* build.gradle minor readability improvement for azure-core-test

* The dexsafe is not compactible with android tool-chain java8 'syntax desugaring', disabling it https://github.com/KeepSafe/dexcount-gradle-plugin/issues/222\#issuecomment-604247658
2021-02-22 08:54:59 -08:00
Anu Thomas Chandy 2b9af8fc46
Making azure-core module baselined to ApiLevel-15 (#593)
* Removing Base64 unit-tests, these unit-tests will be converted to instrumentation-tests.

* azure-core minApi-15: Using base64 types from android.util.Base64 instead of java.util.Base64; java.util.Base64 is available only from L26.

* azure-core minApi-15: adding instrumentation-tests for Base64Util and Base64Url, given android.util.Base64 in unit-test execution scope.

* azure-core minApi-15: replacing Objects.requireNonNull, Objects.hashCode, Objects.equals and RuntimeException Ctr with stacktrace param to enable azure-core to work on api-level 15

* In azure-core-rest 'test-scope', adding Base64 type to get the test using base64 to work on non-android host.
2021-02-19 17:01:08 -08:00
Anu Thomas Chandy bd9aeea4b4
Removing java.time, replace it with 310bp. (#591) 2021-02-19 14:19:15 -08:00
Anu Thomas Chandy 846cee8386
Removing no more used modules and sub packages (#565)
* removing async serialize|deserialize methods from customserde

* Removing search module used to validate the core modules splitting

* Removing all core subpackage rooted at com.azure, now that we've core subpackage under com.azure.android

* now that core subpackage removed from com.azure (in favor of com.azure.android.core), remove related supressions from checkstyle and spotbugs
2021-02-09 10:03:32 -08:00
Anu Thomas Chandy 624d126893 Getting record-playback for android (that uses azure-core Android HttpPipeline|HttpClient) 2021-02-08 15:45:51 -08:00
Anu Thomas Chandy cb43246c78 Removing Util type from azure-core-http impl package 2021-02-06 20:11:32 -08:00
Anu Thomas Chandy f47ae50b9e Getting Base64Url|Base64Util|DateTimeRfc1123|UnixTime|Header to azure-core android package, updating references to them from android packages in other modules. Some minor javadoc fixes as well. 2021-02-06 15:39:10 -08:00
Anu Thomas Chandy 94c6a25aa9 Removing micro subpackage from azure-core and move it's subpackages to core package, adjusting references from other modules. 2021-02-06 14:20:32 -08:00
Anu Thomas Chandy 83d3006c2d Introducing android namespace to azure-core-serde-jackson module 2021-02-06 12:34:59 -08:00
Anu Thomas Chandy bcbfcb9ef5 Adding TestsWireMockServer to respond to HTTP client request coming through Rest Proxy. 2021-02-03 13:00:38 -08:00
Anu Thomas Chandy 06ec168b76 Setting up the test artifacts to enable validation of RestProxy from each HttpClient impls and adding validation based on mock http client 2021-02-03 09:02:39 -08:00
Anu Thomas Chandy 0147811914 Adding the mapper to map HttpResponse (from wire) to a Response instance in the rest module. 2021-02-01 11:05:06 -08:00
Anu Thomas Chandy dc1b29b2e6 Adding type util for reflective operations. 2021-02-01 11:05:05 -08:00
Anu Thomas Chandy aa303b8086 Enabling immutable Context for pipeline-run 2021-01-13 14:27:28 -08:00
Anu Thomas Chandy 0e464ff105 Adding Option type to represent tri-state 2021-01-12 08:31:35 -08:00
Anu Thomas Chandy e1bb8ab22d Representing the root and nested dispatchable call as classes 2021-01-11 11:45:22 -08:00
Anu Thomas Chandy 9a40057250 Adding CancellationToken type that allows sending a request to cancel an operation and registering hooks to run on cancel (and introducing android namespace to azure-core-micro module) 2021-01-08 16:18:19 -08:00
Anu Thomas Chandy 1df804518a BufferedHttpResponse: proper caching of response content 2021-01-08 13:51:08 -08:00
Anu Thomas Chandy 8fa36275ce code quality supressions for new http abstractions, okhttp and urlconnection impls 2021-01-07 14:57:01 -08:00
Anu Thomas Chandy 3dea4a9875 enable fully functional spotbug, run it - 'gradle check' 2020-12-01 21:06:25 -08:00
Anu Thomas Chandy 0d416d0d17 enable fully functional checkstyle, run it - 'gradle checkstyle' 2020-12-01 17:41:57 -08:00
Anu Thomas Chandy 155d9e54c4 setting up checkstyle plugin (no useful rules yet) 2020-11-28 23:52:38 -08:00