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

63 Коммитов

Автор 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
Sid Dahiya 3c77727853
Add StampEventIKeyForConcerns option in Java layer (#1107)
* Add StampEventIKeyForConcerns option in Java layer

* Update modules version and bump version

* Bump version to speed up release.
2023-03-06 13:37:48 -08: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
Sid Dahiya c18ed6c034
Update modules commit and related wrappers (#958) 2021-11-17 10:03:09 -08: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
Brendan Weibel 4fd545042e Fix one last missing instance of setting null to clear 2021-03-04 15:05:58 -08:00
Sid Dahiya fd566799e0 Switch CommonDataContext to not be unique_ptr. 2021-03-01 14:11:32 -08:00
Sid Dahiya d3b7a1a76d Update PrivacyGuard constructor. 2021-02-26 18:36:11 -08:00
Sid Dahiya 5d19e2cd02 Fixes based on module changes. 2021-02-26 17:55:05 -08:00
Sid Dahiya f2970995a2 Fix Android build. 2021-02-26 17:12:27 -08:00
Sid Dahiya f268220e3d Remove `GenerateCommonDataContextObject from JniConvertors as it is more of a PrivacyGuard_jni method. 2021-02-25 14:22:04 -08:00
Sid Dahiya 51ba0fd1b1 Add missing header for CommonDataContext. 2021-02-24 13:44:18 -08:00
Sid Dahiya 267c0263a6 Fix JNI wrapper 2021-02-24 13:21:44 -08:00
Matt Koscumb 614b72e887 Replace usage of Version.hpp with ctmacros.hpp. 2021-02-01 15:26:49 -08:00
Matt Koscumb 409003457d Fix an Android build break. 2021-01-28 10:24:07 -08:00
Martin Harriman f936d05eab Wrap GetAndReserve in try/catch to prevent exceptions from crashing app 2021-01-05 14:16:09 -08:00
saurabhagr12 4101d87b41
Merge branch 'master' into sagrawal/android 2020-12-10 00:59:59 +05:30
Saurabh Agrawal 4416a8b384 C++ sdk treats EventType as optional where as the jni layer for Java is setting it to the empty string leading to incorrect error messages in the debug logs. Fixed this by skipping SetType in jni layer if the value is 2020-12-10 00:51:49 +05:30
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
Sid Dahiya fa3a014fbf Update ConvertJObjectArrayToStdStringVector
Move the generated string instead of copy
Add note that empty strings are dropped.
2020-09-29 12:37:32 -07:00
Sid Dahiya b2730fd263 Address PR Comments. 2020-09-29 12:30:29 -07:00
Sid Dahiya dc22260e66 Use WrapperLogManager instead of LogManager 2020-09-29 11:37:08 -07:00
Sid Dahiya e72e003d18 Address PR comments:
Add return values to initializePrivacyGuard

Add return value to appendCommonDataContext

Throw if appendCommonDataContext is called with null CommonDataContext

Fix bug where spPrivacyGuard wasn't registered with LogManager
2020-09-29 10:39:17 -07:00
Sid Dahiya 4819035317 Resolve comments from PR 2020-09-29 08:07:54 -07:00
Sid Dahiya d691da732b Add initial Java wrappers with JNI implementations. 2020-09-28 14:33:24 -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
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
saurabhagr12 59f0370f49 Merge branch 'master' into sagrawal/AndroidJava 2020-07-10 01:22:40 +05:30
Saurabh Agrawal 755f6e5420 Updating the test app http config to allow cleartext for DDV connection, minor changes in ddv jni methods 2020-07-10 01:05:10 +05:30
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
Saurabh Agrawal 33f8deae2f Merge branch 'master' into sagrawal/AndroidJava 2020-07-07 19:50:13 +05:30
Saurabh Agrawal aa7c18b13f Fix for #493: Java PAL layer need additional DDV APIs 2020-07-07 19:22:43 +05:30
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 2e37918567 Fix build break in Android
The CI loop doesn't have access to lib/modules, so a recent change broke
Android builds for anyone who does have lib/modules checked out.
2020-06-26 14:39:10 -07:00
Sid Dahiya 3755fe4322 Fix bad merge conflict in `LogManagerDDVController_jni.cpp` 2020-06-25 11:21:13 -07:00
larvacea b2017bbd65 Merge branch 'master' into maharrim/exceptions 2020-06-24 17:02:57 -07:00
larvacea 17beaff7fb Convert throw to MATSDK_THROW 2020-06-24 13:18:21 -07:00
larvacea 18380ba784 Merge branch 'master' into maharrim/specialjni 2020-06-24 08:52:00 -07:00
Sid Dahiya 83e4fc4330 Revert Java changes
GetCurrentEndpoint and correct implementation of IsViewerEnabled reverted as they're failing on Android.
2020-06-23 15:30:24 -07:00