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

3231 Коммитов

Автор SHA1 Сообщение Дата
Max Golovanov cc06776b6a
Fix no-sqlite build for various flavors (#904) 2021-08-10 00:38:45 +05:30
Sahil Ashar 5eb86aac2c
adding guards to ctmacros.hpp (#905)
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
2021-08-06 14:06:13 -05:00
kindbe 9f7c58026e
Update EventPropertiesDecorator to respect the value set by SetTimestamp (#909)
* Update EventPropertiesDecorator to respect the value set by SetTimestamp

* Cache GetTimestamp in a local variable instead of calling it twice
2021-07-30 11:40:41 -07:00
Lalit Kumar Bhasin c8ec461185
temporarily switch off android test on mac (#908) 2021-07-27 22:26:46 +05:30
Sid Dahiya c26dc51726
Generate version header for 3.5.200.1 (#903) 2021-07-19 10:46:38 -07:00
Sid Dahiya f43b6bde02
Add Reset Privacy Guard API (#900)
* Add Reset Privacy Guard API and make reinitialization of Privacy Guard no-op.

* Add example in main.mm

Co-authored-by: Sid Dahiya <sidahiy@microsoft.com>
2021-07-14 14:28:45 -07:00
Sid Dahiya 6224f89113
Update Version to v3.5.189.1 (#899) 2021-07-08 19:56:48 -07:00
Sid Dahiya 83b0b52eef
Obj-C Wrapper Updates (#898)
* Fix compile breaks in main.mm

* Add missing includes and sources.

* Replace copy property with assign for complex objects.

* add missing reference to SystemConfiguration

* Add SetType method to EventProperties.

* Remove assign for default types.

* Revert dot-notation assignments.

* Fix spacing.

* Revert cmakelists changes.

* Fix main.mm PrivacyGuard updates.

* Update CMakeLists.txt

* Update ODWEventProperties.h

Co-authored-by: Sid Dahiya <sidahiy@microsoft.com>
2021-07-08 18:43:20 -07:00
Max Golovanov 294d357c44
Add CI for dev branch (#893) 2021-07-02 20:48:38 -07:00
Max Golovanov b7feafc386
Create dev-branch-process.md (#892)
Add development branch process document
2021-06-29 16:48:59 -07:00
Mark Schofield 022ef6b507
'win32-lib.vcxproj' shouldn't define MATSDK_SHARED_LIB (#889) 2021-06-29 12:37:59 -07:00
eshany 7dd687c712
Adjust CMakeLists.txt to build for Windows with MSVC (#887)
* Adjust CMakeLists.txt to build for Windows with MSVC

* add /wx per CR comment
2021-06-14 23:38:11 +03:00
Sid Dahiya 18fb1a1cf1
Update Version.hpp to 3.5.148 (#886) 2021-05-28 15:22:16 -07:00
Max Golovanov b825b7cb06
Update private submodule to latest (#885) 2021-05-28 14:01:08 -07:00
Max Golovanov 10ec7214c0
win32-mini-lib project was missing `NOMINMAX` macro definition (#884)
* Move to PlatformToolset variable

* Workaround for MSBuild issue in vs2019 16.10

* Apologies for Windows line endings, appears like original file had Unix line-endings

* Found one more spot where we are missing NOMINMAX
2021-05-28 12:38:55 -07:00
Sid Dahiya 9391655857
Add Custom Prefix configuration to Java and ObjC (#879)
* Add CFG_STR_COMPAT_PREFIX to Java wrappers.

* Add ODWCFG_BOOL_COMPAT_DOTS to ObjC wrappers

Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-28 12:07:28 -07:00
Max Golovanov 7ed4c502cf
Update Status.java (#877)
Since Java layer is unique to Android, let's use Linux / Unix / Android definition of the constant with value of 114
2021-05-28 10:42:03 -07:00
Max Golovanov a0aae11829
Project stopped building with MSBuild 16.10.0 (#883)
* Move to PlatformToolset variable

* Workaround for MSBuild issue in vs2019 16.10

* Apologies for Windows line endings, appears like original file had Unix line-endings
2021-05-28 09:10:18 -07:00
Mark Schofield 15b20229ac
InformatonProviderImpl::UnRegisterInformationChangedCallback doesn't unregister the first callback (#881)
* Add initial 'InformationProviderImpl' tests

* InformationProviderImpl doesn't remove the first callback added
2021-05-27 19:55:34 -07:00
Max Golovanov 715f6e2dba
Move to PlatformToolset variable (#882) 2021-05-27 16:41:16 -07:00
Max Golovanov d2dd0e378a
Add configuration example that includes A/B EXP feature (#875) 2021-05-24 12:15:34 -07:00
Max Golovanov 378e9d376c
Update CODEOWNERS (#876)
Let's give the magic powers to Sid. He is a long-time "old-timer" - surprising that he's not on this list here.

Co-authored-by: Sid Dahiya <53239974+sid-dahiya@users.noreply.github.com>
2021-05-24 10:17:37 -07:00
Max Golovanov b2df02ac66
Remove unused mutex that triggers compiler warning (and error) on latest clang (#878) 2021-05-20 21:29:14 -07:00
Max Golovanov 477292da8f
Allow to specify any custom prefix with SetType API (#874)
* Fix Visual Studio 2019 build issues

* Allow to specify any record type prefix instead of 'custom.'

* - Make Logger init a bit safer in case if map does not contain values.
- Improve VariantType.hpp handling of static_cast<std::string>(v)
- Clean-up the test to actually obtain a ref to config, not value of config

* Fix string ref issue with gcc

* Fix string reference in Logger

* Cosmetic clean-up
2021-05-20 15:11:54 -07:00
Max Golovanov e77444c648
Fix Visual Studio 2019 build issues in samples (#873)
* Fix Visual Studio 2019 build issues

* Update SampleCppUWP.vcxproj

Remove explicit WindowsTargetPlatformVersion - let it be auto-detected.

Co-authored-by: Sid Dahiya <53239974+sid-dahiya@users.noreply.github.com>
2021-05-20 12:40:05 -07:00
anaaru 6d699e6094
Updating mstelemetry portfile for windows (#810)
Got clienttelemetry.lib to build with MSVC v142 platform toolset.

Co-authored-by: Anand Arumugam <anaaru@microsoft.com>
Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-19 19:30:54 -07:00
Matthew Koscumb 795e0f1dd3
Set the NOMINMAX Macro in the Build (#857)
* Set the NOMINMAX macro for msbuild targets

* Set the NOMINMAX macro for CMake based builds.

* Get rid of #ifdefs and #undefs for min and max

* Use <PreprocessorDefinitions> to add the NOMINMAX macro, rather than <AdditionalOptions>

* Missed one <AdditionalOptions> blob.

Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-19 15:02:18 -07:00
Sahil Ashar 70a16574de
Illegal Character Causing Build Errors in MSVC (#872) 2021-05-18 16:34:07 -05:00
Sid Dahiya f08443ee69
Modules commit update. (#869)
* Modules commit update.

* Disable test failing on Mac

Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-13 14:21:24 -07:00
sreejabanerjee 3d50d29956
Adding read me file for Apple podspec (#826)
* adding read me file for Apple podspec

* addressed feedback

* addressed feedback

Co-authored-by: sreejabanerjee <sreejabanerjee@gmail.com>
Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-13 14:20:05 -07:00
dipatid 1eaca26f59
set canUseSDk flag to false before pause transmission (#868) 2021-05-13 12:39:32 -07:00
jevery23 b4acb91123
Add mat/config.h include to PayloadDecoder.cpp as it is causing undesired behavior in MS Edge. (#867)
* Add mat/config.h include.

* Remove change to modules file.

* Move include to first in order.
2021-05-12 21:15:04 -07:00
Sid Dahiya f14f9ba603
Module, Tests, and VS Solution files updates (#865)
* Add DefaultDataViewerFuncTests.

* VS auto-updated files

VS is continuously generates these files, checking them in as well.

* Revert "VS auto-updated files"

This reverts commit f3662f6507.

* Cleaner fix for Clienttelemetry.vcxitems.filters

* Module commit update
2021-05-12 16:49:13 -07:00
Sid Dahiya 75a55321e9
Rev version to 3.5.131.1 (#864) 2021-05-12 07:20:01 -07:00
Sid Dahiya 2b9c151c1b
Add Multiple LogManager support for Privacy Guard (#850)
* Add PrivacyGuardHelper

The class manages the PrivacyGuard shared_ptr.shared_ptr. This is needed to allow for logmanger-specific integration.

* Add checks for module before including PG.

* Update modules commit to module-master

* Fix build breaks and address comments.

* Correctly use the shared_ptr

* Fix missing methods for ILogManager

- Added tests
- Renamed PrivacyGuardState to PrivacyGuardHelper.

* Remove `/*static*/` where it's not used.

* Simplify the PG registration for LogManager

* Revert "Remove `/*static*/` where it's not used."

This reverts commit 3cf8f12242.

* Revert "Add PrivacyGuardState"

This reverts commit 42996be631.

# Conflicts:
#	lib/android_build/maesdk/src/main/java/com/microsoft/applications/events/LogManagerProvider.java
#	lib/jni/LogManager_jni.cpp
#	lib/jni/PrivacyGuard_jni.cpp

* Revert more changes.

* Cleanup LogManager and tests

* Minor rename of methods.

* Improve the test for PG on Multiple LogManager

* Minor refactoring.

* Add Java implementation for PG InitConfig

* Fix Mac build break for Android

Add support for multi-user scenarios
Point modules to newer commit with PG Module changes.

* Update modules and JNI.

* Try fix build break.

* Disable Android test for PG

Remove all the #ifs I added to make the test work.

* Fix PrivacyGuard_JNI compilation

* Remove deprecated CDC fields from Java.

* Update Obj-C Wrapper.

* Add ObjC InitConfig files.

* ObjC Wrapper updates.

* Update modules commit.

* Modules repo commit update.

* Pair programming and Xcode FTW

* Java Updates

* Address ObjC comments.

* Update main.mm to initialize the NSMutableArrays before using them.

* fix typo

* Update PG test

* Update InitConfig to use a C'tor for required values.

* Fix a typo on ObjC Wrapper

* Update Modules commit point to master tip.

Co-authored-by: David Brown <dabrow@microsoft.com>
2021-05-11 17:33:25 -07:00
Jason Bray a9ac12166c
Re-enable SQLite tests and fix init/shutdown for multiple log managers (#792)
Previously with multiple log managers, all log managers needed skipSqliteInitAndShutdown, and SQLite needed to be initialized independently. Otherwise, even with careful sequencing of creating and shutting down log managers, operations like `recreate` could call shutdown, improperly tearing down SQLite while other log managers are active.

This ensures that `sqlite3_shutdown` isn't called if there are any other SDK instances of SQLite in the same memory space. I don't expect this to cause any issues, because shutting down SQLite is generally unnecessary. Added a related test, and re-enabled all the other tests 🙂

This change also fixes an issue where `MockIRuntimeConfig` could persist some state between tests.

Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
Co-authored-by: jevery23 <joevery@microsoft.com>
2021-05-07 14:17:23 -07:00
Max Golovanov 564c3cc4d0
Ensure headers are included once (#843) 2021-05-07 00:02:21 -07:00
dipatid a7638b5838
updated version to 3.5.127.1 (#861)
Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-06 23:33:32 -07:00
Max Golovanov e1ffdd8dc2
Update cpp-start-windows.md (#860)
* Update cpp-start-windows.md

Remove BETA and clarify some 101 instructions.

* Update cpp-start-windows.md

Add more steps

* Update cpp-start-windows.md

* Update docs/cpp-start-windows.md

Co-authored-by: Reiley Yang <reyang@microsoft.com>

* Update docs/cpp-start-windows.md

Co-authored-by: Reiley Yang <reyang@microsoft.com>

* Update docs/cpp-start-windows.md

Co-authored-by: Reiley Yang <reyang@microsoft.com>

* Update docs/cpp-start-windows.md

Co-authored-by: Reiley Yang <reyang@microsoft.com>

Co-authored-by: Reiley Yang <reyang@microsoft.com>
2021-05-06 23:20:02 -07:00
Hiroshi Nagata 6532612f27
ID in /etc/os-release on openSUSE contains quotes (#859)
* ID in /etc/os-release on openSUSE contains quotes

* Patch the contents of cache and avoid file re-read

* Check for npos
2021-05-06 17:21:41 -07:00
dipatid ed6667bcc6
[iOS Wrapper] Added applicationWillTerminate notification Handler in ODWLogger.mm (#847)
* Added applicationWillTerminate notification observer

* Added appWillTerminte notification handler to not allow use of SDK after the notification fires

* Minor corrections

* used compiler flags for iOS

* Added [ODWLogManager applicationWillTerminate] class method instead of listening to notification in SDK

* Addded pause transmission and flushAndTearDown calls in appWillTerminate method.

* correctin in api call

Co-authored-by: Max Golovanov <maxgolov@microsoft.com>
2021-05-06 09:19:51 -07:00
Matthew Koscumb 670b8cdb05
The win32-dll project doesn't need to rebuild all the .cpp files in ClientTelemetry.vcxitems (et al), rather it should consume what's produced by win32-lib. (#852) 2021-05-05 14:07:42 -07:00
Matthew Koscumb eb779d0880
Consolidate MSBuild Scripts (#851)
* Consolidate msbuild and test logic into separate batch files, so helper scripts don't need to duplicate too much.

* Use tools\vcvars.cmd, rather than directly linking against the VS2017 cmd.

* Add the ability to specifiy custom properties to RunMsBuild.bat

* Move build-all.bat to use RunMsBuild.bat, remove references to non-existant vcvars-ext.bat
2021-05-05 12:07:08 -07:00
jevery23 59889aa4cc
Fix error: ctmacros.hpp file not found with <angled> include (#855)
* Fix error: ctmacros.hpp file not found with <angled> include; use quotes instead

* Update template file too.

Co-authored-by: Hiroshi Nagata <hirosn@microsoft.com>
2021-05-04 13:48:42 -07:00
jevery23 8b8b7b7238
Workaround for undefined RRF_SUBKEY_WOW6464KEY regkey (#853)
Co-authored-by: Jason Bray <jasbray@microsoft.com>
2021-05-04 10:13:40 -07:00
jevery23 cc2dca9f91
Add support for custom r: device IDs (#854)
* Workaround for undefined RRF_SUBKEY_WOW6464KEY regkey

* Add support for custom r: device IDs

* Revert "Workaround for undefined RRF_SUBKEY_WOW6464KEY regkey"

This reverts commit edad4f3366.

Co-authored-by: Jason Bray <jasbray@microsoft.com>
2021-05-04 09:07:24 -07:00
Sid Dahiya b6c48c170e
Update version to v3.5.117 (#846) 2021-04-27 16:03:59 -07:00
Sid Dahiya 454d1246cf
Update Modules commit (#844)
* Update Modules commit

Also fix Macro redefinition that is breaking gcc.
2021-04-27 15:01:26 -07:00
Max Golovanov ba73efd441
Rename build-windows-vs2017.yaml to build-windows-vs2017.yaml.off (#842)
Temporarily disable Visual Studio 2017 "full" build loop.
2021-04-26 13:36:06 -07:00
Max Golovanov 23e6b0b53d
Fix for no-offline storage build (#841) 2021-04-26 10:35:11 -07:00