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

3256 Коммитов

Автор SHA1 Сообщение Дата
Max Golovanov 6129741748
EUDB compliance recommendations and example (#1191)
* EUDB compliance recommendations and example

* Fix spelling issue

* Addressing code review comments.
2023-08-08 20:36:10 -07:00
Tom Tan c7bb501a15
Convert time from eventPropertiesto ticks (#1165) 2023-08-03 15:29:20 -07:00
angelser b2a54a67dc
Update modules to latest (#1187) 2023-07-17 20:00:08 -07:00
angelser b08f300c4a
Add support for utc new privacy fields (#1184)
* Add support for new UTC Privacy fieds: Privacy product and privacy data category.

* Update reference to modules to allow validation

* Revert "Update reference to modules to allow validation"

This reverts commit 429899176a.
2023-07-12 12:50:57 -07:00
absaroj c838e74db3
Adding sample swift package importing swift wrappers package (#1183)
* renaming folder to have different names for xcode and package sample

* adding sample package files

* adding dependencies for the onedswrapper

* removing tests file

* adding example for calling swift wrapper classes

* correcting readme file

* correcting readme file
2023-06-29 16:13:08 -07:00
absaroj 15e18554a0
Adding example Xcode project to showcase swift wrapper package import (#1178)
* adding example app for swift wrappers

* linking required libs and setting build dependencies to build the project

* adding a readme file with details

* removing box specific files

* remove assets

* applying pr suggestions

* fixing a bug and correcting sample app projectclear

* correcting heading signature
2023-06-28 15:13:51 -07:00
Matthew Koscumb 8a88643eb9
Move the GUID_t specialization for to_string to StringUtils.cpp (#1180) 2023-06-27 08:59:53 -07:00
Matthew Koscumb 8fe8b69de0
Mark PauseGuard::isPaused as const noexcept. (#1174)
Co-authored-by: Tom Tan <lilotom@gmail.com>
2023-06-26 12:23:25 -07:00
Matthew Koscumb 42c41bd614
Replace PAL's to_string with std::to_string. (#1177)
* Replace hand-crafted to_string method with std::to_string.

* Get rid of PAL::to_string.

* Explicitly invoke std::string's c'tor with brace-initialization.
2023-06-26 11:19:18 -07:00
absaroj cc955ac269
Hiding all ObjC types behind Swift wrappers (#1176)
* adding swift wrapper

* moving files to sources

* moving files to proper places

* adding module for header expose and importing it in swift wrapper

* correcting files for build errors and other changes

* adding module for objc

* swift build passing'

* adding readme

* changing the package name to 1dsswiftwrapper

* changing target name

* adding pr suggestions

* adding build.sh changes

* cmake list file changes

* creating static lib

* adding swift wrappers build and linking

* adding more logic for building and producing sample app

* adding code for swiftc invoking

* adding comments

* adding change to create the sample app

* linking and includding modules in swiftc to build the sample exe: being created

* adding comments

* compiling all files frrom sample

* removing extraline

* correcting the output folder of swift build

* correcting build output folder paths

* adding typealias file to stop importing the objcmodule in clients (#1171)

* adding typealias file to stop importing the objcmodule in clients

* giving better names

* adding call to create logger

* adding changes for framework include

* adding fwks

* linking libs and fwks

* adding getter and setters for swift as computed properties

* adding sample app changes

* adding app changes

* adding commondatacontext

* swift build passing

* correcting common context init

* adding get set in event properties list

* adding getter to eventprops

* removing useless methods

* adding getter and setter for eventprops

* adding getter

* fixing type bug

* fixing main app issues

* adding semantic context variable to the logger

* modifying the access level for the objc types in swift to make sure they are not exposed to the lcient

* adding default constructor

* keeping main.swift clean
'

* correcting comment

* adding computed property for objc variable

---------

Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-06-23 15:40:02 -07:00
absaroj 42dae872d6
adding sample app changes for the swift wrappers (#1175) 2023-06-23 14:56:42 -07:00
absaroj ada085eb18
Adding changes for local build script and cmakelist to create exe using swift package (#1166)
* adding swift wrapper

* moving files to sources

* moving files to proper places

* adding module for header expose and importing it in swift wrapper

* correcting files for build errors and other changes

* adding module for objc

* swift build passing'

* adding readme

* changing the package name to 1dsswiftwrapper

* changing target name

* adding pr suggestions

* adding build.sh changes

* cmake list file changes

* creating static lib

* adding swift wrappers build and linking

* adding more logic for building and producing sample app

* adding code for swiftc invoking

* adding comments

* adding change to create the sample app

* linking and includding modules in swiftc to build the sample exe: being created

* adding comments

* compiling all files frrom sample

* removing extraline

* correcting the output folder of swift build

* correcting build output folder paths

* adding typealias file to stop importing the objcmodule in clients (#1171)

* adding typealias file to stop importing the objcmodule in clients

* giving better names

---------

Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-06-21 12:17:44 -07:00
Matthew Koscumb 3c64adcd24
Fix inefficient range-based for loop identified by static analysis. (#1173) 2023-06-20 11:05:43 -07:00
Matthew Koscumb 596ad6d090
Default initialize m_offlineStorage to nullptr, as it's not set by all c'tors. (#1172) 2023-06-20 09:39:06 -07:00
Matthew Koscumb 20f6fb81dd
Fix C4777 warning in Pal.cpp, static_cast the return of ::GetCurrentThreadId to unsigned int (#1163)
Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-06-17 07:38:11 -07:00
absaroj 1205d34206
Adding Swift build for global build scripts and cmake (#1169) 2023-06-14 11:40:07 -07:00
Matthew Koscumb b7d774e3df
Add some const qualifiers identified by static analysis (#1170)
* Add const to locals which are only used in const contexts.

* Add const to member function.

---------

Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
Co-authored-by: Tom Tan <lilotom@gmail.com>
2023-06-13 11:22:14 -07:00
Alex Gavrishev 28a4f9ef7c
Add configuration to HttpClient (#1168)
Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-06-13 12:42:58 +03:00
Lalit Kumar Bhasin f34e3e83ab
Update MacOS runner from 10.15 to 11. (#1153) 2023-06-12 17:13:27 -07:00
Matthew Koscumb 284507eabb
Fix variable shadowing warning in LogManagerBase.hpp (#1167)
Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-06-12 08:48:54 -07:00
absaroj 061386741c
Configuring wrappers as Swift Package (#1160) 2023-06-09 13:37:12 -07:00
Matthew Koscumb 06b63c1b4b
Suppress C5258 in MemoryStorageTests. (#1164) 2023-06-09 11:54:18 -07:00
absaroj 8032b1aef1
adding swift wrapper for DiagnosticDataViewer (#1148)
* adding diagnostic wrapper for swift

* adding suggestions from pr

* making it final

* adding vars instead of methods

* correcting var

* fixing build issues

---------

Co-authored-by: Lalit Kumar Bhasin <labhas@microsoft.com>
2023-05-23 19:31:33 -07:00
absaroj 90020d5148
Adding swift wrapper for logmanager and logger classes over Objc (#1143)
* adding mgr and logger classes

* adding comment

* adding line at end

* adding pr suggestions

* adding pr suggestions

* changing file names

* adding suggestions from the pr comments

* adding suggestions from PR

* adding pr suggestions

* removing self from the instance references

* adding final to the logger class
2023-05-23 19:29:07 -07:00
absaroj 25bc0806f2
adding config class to swift wrappers (#1141)
* adding config class

* adding comment

* correcting the cmake min version

* adding checks for libs being linked in cmake

* correcting comments and args

* changing filename

* removing comment

* correcting the use of optional in swift wrapper

* marking class final

---------
2023-05-19 19:54:59 -07:00
absaroj 63f28337ae
adding privacy and semantic wrappers (#1144)
* adding privacy and semantic wrappers

* adding comment to constructor

* changing file names

* correcting argument optionals

* adding suggestions from pr

* removing self from the instance references
2023-05-19 16:02:49 -07:00
n8ta-msft d56ff1130f
Add missing frameworks (#1142) 2023-05-19 11:13:38 -07:00
n8ta-msft 0d785a1302
Add missing frameworks (#1150) 2023-05-19 10:41:24 -07:00
Alex Gavrishev e54fb7568a
Upgrade android libraries (#1103)
Breaking build change: use Java 11 to build the project

Upgrade  android gradle plugin 4.0.1 -> 7.3.1
Upgrade gradle 6.1.1 -> 7.5
 - Upgrade default NDK for gradle 7.5: 21.1.6352462 -> 23.1.7779620
Upgrade room 2.2.6 -> 2.4.3
Update compileSdkVersion 29 -> 32
2023-05-04 13:15:49 +03:00
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
absaroj 0f06e94318
Add Properties class for Swift wrappers (#1138)
* adding local build script file for swift wrappers

* adding main file to test the swift logger classes

* adding build.sh and cmake file for swift wrappers ONLY build

* adding git ignore file

* correcting xcodebuild args

* removing comments

* adding EventProperties class, wrapper for properties in Swift along with other required files

* adding pr suggestions

* adding min version of cmake required to generate for swift
2023-05-01 22:01:51 -07:00
Jian Guo 2aade0740c
Pass CXX_FLAGS from properties to maesdk module (#1137) 2023-04-25 09:31:12 -07:00
shivpratap1992 916eee253e
Add Docker File for RHEL 9 support. (#1135)
* Add

* Add RHEL 9 support

* Remove unwanted change

* Add RHEL 9 support
2023-04-22 18:55:21 -07:00
Leonardo Alves 4f3adbd82b
define signals module if __has_include is available (#1124)
added config-compact-signals and build.compact-signals.props to be used later in github workflow
2023-04-03 18:48:33 -03:00
Max Golovanov bfc2e63cc9
Update before.targets (#1121)
Prefer v143 toolchain if using vs2022
2023-03-29 22:50:19 -07:00
Lalit Kumar Bhasin 0177277d1d
Add HTTP/2 support to HTTPClient_Curl (#1068) 2023-03-29 18:50:01 -07:00
Lalit Kumar Bhasin 0651d798ca
cleanup code owners (#1119) 2023-03-29 14:47:43 -07:00
Alex Gavrishev c81c08a69a
Android, upgrade room and test deps, cleanup not required (#1118)
* Android, upgrade room and test deps, cleanup not required

* Revert room upgrade due to java 1.8 incompability
2023-03-28 10:54:12 +03:00
Lalit Kumar Bhasin 26eeb44139
Add bound check functions for strncpy and memcpy (#1117) 2023-03-27 18:46:33 -07:00
absaroj a4f9b00785
adding null check after utf8string conversion before using it for locale code (#1116) 2023-03-21 15:33:46 -07:00
shivpratap1992 aaa4b65f27
[OneDS] Integrate Event Tracking Mechanism in OneDS (#1115)
* Add

* Integrate Event Tracking Mechanism in 1DS

* Fix unnecessary file

* Remove file checked in by mistake

* Update description for macro

* Comment Fix
2023-03-20 19:52:45 -07:00
Lalit Kumar Bhasin ba37c8f9ca
fix (#1112) 2023-03-08 23:36:24 -08: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 76a1051f74
update submodule (#1106) 2023-03-01 13:33:52 -03:00
dawidk-msft ea0eb89365
Introduce option to checkpoint database on Flush() (#1104)
The way SQLite is initialized (synchronous=NORMAL config) introduces potential issues with durability of changes/updates in some corner cases.

iOS Outlook logs telemetry in scenarios where some critical validation/check failed and cannot be handled and process self-terminates. In between logging the event and terminating we call Flush() to avoid lost events. If we checkpoint the DB before returning from the Flush() call app can safely assume no events will be lost. This change introduces an option that enables such behavior.

Alternative solution would be to use the default configuration (with synchronous=FULL) which doesn't have that problem but has overhead of filesystem syncing for each transaction which makes it a bad idea from the perf point of view.
2023-02-28 23:24:05 -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
Zach Willson 5e53292bdd
update to bfe07c715b0c9904f8b6a6cbf66bf34707ab25de (#1102)
Co-authored-by: zwillson@microsoft.com <zwillson@microsoft.com>
2023-02-21 15:57:51 -08:00
tomkaragounis 63cc083e37
Windows write to log if no debugger attached (#1098)
* Windows write to log if no debugger attached

* Added a preprocessor directive to turn on disk logging on windows
2023-02-10 12:49:04 -08:00
Alex Gavrishev 236f2da7a6
Android: Allow to provide a different HttpClient implementation (#1067)
* Android: Allow to provide a different HttpClient implementation

* Remove Map of headers
2023-02-09 17:23:56 +02:00
Andrew Faust a0a5fe1775
Fixing URLs for Collector (#1097) 2023-02-07 21:01:10 -08:00