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

484 Коммитов

Автор SHA1 Сообщение Дата
Matt Koscumb 18166df986 Merged PR 881208: Fix some missing override keywords.
The override specifier serves two purposes:
1. It allows readers to clearly identify that a virtual method is overriding a method in a parent class.
2. It allows the compiler to emit errors when a subclass accidentally adds a method with the same name but different arguments/return types.
2019-01-03 18:46:37 +00:00
Matt Koscumb 08879594b7 Merged PR 873898: Remove extraneous macro adding the _declspec(dllexport) as it results in .exp
Remove extraneous macro adding the _declspec(dllexport) as it results in .exp and export lib generation when linked into a .exe
2019-01-03 18:09:11 +00:00
Matt Koscumb 6aa1cfbd3f Error C2362: initialization of 'value' is skipped by goto Done 2019-01-03 10:03:18 -08:00
Matt Koscumb 575f3a6f9b Standard C++ does not apermit examining dependent base classes when looking for declarations that satisfy the use of member functions. The correct thing to do is to use this-> to enable two-phase name lookup. 2019-01-03 10:00:48 -08:00
Matt Koscumb 2d75b3c8d1 Error C4596. permissive- does not allow referencing a class from within the class declaration. 2019-01-03 09:45:54 -08:00
Matt Koscumb 19dc4b095c Fix some missing override keywords. 2018-12-31 14:13:51 -08:00
Max Golovanov b359eec1cd Build infra: PRSS request template for code signing 2018-12-21 13:19:54 -08:00
Max Golovanov 8e4a9a1198 Update azure-pipelines.yml for Aria.SDK.Cpp 2018-12-20 22:20:17 +00:00
Max Golovanov 802a42f1ef Set up CI with Azure Pipelines 2018-12-20 22:09:10 +00:00
Max Golovanov b2fd18b0f2 Add doxygen to tools 2018-12-20 14:05:34 -08:00
Max Golovanov d889b66080 Fix cpack path for tgz package 2018-12-18 14:57:17 -08:00
Matt Koscumb b1ecbd4d43 Remove extraneous macro adding the _declspec(dllexport) as it results in .exp and export lib generation when linked into a .exe 2018-12-18 13:10:24 -08:00
Max Golovanov 3f8e951457 Merged PR 868560: logger->SetContext("LocalContextVar", "Value") was inadvertently broken by 1DS
logger->SetContext("LocalContextVar", "Value") was inadvertently broken by 1DS global/local context optimizations
The issue is that we were only respecting the global LogManager-level context, ignoring local ILogger-level contexts.
The fix is to process the global context first, then append local context.

Related work items: #1550788
2018-12-14 00:39:51 +00:00
Matt Koscumb 9f601076e6 Merged PR 867769: Fix a few signed/unsigned comparison bugs.
Fix a few signed/unsigned comparison bugs.
2018-12-13 16:27:05 +00:00
Matt Koscumb a01864c0b0 Fix a few C++17 conformance issues, specifically around integer comparison type-mistmatch. 2018-12-12 12:40:07 -08:00
Matt Koscumb 0355a9833a Merged PR 855278: Shouldn't mark classes or methods that don't have public headers as dllexport,
Shouldn't mark classes or methods that don't have public headers as dllexport, because how would partners call them?
2018-12-12 16:48:19 +00:00
Max Golovanov c99f64fe61 Merged PR 865786: Implementation of M365a Commercial Id (Enrolled Tenant Id) field
Implementation of M365a Commercial Id (Enrolled Tenant Id) field:
* new bond schema definition
* reading reg key at SDK initialization on Win32 Desktop only (value is empty on Win 10 UWP and Mac OS X)
* other platforms may manually populate the field value using semantic context API

Verified manually:
* reg key show in Aria event inspector matches the reg key on my machine.
* the value is not populated if reg key is missing.
* semantic context can be used to override the value.

Related work items: #1292874
2018-12-11 19:45:52 +00:00
Max Golovanov 44e098b675 Merged PR 864848: Add thread-safety to Statistics.cpp wrapper around MetaStats.cpp
Issues reported in Office automation. Scenario is unknown, but it appears that the issue is due to no thread safety around MetaStats object. Add thread-safety to Statistics.cpp wrapper around MetaStats.cpp

Related work items: #1541368
2018-12-10 21:18:39 +00:00
Max Golovanov 0fc5e6f921 Merged PR 864657: 1541369 [v3][1DS][StickyNotes][C#] Unable to start app after upgrade from v1 to
1541369 [v3][1DS][StickyNotes][C#] Unable to start app after upgrade from v1 to v3 - WinRT COM exception

* Build script for C# SDK nuget packaging - new DLL name
* Build script for build agent (setup prerequisites for cmake build using choco)

Build scripts only. No code changes. Instructions sent out to the customer how to add the new .DLL to app package manifest to avoid the crash.

Related work items: #1541369
2018-12-10 19:50:28 +00:00
Max Golovanov 5691a68f03 Add UWP C# sample app 2018-12-05 16:11:47 -08:00
Max Golovanov 90ef452db3 Build break: unit tests broke after field renaming that was done to fix the gcc issue 2018-12-05 16:10:42 -08:00
Hindol Adhya 8bb410abe7 Merged PR 859598: MacOSX10.12.sdk Compatibility
Ensure Variant::Type::TYPE_BOOL does not clash with #define TYPE_BOOL in <ConditionalMacros.h> of MacOSX10.12.sdk
2018-12-05 22:00:06 +00:00
Max Golovanov ba6310d885 Fixing build break:
Convert property names to lowercase to avoid confusion between types and field names.
Although msvc and clang do allow this, gcc does not support naming fields same as types.
2018-12-04 12:34:05 -08:00
Matt Koscumb 6ac9b8f3b3 Shouldn't mark classes or methods that don't have public headers as dllexport, because how would partners call them? 2018-11-30 14:45:57 -08:00
David Brown (XBOX) 82b72764d0 Merged PR 851132: Add const qualifier to name and as_string in evt_prop
Add const qualifier to name and as_string in evt_prop, attempt #2 as I learn Git in real time
2018-11-28 18:34:39 +00:00
Max Golovanov 9720bcac08 Merged PR 848621: Remove EOL in Part A fields on Mac
Remove EOL in Part A fields on Mac

Related work items: #1470816, #1521798
2018-11-26 22:53:54 +00:00
Max Golovanov 94828f33f4 Merged PR 843567: Fixing Part A issues on Mac OS X
* Fix sample app build break - C API was not compiled in
* Don't load alternate C API implementation on Mac (LoadLibrary is not a valid call on Mac)
* Modify sample app to show how to use semantic context to populate various Part A fields: app, user, net
* Fix Mac OS X "gaps" - properly report OS name and version
* Optional build tools setup script for Mac OS X (brew install cmake)

Related work items: #1467488, #1470816, #1512476, #1512477, #1512478, #1512479, #1512482
2018-11-20 21:20:31 +00:00
Max Golovanov 6a1f1bfbfb Merged PR 839971: Win 10 UWP SDK sporadic crash in HTTP stack
Win 10 UWP SDK sporadic crash in HTTP stack.

Essentially it's the same fix that was previously done on Win32 Desktop: when we pass the buffer ptr to debug callback, the request has been already released and this may lead to trying to access the heap block possibly re-allocated for something else. The fix is to avoid de-allocation of HTTP req/resp until the handling is done, so when the wrapper is destroyed - the request object is also destroyed.

Related work items: #1510118
2018-11-20 03:08:18 +00:00
Matt Koscumb 025cf96cc4 Merged PR 841408: Rename \lib\pal\ subdirectories to MSDN terms rather than technology codenames
Win32 - > Desktop
WinRT - > Universal
2018-11-19 19:21:27 +00:00
Matt Koscumb 0425c83b24 Merged PR 833662: IStorageRecord::GetRecords should return a std::vector<T>
Rather than return a raw pointer std::vector<StorageRecord>, thus inducing memory managment on the caller and breaking the raw-pointers-are-non-owning rule, IOfflineStorgage::GetRecords should just return the vector. std::vector<T> is cheap to move, and thus can easily be returned from a function on any modern compiler without inducing a massive copy cost.
2018-11-19 17:39:23 +00:00
Matt Koscumb a1b20804bd Merged PR 838170: Fix Unnecessary Heap Allocations in ECSClientCX
* Rename members to be consistent with project style.
* Remove extraneous new/delete
* Instead of a std::vector<ECSClientCallbackProxy*>, use a std::vector<std::unique_ptr<ECSClientCallbackProxy>> to manage lifetimes automatically.
2018-11-19 17:35:03 +00:00
Matt Koscumb e5d61fa5f3 Rename winrt.vcxitems to universal.vcxitems 2018-11-16 10:14:24 -08:00
Matt Koscumb 5a3520243c move \pal\winrt\. to \pal\universal\. and update the build scripts appropriately. 2018-11-16 09:56:45 -08:00
Matt Koscumb 02ea5cb313 Rename win32.vcxitems -> desktop.vcxitems 2018-11-15 14:56:03 -08:00
Matt Koscumb 1a539fa907 Move lib\pal\win32 -> lib\pal\desktop, which is the term for legacy 'win32' API surfaces. 2018-11-15 14:36:29 -08:00
Max Golovanov ea93a2c087 3P customer sample app 2018-11-15 00:53:49 -08:00
Matt Koscumb 1f481ebf83 ECSClient::m_listeners_native should be a vector of unique_ptr, not raw pointers. 2018-11-13 16:15:20 -08:00
Matt Koscumb 4f705f2528 ECSClient::listeners_native should not be a pointer. 2018-11-13 12:44:56 -08:00
Matt Koscumb 777a7219a6 rename ECSClient::requestParams to ECSClient::m_requestParams 2018-11-13 12:38:37 -08:00
Matt Koscumb ed85684333 ECSClient::requestParameters should not be a pointer. 2018-11-13 12:34:46 -08:00
Matt Koscumb 0bd999eeea Fix some whitespace tabs -> spaces. 2018-11-12 10:01:08 -08:00
Matt Koscumb 71ff57b10e Fix one more case of unnecessary unique_ptr<std::vector<StorageRecord>> 2018-11-12 09:57:40 -08:00
Matt Koscumb 741b55c7c0 Rather than return a raw pointer std::vector<StorageRecord>, thus inducing memory managment on the caller and breaking the raw-pointers-are-non-owning rule, IOfflineStorgage::GetRecords should just return the vector. std::vector<T> is cheap to move, and thus can easily be returned from a function on any modern compiler without inducing a massive copy cost. 2018-11-09 16:25:02 -08:00
Matt Koscumb c378be1e8b Merged PR 832087: Always check whether or not a macro is defined before defining it.
Always check whether or not a macro is defined before defining it.
2018-11-09 18:14:28 +00:00
Matt Koscumb b37556f7fe Always check whether or not a macro is defined before defining it. 2018-11-08 15:50:28 -08:00
Matt Koscumb 42d6ff473d Merged PR 830206: Remove an extraneous copy of json.hpp
* Replace the json.hpp in \lib\include\aria with the latest version in the repo.
* Delete the extraneous copy in \lib\decoders.
2018-11-08 17:33:50 +00:00
Max Golovanov b66764d998 Add event sender customer sample that would use local .\lib and .\include SDK for 3P portal downloads page 2018-11-07 14:05:05 -08:00
Max Golovanov db30858b81 Build infra clean-up (no code changes): remove all legacy vs2013 targets from .vcxproj . We don't support vs2013, these were left-overs from copy-paste from v1 source code base. 2018-11-07 14:02:54 -08:00
Matt Koscumb 118477cec7 Revert "update lib\include\aria\json.hpp to the same version as is in the decoder code."
This reverts commit 031eecb044.
2018-11-07 11:45:16 -08:00
Matt Koscumb f2d03de774 Remove the copy of json.hpp in lib\decoder, just use the one in \lib\include\aria 2018-11-07 11:41:08 -08:00