mapp-intelligence-reactnative-plugin 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/android/build.gradle +19 -8
  2. package/android/gradle.properties +2 -2
  3. package/android/settings.gradle +24 -0
  4. package/android/specs/MappinteligencePluginSpec.js +8 -0
  5. package/android/src/main/AndroidManifest.xml +3 -1
  6. package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginModule.kt +291 -262
  7. package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginPackage.kt +18 -7
  8. package/android/src/main/java/com/mappinteligenceplugin/MappintelligencePluginSpec.kt +59 -0
  9. package/ios/Frameworks/MappIntelligenceiOS.xcframework/Info.plist +48 -0
  10. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIActionEvent.h +33 -0
  11. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MICampaignParameters.h +32 -0
  12. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIDefaultTracker.h +49 -0
  13. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIEcommerceParameters.h +52 -0
  14. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIEventParameters.h +23 -0
  15. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormField.h +28 -0
  16. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormParameters.h +48 -0
  17. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormSubmitEvent.h +22 -0
  18. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIMediaEvent.h +30 -0
  19. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIMediaParameters.h +31 -0
  20. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIPageParameters.h +27 -0
  21. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIPageViewEvent.h +34 -0
  22. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIParamType.h +28 -0
  23. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIParams.h +28 -0
  24. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIProduct.h +28 -0
  25. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIProperties.h +49 -0
  26. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MISessionParameters.h +20 -0
  27. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MITrackerRequest.h +39 -0
  28. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MITrackingEvent.h +23 -0
  29. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIUsageStatistics.h +32 -0
  30. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIUserCategories.h +49 -0
  31. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MappIntelligence.h +260 -0
  32. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MappIntelligenceSDK.h +9 -0
  33. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIActionEvent.h +33 -0
  34. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MICampaignParameters.h +32 -0
  35. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIDefaultTracker.h +49 -0
  36. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIEcommerceParameters.h +52 -0
  37. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIEventParameters.h +23 -0
  38. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormField.h +28 -0
  39. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormParameters.h +48 -0
  40. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormSubmitEvent.h +22 -0
  41. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIMediaEvent.h +30 -0
  42. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIMediaParameters.h +31 -0
  43. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIPageParameters.h +27 -0
  44. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIPageViewEvent.h +34 -0
  45. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIParamType.h +28 -0
  46. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIParams.h +28 -0
  47. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIProduct.h +28 -0
  48. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MISessionParameters.h +20 -0
  49. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MITrackingEvent.h +23 -0
  50. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIUsageStatistics.h +32 -0
  51. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIUserCategories.h +49 -0
  52. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIWebViewTracker.h +21 -0
  53. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligence.h +260 -0
  54. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligenceLogger.h +47 -0
  55. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligenceiOS.h +13 -0
  56. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/libMappIntelligenceiOS.a +0 -0
  57. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIActionEvent.h +33 -0
  58. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MICampaignParameters.h +32 -0
  59. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIDefaultTracker.h +49 -0
  60. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIEcommerceParameters.h +52 -0
  61. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIEventParameters.h +23 -0
  62. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormField.h +28 -0
  63. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormParameters.h +48 -0
  64. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormSubmitEvent.h +22 -0
  65. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIMediaEvent.h +30 -0
  66. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIMediaParameters.h +31 -0
  67. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIPageParameters.h +27 -0
  68. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIPageViewEvent.h +34 -0
  69. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIParamType.h +28 -0
  70. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIParams.h +28 -0
  71. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIProduct.h +28 -0
  72. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIProperties.h +49 -0
  73. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MISessionParameters.h +20 -0
  74. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MITrackerRequest.h +39 -0
  75. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MITrackingEvent.h +23 -0
  76. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIUsageStatistics.h +32 -0
  77. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIUserCategories.h +49 -0
  78. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MappIntelligence.h +260 -0
  79. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MappIntelligenceSDK.h +9 -0
  80. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIActionEvent.h +33 -0
  81. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MICampaignParameters.h +32 -0
  82. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIDefaultTracker.h +49 -0
  83. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIEcommerceParameters.h +52 -0
  84. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIEventParameters.h +23 -0
  85. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormField.h +28 -0
  86. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormParameters.h +48 -0
  87. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormSubmitEvent.h +22 -0
  88. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIMediaEvent.h +30 -0
  89. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIMediaParameters.h +31 -0
  90. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIPageParameters.h +27 -0
  91. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIPageViewEvent.h +34 -0
  92. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIParamType.h +28 -0
  93. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIParams.h +28 -0
  94. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIProduct.h +28 -0
  95. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MISessionParameters.h +20 -0
  96. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MITrackingEvent.h +23 -0
  97. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIUsageStatistics.h +32 -0
  98. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIUserCategories.h +49 -0
  99. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIWebViewTracker.h +21 -0
  100. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligence.h +260 -0
  101. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligenceLogger.h +47 -0
  102. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligenceiOS.h +13 -0
  103. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/libMappIntelligenceiOS.a +0 -0
  104. package/lib/module/GlobalErrorHandler.js +6 -11
  105. package/lib/module/GlobalErrorHandler.js.map +1 -1
  106. package/lib/module/MappIntelligencePlugin.js +6 -2
  107. package/lib/module/MappIntelligencePlugin.js.map +1 -1
  108. package/lib/module/NativeMappintelligencePlugin.js +5 -0
  109. package/lib/module/NativeMappintelligencePlugin.js.map +1 -0
  110. package/lib/module/UseWebTracking.js +20 -20
  111. package/lib/module/UseWebTracking.js.map +1 -1
  112. package/lib/module/promiseRejectionHandler.js +4 -9
  113. package/lib/module/promiseRejectionHandler.js.map +1 -1
  114. package/lib/typescript/src/GlobalErrorHandler.d.ts.map +1 -1
  115. package/lib/typescript/src/MappIntelligencePlugin.d.ts.map +1 -1
  116. package/lib/typescript/src/NativeMappintelligencePlugin.d.ts +39 -0
  117. package/lib/typescript/src/NativeMappintelligencePlugin.d.ts.map +1 -0
  118. package/lib/typescript/src/UseWebTracking.d.ts +1 -1
  119. package/lib/typescript/src/UseWebTracking.d.ts.map +1 -1
  120. package/lib/typescript/src/promiseRejectionHandler.d.ts.map +1 -1
  121. package/mapp-intelligence-reactnative-plugin.podspec +4 -1
  122. package/package.json +20 -41
  123. package/src/GlobalErrorHandler.tsx +7 -12
  124. package/src/MappIntelligencePlugin.tsx +16 -11
  125. package/src/NativeMappintelligencePlugin.ts +55 -0
  126. package/src/UseWebTracking.tsx +29 -27
  127. package/src/promiseRejectionHandler.tsx +5 -10
@@ -1,23 +1,34 @@
1
1
  package com.mappinteligenceplugin
2
2
 
3
3
  import com.facebook.react.ReactPackage
4
- import com.facebook.react.bridge.JavaScriptModule
5
4
  import com.facebook.react.bridge.NativeModule
6
5
  import com.facebook.react.bridge.ReactApplicationContext
6
+ import com.facebook.react.module.model.ReactModuleInfo
7
+ import com.facebook.react.module.model.ReactModuleInfoProvider
7
8
  import com.facebook.react.uimanager.ViewManager
8
9
 
9
10
 
10
11
  class MappinteligencePluginPackage : ReactPackage {
11
12
  override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
12
- return listOf(MappinteligencePluginModule(reactContext))
13
- }
14
-
15
- @Suppress("unused")
16
- fun createJSModules(): MutableList<Class<out JavaScriptModule>> {
17
- return mutableListOf()
13
+ return listOf<NativeModule>(MappinteligencePluginModule(reactContext))
18
14
  }
19
15
 
20
16
  override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
21
17
  return emptyList()
22
18
  }
19
+
20
+ fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
21
+ return ReactModuleInfoProvider {
22
+ val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
23
+ moduleInfos[MappinteligencePluginModule.NAME] = ReactModuleInfo(
24
+ MappinteligencePluginModule.NAME,
25
+ MappinteligencePluginModule.NAME,
26
+ false, // canOverrideExistingModule
27
+ false, // needsEagerInit
28
+ true, // hasConstants
29
+ false // isCxxModule
30
+ )
31
+ moduleInfos
32
+ }
33
+ }
23
34
  }
@@ -0,0 +1,59 @@
1
+ // MappintelligencePluginSpec.kt
2
+ package com.mappinteligenceplugin
3
+
4
+ import com.facebook.react.bridge.Promise
5
+ import com.facebook.react.bridge.ReadableArray
6
+ import com.facebook.react.bridge.ReadableMap
7
+ import com.facebook.react.turbomodule.core.interfaces.TurboModule
8
+
9
+ interface MappintelligencePluginSpec : TurboModule {
10
+ fun initWithConfiguration(trackIds: ReadableArray, trackDomain: String, promise: Promise)
11
+ fun isInitialized(promise: Promise)
12
+ fun setAnonymousTracking(enabled: Boolean, promise: Promise)
13
+ fun setSendAppVersionInEveryRequest(enabled: Boolean, promise: Promise)
14
+ fun setEnableUserMatching(enabled: Boolean, promise: Promise)
15
+ fun setEverId(everId: String?, promise: Promise)
16
+ fun getEverId(promise: Promise)
17
+ fun setTemporarySessionId(sessionId: String, promise: Promise)
18
+ fun optOut(sendData: Boolean, promise: Promise)
19
+ fun optIn(sendData: Boolean, promise: Promise)
20
+ fun setExceptionLogLevel(exceptionLevel: Double, promise: Promise)
21
+ fun setLogLevel(level: Double, promise: Promise)
22
+ fun setBatchSupportEnabled(enabled: Boolean, promise: Promise)
23
+ fun setBatchSupportSize(size: Double, promise: Promise)
24
+ fun setRequestInterval(interval: Double, promise: Promise)
25
+ fun setRequestPerQueue(queue: Double, promise: Promise)
26
+ fun setShouldMigrate(migrate: Boolean, promise: Promise)
27
+ fun setEnableBackgroundSendout(enabled: Boolean, promise: Promise)
28
+ fun trackCustomPage(
29
+ pageTitle: String?,
30
+ pageParams: ReadableMap?,
31
+ sessionParams: ReadableMap?,
32
+ userCategoryParams: ReadableMap?,
33
+ ecommerceParams: ReadableMap?,
34
+ campaignParams: ReadableMap?,
35
+ promise: Promise
36
+ )
37
+ fun trackPageWithCustomData(params: ReadableMap?, pageTitle: String, promise: Promise)
38
+ fun trackPage(pageTitle: String, promise: Promise)
39
+ fun sendRequestsAndClean(promise: Promise)
40
+ fun trackAction(
41
+ name: String,
42
+ eventParameters: ReadableMap?,
43
+ sessionParameters: ReadableMap?,
44
+ userCategories: ReadableMap?,
45
+ eCommerceParameters: ReadableMap?,
46
+ campaignParameters: ReadableMap?,
47
+ promise: Promise
48
+ )
49
+ fun trackException(name: String, message: String, stacktrace: String?, promise: Promise)
50
+ fun trackException(exception: ReadableMap, promise: Promise)
51
+ fun trackMedia(readableMap: ReadableMap?, promise: Promise)
52
+ fun trackUrl(url: String, mediaCode: String?, promise: Promise)
53
+ fun trackExceptionWithName(name: String, message: String, stacktrace: String?, promise: Promise)
54
+ fun build(promise: Promise)
55
+ fun reset(promise: Promise)
56
+ fun getCurrentConfig(promise: Promise)
57
+ fun nativeCrash()
58
+ }
59
+
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libMappIntelligenceiOS.a</string>
10
+ <key>HeadersPath</key>
11
+ <string>Headers</string>
12
+ <key>LibraryIdentifier</key>
13
+ <string>ios-arm64_x86_64-simulator</string>
14
+ <key>LibraryPath</key>
15
+ <string>libMappIntelligenceiOS.a</string>
16
+ <key>SupportedArchitectures</key>
17
+ <array>
18
+ <string>arm64</string>
19
+ <string>x86_64</string>
20
+ </array>
21
+ <key>SupportedPlatform</key>
22
+ <string>ios</string>
23
+ <key>SupportedPlatformVariant</key>
24
+ <string>simulator</string>
25
+ </dict>
26
+ <dict>
27
+ <key>BinaryPath</key>
28
+ <string>libMappIntelligenceiOS.a</string>
29
+ <key>HeadersPath</key>
30
+ <string>Headers</string>
31
+ <key>LibraryIdentifier</key>
32
+ <string>ios-arm64</string>
33
+ <key>LibraryPath</key>
34
+ <string>libMappIntelligenceiOS.a</string>
35
+ <key>SupportedArchitectures</key>
36
+ <array>
37
+ <string>arm64</string>
38
+ </array>
39
+ <key>SupportedPlatform</key>
40
+ <string>ios</string>
41
+ </dict>
42
+ </array>
43
+ <key>CFBundlePackageType</key>
44
+ <string>XFWK</string>
45
+ <key>XCFrameworkFormatVersion</key>
46
+ <string>1.0</string>
47
+ </dict>
48
+ </plist>
@@ -0,0 +1,33 @@
1
+ //
2
+ // MIActionEvent.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 08/09/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MITrackingEvent.h"
11
+ #import "MIPageParameters.h"
12
+ #import "MIEventParameters.h"
13
+ #import "MISessionParameters.h"
14
+ #import "MIUserCategories.h"
15
+ #import "MIEcommerceParameters.h"
16
+ #import "MICampaignParameters.h"
17
+
18
+ NS_ASSUME_NONNULL_BEGIN
19
+
20
+ @interface MIActionEvent : MITrackingEvent
21
+ @property (nonnull) NSString* name;
22
+ @property (nonatomic, nonnull) MIEventParameters* eventParameters;
23
+ @property (nonatomic, nullable) MISessionParameters *sessionParameters;
24
+ @property (nonatomic, nullable) MIUserCategories *userCategories;
25
+ @property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
26
+ @property (nonatomic, nullable) MICampaignParameters *campaignParameters;
27
+
28
+ - (instancetype)init NS_UNAVAILABLE;
29
+ - (instancetype)initWithName:(NSString *)name;
30
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,32 @@
1
+ //
2
+ // AdvertisementProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 28/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+
12
+ typedef NS_ENUM(NSInteger, MICampaignAction) {
13
+ click = 1,
14
+ view = 2
15
+ };
16
+
17
+ NS_ASSUME_NONNULL_BEGIN
18
+
19
+ @interface MICampaignParameters : NSObject <NSCopying, NSSecureCoding>
20
+ @property (nullable) NSString *campaignId;
21
+ @property MICampaignAction action;
22
+ @property (nullable) NSString *mediaCode;
23
+ @property BOOL oncePerSession;
24
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customParameters;
25
+
26
+ - (instancetype)initWith: (NSString *) campaignId;
27
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
28
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
29
+
30
+ @end
31
+
32
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,49 @@
1
+ //
2
+ // MIDefaultTracker.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Vladan Randjelovic on 10/02/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #ifndef DefaultTracker_h
10
+ #define DefaultTracker_h
11
+ #import <UIKit/UIKit.h>
12
+ #import "MIPageViewEvent.h"
13
+ #import "MIFormSubmitEvent.h"
14
+ #import "MIActionEvent.h"
15
+
16
+ #endif /* DefaultTracker_h */
17
+
18
+ @interface MIDefaultTracker : NSObject
19
+ @property BOOL isReady;
20
+ @property (nonatomic) BOOL anonymousTracking;
21
+ @property (nonatomic) BOOL isItFlutter;
22
+ @property NSString*_Nullable temporaryID;
23
+ @property NSString* _Nonnull version;
24
+ @property NSString* _Nonnull platform;
25
+ @property (nonatomic) NSArray<NSString*> * _Nullable suppressedParameters;
26
+ @property MIUsageStatistics* _Nonnull usageStatistics;
27
+
28
+ + (nullable instancetype)sharedInstance;
29
+ - (NSString *_Nullable)generateEverId;
30
+ - (void)setEverIDFromString: (NSString *_Nonnull)everIDString;
31
+ - (NSString*_Nonnull)generateUserAgent;
32
+ - (BOOL)isBackgroundSendoutEnabled;
33
+ - (BOOL)isUserMatchingEnabled;
34
+ - (void)setupVersion: (NSString *_Nonnull) version andPlatform: (NSString *_Nonnull) platform;
35
+ - (NSError*_Nullable)track:(UIViewController *_Nonnull)controller;
36
+ - (void)updateFirstSessionWith: (UIApplicationState) state;
37
+ - (NSError*_Nullable)trackWith:(NSString *_Nonnull)name;
38
+ - (NSError*_Nullable)trackWithEvent:(MITrackingEvent *_Nonnull)event;
39
+ - (NSError *_Nullable)trackWithCustomEvent:(MITrackingEvent *_Nonnull)event;
40
+
41
+ + (NSUserDefaults *_Nonnull)sharedDefaults;
42
+ - (void)initHibernate;
43
+ - (void)reset;
44
+ - (void)initializeTracking;
45
+ - (void)sendRequestFromDatabaseWithCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
46
+ - (void)sendBatchForRequestInBackground: (BOOL)background withCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
47
+ - (void)removeAllRequestsFromDBWithCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
48
+ - (void)migrateData;
49
+ @end
@@ -0,0 +1,52 @@
1
+ //
2
+ // EcommerceProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MIProduct.h"
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ typedef NS_ENUM(NSInteger, MIStatus) {
15
+ noneStatus = 0,
16
+ addedToBasket = 1,
17
+ purchased = 2,
18
+ viewed = 3,
19
+ deletedFromBasket = 4,
20
+ addedToWishlist = 5,
21
+ deletedFromWishlist = 6,
22
+ checkout = 7
23
+ };
24
+
25
+ @interface MIEcommerceParameters : NSObject
26
+
27
+ @property (nullable) NSArray<MIProduct*>* products;
28
+ @property (nonatomic) MIStatus status;
29
+ @property (nullable) NSString* currency;
30
+ @property (nullable) NSString* orderID;
31
+ @property (nullable) NSNumber* orderValue;
32
+ //new values
33
+ @property (nullable) NSString* returningOrNewCustomer;
34
+ @property (nullable) NSNumber* returnValue;
35
+ @property (nullable) NSNumber* cancellationValue;
36
+ @property (nullable) NSNumber* couponValue;
37
+ @property (nullable) NSString* paymentMethod;
38
+ @property (nullable) NSString* shippingServiceProvider;
39
+ @property (nullable) NSString* shippingSpeed;
40
+ @property (nullable) NSNumber* shippingCost;
41
+ @property (nullable) NSNumber* markUp;
42
+ @property (nullable) NSString* orderStatus;
43
+
44
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customParameters;
45
+
46
+ - (instancetype)initWithCustomParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
47
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
48
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
49
+
50
+ @end
51
+
52
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,23 @@
1
+ //
2
+ // MIActionProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 08/09/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIEventParameters : NSObject
14
+
15
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* parameters;
16
+
17
+ -(instancetype)initWithParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
18
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
19
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
20
+
21
+ @end
22
+
23
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // MIFormField.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26.1.22..
6
+ // Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIFormField : NSObject
14
+
15
+ @property (nonatomic, nullable) NSString* formFieldName;
16
+ @property (nonatomic, nullable) NSString* formFieldContent;
17
+ @property (nonatomic) NSInteger ID;
18
+ @property (nonatomic) BOOL lastFocus;
19
+ @property (nonatomic) BOOL anonymus;
20
+
21
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
22
+ - (instancetype)initWithName:(NSString*)name andContent: (NSString*)content andID: (NSInteger)ID andWithAnonymus:(BOOL)anonymus andFocus:(BOOL)focus;
23
+ -(void)renameField: (NSString*) renameValue;
24
+ - (NSString*)getFormFieldForQuery;
25
+
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,48 @@
1
+ //
2
+ // MIFormParameters.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26.1.22..
6
+ // Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <UIKit/UIKit.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ @interface MIFormParameters : NSObject
15
+
16
+ /// formName by default is name of uiviewcontroler, but user can specify it to be differnt one.
17
+ @property (nonatomic, nullable) NSString* formName;
18
+
19
+ /// fieldIds indicate ids which will be trackable, if it is not specified all trackable controls at form will be tracked
20
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* fieldIds;
21
+
22
+ /// By default, the name of the field ID is used to generate the name of the field. If you want to change the default name you can specify this here.
23
+ @property (nonatomic, nullable) NSMutableDictionary* renameFields;
24
+
25
+ /// By default, the value of the text field is used as the value of the field. You can change the default value here. Please be aware that if hardcoded, the field value is changed permanently and does not indicate anymore if a field was left empty.
26
+ @property (nonatomic, nullable) NSMutableDictionary* changeFieldsValue;
27
+
28
+ /// By default, only EditText fields are anonymized and send as filled out or empty to the track server, instead of displaying the actual value of the field. If other field types need to be anonymized, you can indicate them here.
29
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* anonymousSpecificFields;
30
+
31
+ /// By default, the SDK sends EditText fields anonymized (filled out / empty) to Mapp Intelligence. If you want to send the actual content of the specific fields instead, indicate them here.
32
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* fullContentSpecificFields;
33
+
34
+ /// If you want to indicate that a form has been submitted or canceled, you can set the confirmButton to true or false. By default, the confirmButton is set to true.
35
+ @property (nonatomic) BOOL confirmButton;
36
+
37
+ /// If you want to anonymize all field types, set anonymous to true.
38
+ @property (nonatomic, nullable) NSNumber* anonymous;
39
+
40
+ /// You can track the order in which the user has filled out the fields. Please note that you need to track the order manually and parse the data to the fieldsOrder function. Mapp Intelligence cannot track the order in which the user filled out the form automatically.
41
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* pathAnalysis;
42
+
43
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
44
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
45
+
46
+ @end
47
+
48
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,22 @@
1
+ //
2
+ // MIFromSubmitEvent.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 1.2.22..
6
+ // Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MITrackingEvent.h"
11
+ #import "MIUsageStatistics.h"
12
+ #import "MIFormParameters.h"
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+ @interface MIFormSubmitEvent : MITrackingEvent
17
+
18
+ @property (nonatomic, nullable) MIFormParameters *formParameters;
19
+
20
+ @end
21
+
22
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,30 @@
1
+ //
2
+ // MIMediaEvent.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 28/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MIMediaParameters.h"
11
+ #import "MIEventParameters.h"
12
+ #import "MISessionParameters.h"
13
+ #import "MIEcommerceParameters.h"
14
+ #import "MITrackingEvent.h"
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ @interface MIMediaEvent : MITrackingEvent
19
+
20
+ @property (nonatomic, nonnull) MIMediaParameters *mediaParameters;
21
+ @property (nonatomic, nullable) MIEventParameters* eventParameters;
22
+ @property (nonatomic, nullable) MISessionParameters *sessionParameters;
23
+ @property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
24
+
25
+ - (instancetype)init NS_UNAVAILABLE;
26
+ - (instancetype)initWithPageName:(NSString *)name parameters: (MIMediaParameters *)properties;
27
+
28
+ @end
29
+
30
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,31 @@
1
+ //
2
+ // MIMediaParameters.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 27/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIMediaParameters : NSObject
14
+
15
+ @property (nonnull) NSString *name;
16
+ @property (nonnull) NSString *action;
17
+ @property (nullable) NSNumber *bandwith;
18
+ @property (nonnull) NSNumber *duration;
19
+ @property (nonnull) NSNumber *position;
20
+ @property (nullable)NSNumber *soundIsMuted;
21
+ @property (nullable)NSNumber *soundVolume;
22
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customCategories;
23
+
24
+ - (instancetype)init NS_UNAVAILABLE;
25
+ - (instancetype)initWith: (NSString *) name action: (NSString *)action position: (NSNumber *) position duration: (NSNumber *) duration;
26
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
27
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
28
+
29
+ @end
30
+
31
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,27 @@
1
+ //
2
+ // MIPageParameters.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 17/07/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIPageParameters : NSObject
14
+
15
+ @property (nullable) NSString* internalSearch;
16
+ @property (nullable) NSDictionary<NSNumber* ,NSString*> *details;
17
+ @property (nullable) NSMutableDictionary* groups;
18
+
19
+ -(instancetype)initWithPageParams: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters pageCategory: (NSMutableDictionary* _Nullable) category search: (NSString* _Nullable)internalSearch;
20
+
21
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
22
+
23
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
24
+
25
+ @end
26
+
27
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,34 @@
1
+
2
+
3
+ //
4
+ // MIPageViewEvent.h
5
+ // MappIntelligenceSDK
6
+ //
7
+ // Created by Stefan Stevanovic on 3/6/20.
8
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
9
+ //
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import "MIPageParameters.h"
13
+ #import "MITrackingEvent.h"
14
+ #import "MISessionParameters.h"
15
+ #import "MIUserCategories.h"
16
+ #import "MIEcommerceParameters.h"
17
+ #import "MICampaignParameters.h"
18
+
19
+ NS_ASSUME_NONNULL_BEGIN
20
+
21
+ @interface MIPageViewEvent : MITrackingEvent
22
+
23
+ @property (nonatomic, nonnull) MIPageParameters* pageParameters;
24
+ @property (nonatomic, nullable) MISessionParameters *sessionParameters;
25
+ @property (nonatomic, nullable) MIUserCategories *userCategories;
26
+ @property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
27
+ @property (nonatomic, nullable) MICampaignParameters *campaignParameters;
28
+
29
+ - (instancetype)initWithName:(NSString *)name;
30
+
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
34
+
@@ -0,0 +1,28 @@
1
+ //
2
+ // MIParamType.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 17/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIParamType : NSObject
14
+
15
+ +(NSString *)pageParam;
16
+ +(NSString *)pageCategory;
17
+ +(NSString *)ecommerceParam;
18
+ +(NSString *)productCategory;
19
+ +(NSString *)eventParam;
20
+ +(NSString *)campaignParam;
21
+ +(NSString *)sessionParam;
22
+ +(NSString *)urmCategory;
23
+
24
+ +(NSString *) createCustomParam:(NSString *) type value: (NSInteger) value;
25
+
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // MIParams.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 17/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIParams : NSObject
14
+
15
+ +(NSString *)internalSearch;
16
+ +(NSString *)mediaCode;
17
+ +(NSString *)customerId;
18
+ +(NSString *)productName;
19
+ +(NSString *)productCost;
20
+ +(NSString *)productCurrency;
21
+ +(NSString *)productQuantity;
22
+ +(NSString *)statusOfShoppingCard;
23
+ +(NSString *)orderId;
24
+ +(NSString *)orderValue;
25
+
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // Product.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIProduct : NSObject
14
+
15
+ @property (nonatomic, nullable) NSString* name;
16
+ @property (nonatomic, nullable) NSNumber* cost;
17
+ @property (nonatomic, nullable) NSNumber* quantity;
18
+ @property (nullable) NSNumber* productAdvertiseID;
19
+ @property (nullable) NSNumber* productSoldOut;
20
+ @property (nullable) NSString* productVariant;
21
+
22
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* categories;
23
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* ecommerceParameters;
24
+
25
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END