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

33 Коммитов

Автор SHA1 Сообщение Дата
Yulin Li 0653121e46
Let the windows UWP build work in unpackaged app (#985)
Co-authored-by: Yulin Li <Yulin.Li@microsoft.com>
2022-02-23 10:47:20 +08:00
Reiley Yang 3fcb47f28c
standardize the copyright info (#925) 2021-08-31 15:19:56 -07:00
Matt Koscumb 614b72e887 Replace usage of Version.hpp with ctmacros.hpp. 2021-02-01 15:26:49 -08:00
Matt Koscumb 59350b489d Remove StringUtils.hpp from Utils.hpp 2021-01-28 10:02:11 -08:00
Matt Koscumb 7eb0b85ade Move String methods (toString, compare, and toUpper/Lower) to StringUtils 2021-01-22 11:35:10 -08:00
Max Golovanov 2960cac1c3 License cleanup + license clean-up scripts:
- change LICENSE file as per agreement with CELA: all code has not been previously released and is now licensed as Apache License 2.0
- move couple 3rd party code units to third_party
- scripts to search and replace
- add SPDX copyright to all compilation units
2020-10-07 00:51:29 -07:00
Max Golovanov ee2dd70363 OSS clean-up:
- rename ARIA SDK to MAT / 1DS
- add MIT license to public headers
2020-08-13 22:30:45 -07:00
David Brown (XBOX) e82b2bd050 Move string conversion methods out of utils.hpp/cpp 2020-01-28 15:58:16 -08:00
Martin Harriman eabab405f3 Android http client 2019-12-17 13:12:58 -08:00
Vitalii Herasimov 4119569649 Fix forspectre and binskim (#72) 2019-08-31 06:16:30 -07:00
Trevor Lacey 862c4284e7 Override IHttpClient via C API (#49)
* Override IHttpClient via C API

* Remove weird white space

* Fix more whitespace

* Backwards compat evt_open_with_params

* Address CR feedback

* CR feedback

* Fix null check
2019-08-22 12:59:28 -07:00
Max Golovanov 46adc75e00 Don't need std::make_unique workaround for MSVC (and unfortunately vs2017 C++ compiler doesn't properly report the standards supported). So skip applying workaround for MSVC. 2019-04-15 15:57:10 -07:00
Max Golovanov d02255d497 Add workaround for C++11 compiler to support std::make_unique (C++14 feature) in filter regulator.
Remove Demo.cpp tests because we have another dedicated test for event filter.
Event filter in general is currently not enabled in the build and would benefit from some further refactor.
2019-04-15 14:55:42 -07:00
Max Golovanov fda182f66e Addressing code review comments and suggestions 2019-04-01 13:34:51 -07:00
Max Golovanov f55114d690 Revert to old namespace to reduce the amount of diff. Add two scripts to automagically rename the namespace (it'd be run after code review is done). 2019-03-29 13:10:13 -07:00
Max Golovanov 3ef0bd8ca1 GitHub clean-up drafts 2019-03-28 16:40:31 -07:00
Max Golovanov bfc3bc45ec Merged PR 883086: Lightweight SDK for embedding in installer packages
Reducing / disabling non-essential features and setting various build flags to optimize for small size.
x5 times size reduction.

Functional changes to common core SDK:
* Had to rename IStorage to IDataStorage, as IStorage is a macro defined in Windows SDK.
* Had to refactor user analytics feature storage (SDK UUID / install id) to utilize plain text file rather than FIFO ..
FIFO storage is a legacy structure, bloatware, had to be deprecated and removed going forward anyways.
It wasn't even present in v1 Aria SDK, but somehow slipped thru into v3..

Features excluded from lightweight SDK:
* JSON
* ZLIB
* ECS client
* SQLite DB (only ram queue, no offline storage)
* Transmit Profiles

Related work items: #1550785
2019-03-08 05:24:15 +00:00
Max Golovanov f132bd1c36 Merged PR 935910: Kill switch feature, proper offline storage trim logic and tests
Kill-switch feature:
* collector may decide to kill all events associated with a token
* basic functional test(s) for the feature

Offline storage clean-up:
* if device experiences connectivity issues, then its offline storage may grow too big.
* DB may also contain old records from v1 that we are not processing. Delete those.

Related work items: #1403105, #1403106, #1445871, #1608757
2019-02-26 00:00:36 +00:00
Max Golovanov fff773d6b1 Merged PR 817004: Mac OS X clang compiler support
What's done:
* Cleaned-up all clang compiler warnings during library build
* PAL Device ID GUID
* PAL appId

Further TODO:
* BVT for Mac
* Verify all header-only APIs for warnings
* Guidance on custom HTTP provider - Edge team should handle this
* Possibly use our own sqlite3 instead of OS, as very old OS X dyn sqlite3 might be too old

Related work items: #1470816
2018-11-07 06:39:27 +00:00
Matt Koscumb d3f347e3b4 While I can't yet clean up the pointers on std types in EventProperties due to the type being exported from the DLL (yet, couple solutions come to mind) I've at least cleaned up a few bits of code that were leaking memory or unnecessarially doing the same work twice. 2018-10-23 15:53:06 -07:00
Max Golovanov 46661093d8 Aria SKU for ARM64 Desktop 2018-09-20 12:59:43 -07:00
Max Golovanov eb5ab6900e add C++11 milliseconds uptime routine 2018-08-31 18:06:47 -07:00
Max Golovanov 47b0381702 - proper handling of offline storage path passed down via configuration
- implementation of Flush method - to move records from in-ram sqlite to on-disk sqlite db
- ability to forward debug callbacks to outside shim (needed for templated LogManager impl). No API changes, but internal impl!
- DebugSource.cpp : forward events to outside shim located at LogManager impl templated surface
- RuntimeConfig_Default.hpp : no longer need to set the path here, as it's done in LogManagerImpl
- ESCConfigCache.cpp : format changes and moved GetAppLocalTempDirectory to MAT as common cross-plat routine
- HttpResponseDecoder.cpp : temporary debug-only change to catch references to deallocated ptrs and assert on that
- IOfflineStorage.hpp : add Flush method (move ram to disk) and a callback for records saved to disk
- DebugEvents.hpp : proxy-forward callbacks to another "cascaded" listener
- ILogManager.hpp : AttachEventSource / DetachEventSource - attach "cascaded" proxy source (as there could be many templ ref to one instance)
- LogManagerBase.hpp : save primary tenant token back to configuration and attach "local" Debug event source proxy on a template
- NullObjects.hpp : add stubs to NULL-object pattern implementation
- Variant.hpp / VariantType.hpp : add draft implementation of thread-safe variants and fix vs201x memory corruption in destructor
- ISqlite3Proxy.hpp : expose v3 close method
- OfflineStorage_SQLite.cpp : move lock to outside of m_db check (race condition fix)
- OfflineStorageHandler.cpp : implementation of async flush copy from ram to disk + callback for records saved to disk
- Move local temp dir detection from UTC helpers to common MAT code
- Statistics.cpp : fix stats record decoration
- TelemetrySystem.cpp : reenable stats and move storage stop after telemetry system stop (otherwise there is a race condition)
- TPM : proper atomic check for uploads scheduled
- Added couple common utils from v1 codebase
2018-05-14 10:32:05 -07:00
Max Golovanov e8ca6130ef Downgrade several FIXMEs to TODO and fix the rest. Plus fix for the common properties population. 2018-04-09 15:42:59 -07:00
Max Golovanov da431306b1 Fixing Win 10 native, Win 10 C# and .NET SDKs; plus Functional Tests. 2018-04-05 13:58:33 -07:00
Max Golovanov 70e63499a9 Enable the control plane: filtering functionality 2018-04-02 13:45:23 -07:00
Max Golovanov d46f98350c Drafts for v3 2018-03-30 17:05:05 -07:00
sanjayga 5db2014f72 moved Linux sdk code to one sdk branch 2018-02-06 19:33:43 -08:00
sanjayga a96d0e0a57 Added Device Class,
UTC part A added back
Fixed unit and functional tests
2017-11-08 09:50:44 -08:00
sanjayga a59d3fb044 Changed Priority to Latency and Persistence 2017-11-02 14:56:09 -07:00
sanjayga 6147435f85 separated eventproperty .h and cpp
moved guid to string to utils
2017-08-16 10:33:18 -07:00
sanjayga 58f75c0b94 moved API header to public folder 2017-06-02 11:42:59 -07:00
sanjayga 3f8703245d Updated Includes to be flat 2017-06-01 20:37:13 -07:00