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

24 Коммитов

Автор SHA1 Сообщение Дата
sonalpoddarmsft 5a511c3e1e
setTicketToken exposed to jni and java layer for Android apps to set tokens like AAD (#1131)
* Expose the setTicketToken to jni and java layer for Android apps to set Tokens like AAD with the event

* Fix the fucntion call for jni

* Fixed comments
2023-05-03 15:25:52 -07:00
Leonardo Alves 8f6875c53f
Signals module (#1079)
* add signals

* fix cmakelists

* add reference for unit test file

* add java wrappers

* add functional tests

* update submodule reference

* add conditional reference on vcxproj

* add new line at end of file

* fix description of method

* reorganize methods place

* remove commented include

* fix copyright

* revert mstelemetry changes in sharedprojects

* rename module to signals

* refactor java files to rename signals module

* refactor removing additional lines

* refactor renaming signals module

* fix conditional import to signals module

* add conditional import in signals lib

---------

Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-02-24 13:40:34 -03:00
Martin Harriman 1fd167fa15
Pause and resume-or-terminate (#829)
* Pause management
Add API to ILogManager to support Pause/Resume/Wait

* Android wrapper and tests

* Change expected values for PauseManager

* Documentation (use-after-free)

* Repair git merge damage
2021-09-14 16:14:27 -07:00
Reiley Yang 3fcb47f28c
standardize the copyright info (#925) 2021-08-31 15:19:56 -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
Martin Harriman 7594d9a83f
Java LogManagerImpl (#818)
Add error checking in the getLogger method. Some applications are
seeing Java exceptions (no such field) from the nativeGetLogger method.

Co-authored-by: Martin Harriman <maharrim@microsoft.com>
2021-04-06 16:43:29 -07:00
Martin Harriman f936d05eab Wrap GetAndReserve in try/catch to prevent exceptions from crashing app 2021-01-05 14:16:09 -08:00
larvacea 9e03638ad2 Add getDefaultConfiguration and test it 2020-12-05 13:51:52 -08:00
larvacea 34fecccc81 add level filter, debug event listener, tests 2020-12-03 17:01:34 -08:00
larvacea 07cadd62bb Address code review comments
Also make a few changes to improve unit test reliability and fix unit test bugs.
2020-12-02 13:18:33 -08:00
larvacea fd43029af7 add LogSessionData API 2020-11-30 16:47:18 -08:00
larvacea 1f6875bc23 Do not relocate manager+config pair 2020-11-27 19:42:52 -08:00
larvacea f7b24df875 Conditionally implement DDV 2020-11-24 15:19:26 -08:00
larvacea e5502a63d6 LogManagerProvider with unit test. 2020-11-23 15:18:07 -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
larvacea c41f8c61fa Android EventProperty: piiKind and dataCategory
Set piiKind and dataCategory fields when converting from the Java EventProperty class to C++.
2020-07-16 17:26:34 -07:00
larvacea 672537744c Test dead loggers and Java ILogConfiguration
Test the leak-logger change and do a round-trip test of ILogConfiguration mapping between Java and native code on Android.
2020-07-07 17:58:48 -07:00
larvacea e37b2e6e32 Add a rudimentary round-trip test
Ensure that we can create a log manager with config, and the resulting config looks like a superset of what we asked for.
2020-07-05 19:32:47 -07:00
larvacea a474dfbbaf Implement ILogConfiguration in Java wrappers. 2020-07-02 09:30:29 -07:00
larvacea 9423c466dd Pull request revisions
Reinstate boolean LogManagerBase logic for Apple weak-definition option.

Remove unimplemented java LogManager.getController.

Share WrapperLogManager definition between LogManager_jni and LogManagerDDVController_jni

Ran clang_format on LogManagerBase which made many small whitespace changes.
2020-06-22 11:44:54 -07:00
larvacea a94ec2c9b6 Strong instantiation of a LogManagerBase for JNI
The wrappers were providing a weak definition of the default LogManager instance, but this failed for customers who were Java-only, and did not appear to work even for a unit test that provided a LogManager definition. Since we have Java-only customers, it seems reasonable to supply a solution that supports them.
2020-06-18 10:54:59 -07:00
Saurabh Agrawal 89dd048d09 Resolved pull request review comments 2020-06-07 03:07:49 +05:30
Saurabh Agrawal fa12761aed Java API LogManager completion along with DDV changes 2020-06-06 03:34:07 +05:30
Saurabh Agrawal fce09bebb0 Java 1DS sdk cahnges 2020-06-01 02:20:25 +05:30