* 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>
* 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
* 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
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>
* 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
* 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>
* 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
* 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>
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>
* 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>
* 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
* 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>