expo-hubspot-chat 0.1.0

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 (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +270 -0
  3. package/android/build/.transforms/2f09374131003f5bac5f483abf32bff8/results.bin +1 -0
  4. package/android/build/.transforms/2f09374131003f5bac5f483abf32bff8/transformed/classes/classes_dex/classes.dex +0 -0
  5. package/android/build/.transforms/b0088e2af53585579153fefea418b5e4/results.bin +1 -0
  6. package/android/build/.transforms/b0088e2af53585579153fefea418b5e4/transformed/classes/classes_dex/classes.dex +0 -0
  7. package/android/build/generated/source/buildConfig/debug/expo/modules/hubspotchat/BuildConfig.java +10 -0
  8. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -0
  9. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  10. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  11. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  12. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  13. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  14. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  15. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  16. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  17. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  18. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  19. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  20. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/expo-hubspot-chat_debug.kotlin_module +0 -0
  21. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/expo/modules/hubspotchat/BuildConfig.class +0 -0
  22. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
  23. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
  24. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -0
  25. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  26. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  27. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  28. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
  29. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  33. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  34. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  110. package/android/build/outputs/logs/manifest-merger-debug-report.txt +16 -0
  111. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  112. package/android/build/tmp/kotlin-classes/debug/META-INF/expo-hubspot-chat_debug.kotlin_module +0 -0
  113. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatMessagingService.class +0 -0
  114. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Coroutine$1.class +0 -0
  115. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$1.class +0 -0
  116. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$2.class +0 -0
  117. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$3.class +0 -0
  118. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$4.class +0 -0
  119. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$5.class +0 -0
  120. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$6.class +0 -0
  121. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$7.class +0 -0
  122. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$Function$8.class +0 -0
  123. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$FunctionWithoutArgs$1.class +0 -0
  124. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$FunctionWithoutArgs$2.class +0 -0
  125. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$definition$lambda$9$$inlined$OnDestroy$1.class +0 -0
  126. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule$registerLifecycleCallbacks$1.class +0 -0
  127. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatModule.class +0 -0
  128. package/android/build/tmp/kotlin-classes/debug/expo/modules/hubspotchat/HubspotChatNoActivityException.class +0 -0
  129. package/android/build.gradle +21 -0
  130. package/android/src/main/java/expo/modules/hubspotchat/HubspotChatMessagingService.kt +18 -0
  131. package/android/src/main/java/expo/modules/hubspotchat/HubspotChatModule.kt +113 -0
  132. package/expo-module.config.json +10 -0
  133. package/ios/Frameworks/HubspotMobileSDK.xcframework/Info.plist +44 -0
  134. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Headers/HubspotMobileSDK-Swift.h +2 -0
  135. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/HubspotMobileSDK +0 -0
  136. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Info.plist +26 -0
  137. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  138. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios.abi.json +5250 -0
  139. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios.package.swiftinterface +194 -0
  140. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +194 -0
  141. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  142. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface +194 -0
  143. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64/HubspotMobileSDK.framework/Modules/module.modulemap +4 -0
  144. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Headers/HubspotMobileSDK-Swift.h +2 -0
  145. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/HubspotMobileSDK +0 -0
  146. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Info.plist +26 -0
  147. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  148. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  149. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +5250 -0
  150. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +194 -0
  151. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +194 -0
  152. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  153. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +194 -0
  154. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +5250 -0
  155. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +194 -0
  156. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +194 -0
  157. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  158. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/HubspotMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +194 -0
  159. package/ios/Frameworks/HubspotMobileSDK.xcframework/ios-arm64_x86_64-simulator/HubspotMobileSDK.framework/Modules/module.modulemap +4 -0
  160. package/ios/Frameworks/HubspotMobileSDK_HubspotMobileSDK.bundle/Assets.car +0 -0
  161. package/ios/Frameworks/HubspotMobileSDK_HubspotMobileSDK.bundle/Info.plist +0 -0
  162. package/ios/Frameworks/HubspotMobileSDK_HubspotMobileSDK.bundle/PrivacyInfo.xcprivacy +62 -0
  163. package/ios/Frameworks/HubspotMobileSDK_HubspotMobileSDK.bundle/en.lproj/Localizable.strings +0 -0
  164. package/ios/HubspotChat.podspec +24 -0
  165. package/ios/HubspotChatAppDelegateSubscriber.swift +14 -0
  166. package/ios/HubspotChatModule.swift +160 -0
  167. package/package.json +55 -0
  168. package/plugin/src/index.js +275 -0
  169. package/src/HubspotChat.types.ts +31 -0
  170. package/src/HubspotChatModule.ts +19 -0
  171. package/src/index.ts +157 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 Vitor Araujo (https://github.com/vitoraraujodev)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,270 @@
1
+ # expo-hubspot-chat
2
+
3
+ [![license](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE)
4
+ ![platforms: ios | android](https://img.shields.io/badge/platforms-iOS%20%7C%20Android-lightgrey.svg)
5
+
6
+ An [Expo module](https://docs.expo.dev/modules/overview/) that integrates the [HubSpot Mobile Chat SDK](https://developers.hubspot.com/docs/guides/cms/hubspot-mobile-sdk) into React Native apps. Provides a native chat experience on both iOS and Android with full support for user identification, push notifications, and chat lifecycle events.
7
+
8
+ ## Table of Contents
9
+
10
+ - [Features](#features)
11
+ - [Requirements](#requirements)
12
+ - [Installation](#installation)
13
+ - [Configuration](#configuration)
14
+ - [Usage](#usage)
15
+ - [API Reference](#api-reference)
16
+ - [Push Notifications](#push-notifications)
17
+ - [Contributing](#contributing)
18
+ - [License](#license)
19
+
20
+ ## Features
21
+
22
+ - Native HubSpot chat UI on both platforms (SwiftUI on iOS, WebView Activity on Android)
23
+ - User identification via HubSpot's Visitor Identification API
24
+ - Custom chat properties
25
+ - Push notification support (APNs on iOS, FCM on Android)
26
+ - Chat lifecycle events (`chatOpened`, `chatClosed`, `chatError`)
27
+ - Configurable presentation style on iOS
28
+ - Expo config plugin for zero-manual-setup native configuration
29
+
30
+ ## Requirements
31
+
32
+ | Requirement | Version |
33
+ | -------------- | ------- |
34
+ | Expo SDK | >= 51 |
35
+ | React Native | >= 0.74 |
36
+ | iOS | >= 15.0 |
37
+ | Android minSdk | >= 26 |
38
+
39
+ ### Native SDK Versions
40
+
41
+ This module bundles/depends on the following native SDK versions:
42
+
43
+ | Platform | Dependency | Version |
44
+ | -------- | --------------------------------------------------- | ------- |
45
+ | Android | `com.hubspot.mobilechatsdk:mobile-chat-sdk-android` | 1.0.8 |
46
+ | Android | `com.google.firebase:firebase-bom` | 33.7.0 |
47
+ | iOS | `HubspotMobileSDK.xcframework` | Bundled |
48
+
49
+ > **⚠️ Important:** This module contains native iOS and Android code and **requires a [development build](https://docs.expo.dev/develop/development-builds/introduction/)**. It **does not work with Expo Go**.
50
+
51
+ ## Installation
52
+
53
+ 1. Install the package:
54
+
55
+ ```bash
56
+ npx expo install expo-hubspot-chat
57
+ ```
58
+
59
+ ## Configuration
60
+
61
+ Add the plugin to your `app.config.ts` (or `app.json`):
62
+
63
+ ```ts
64
+ export default {
65
+ expo: {
66
+ plugins: [
67
+ [
68
+ "expo-hubspot-chat",
69
+ {
70
+ portalId: "12345678",
71
+ hublet: "na1",
72
+ environment: "production", // optional, defaults to "production"
73
+ defaultChatFlow: "support", // optional
74
+ },
75
+ ],
76
+ ],
77
+ },
78
+ };
79
+ ```
80
+
81
+ Then create a new development build:
82
+
83
+ ```bash
84
+ npx expo prebuild --clean
85
+
86
+ # For iOS
87
+ npx expo run:ios
88
+
89
+ # For Android
90
+ npx expo run:android
91
+ ```
92
+
93
+ The native configuration is automatically applied during the build step.
94
+
95
+ ### Plugin Props
96
+
97
+ | Prop | Type | Required | Default | Description |
98
+ | ----------------- | ---------------------- | -------- | -------------- | --------------------------------------------- |
99
+ | `portalId` | `string` | Yes | — | Your HubSpot portal ID |
100
+ | `hublet` | `string` | Yes | — | HubSpot hublet region (e.g. `"na1"`, `"eu1"`) |
101
+ | `environment` | `"production" \| "qa"` | No | `"production"` | HubSpot environment |
102
+ | `defaultChatFlow` | `string` | No | — | Default chat flow identifier |
103
+
104
+ ### What the plugin does
105
+
106
+ The config plugin automates native project configuration at prebuild time:
107
+
108
+ **iOS:**
109
+
110
+ - Writes `Hubspot-Info.plist` with portal/hublet/environment config
111
+ - Adds the plist as a resource file to the Xcode project
112
+
113
+ **Android:**
114
+
115
+ - Writes `hubspot-info.json` to `android/app/src/main/assets/`
116
+ - Registers `HubspotWebActivity` in `AndroidManifest.xml`
117
+ - Registers `HubspotChatMessagingService` for Firebase Cloud Messaging
118
+ - Adds packaging exclusion for `META-INF/versions/9/OSGI-INF/MANIFEST.MF` conflicts
119
+
120
+ > **Note:** This module is in early release and may evolve. Feedback and issues are welcome.
121
+
122
+ ## Usage
123
+
124
+ ### Initialize the SDK
125
+
126
+ Call `initialize()` once at app startup. All configuration (portalId, hublet, environment, defaultChatFlow) is read from the native config files generated by the plugin -- no parameters needed:
127
+
128
+ ```ts
129
+ import { initialize } from "expo-hubspot-chat";
130
+
131
+ initialize();
132
+ ```
133
+
134
+ ### Identify a user
135
+
136
+ Identify the user with an email and a server-generated identity token from HubSpot's [Visitor Identification API](https://developers.hubspot.com/docs/api/conversation/visitor-identification):
137
+
138
+ ```ts
139
+ import { setUserIdentity } from "expo-hubspot-chat";
140
+
141
+ setUserIdentity("user@example.com", identityToken);
142
+ ```
143
+
144
+ ### Set chat properties
145
+
146
+ Send custom metadata visible to HubSpot agents:
147
+
148
+ ```ts
149
+ import { setChatProperties } from "expo-hubspot-chat";
150
+
151
+ setChatProperties({
152
+ "user-name": "Jane Doe",
153
+ plan: "enterprise",
154
+ });
155
+ ```
156
+
157
+ ### Open the chat
158
+
159
+ ```ts
160
+ import { openChat } from "expo-hubspot-chat";
161
+
162
+ // Open with default chat flow
163
+ openChat();
164
+
165
+ // Open a specific chat flow
166
+ openChat({ chatFlow: "billing" });
167
+
168
+ // iOS: open as full screen modal
169
+ openChat({ presentationStyle: "fullScreen" });
170
+ ```
171
+
172
+ The `openChat` function also accepts a plain string for backwards compatibility:
173
+
174
+ ```ts
175
+ openChat("support");
176
+ ```
177
+
178
+ ### Close the chat programmatically
179
+
180
+ ```ts
181
+ import { closeChat } from "expo-hubspot-chat";
182
+
183
+ closeChat();
184
+ ```
185
+
186
+ ### Listen to chat events
187
+
188
+ ```ts
189
+ import { addChatEventListener } from "expo-hubspot-chat";
190
+
191
+ const subscription = addChatEventListener((event) => {
192
+ switch (event.type) {
193
+ case "chatOpened":
194
+ console.log("Chat opened");
195
+ break;
196
+ case "chatClosed":
197
+ console.log("Chat closed");
198
+ break;
199
+ case "chatError":
200
+ console.error("Chat error:", event.error);
201
+ break;
202
+ }
203
+ });
204
+
205
+ // Cleanup when done
206
+ subscription.remove();
207
+ ```
208
+
209
+ ### Check initialization status
210
+
211
+ ```ts
212
+ import { isInitialized } from "expo-hubspot-chat";
213
+
214
+ if (isInitialized()) {
215
+ openChat();
216
+ }
217
+ ```
218
+
219
+ ### Clear user on sign-out
220
+
221
+ Always call `clearUser()` when the user logs out to prevent data leaking between sessions:
222
+
223
+ ```ts
224
+ import { clearUser } from "expo-hubspot-chat";
225
+
226
+ async function signOut() {
227
+ await clearUser();
228
+ // ... rest of sign-out logic
229
+ }
230
+ ```
231
+
232
+ ## API Reference
233
+
234
+ ### Functions
235
+
236
+ | Function | Signature | Description |
237
+ | ---------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------- |
238
+ | `initialize` | `() => void` | Initialize the SDK. Reads config from native files set by plugin. |
239
+ | `isInitialized` | `() => boolean` | Check if the SDK has been initialized. |
240
+ | `setUserIdentity` | `(email: string, identityToken: string) => void` | Identify the current user. |
241
+ | `openChat` | `(options?: OpenChatOptions \| string) => void` | Open the chat UI. |
242
+ | `closeChat` | `() => void` | Programmatically close the chat UI. |
243
+ | `setChatProperties` | `(properties: Record<string, string>) => void` | Set custom chat properties. |
244
+ | `clearUser` | `() => Promise<void>` | Clear user data and end session. |
245
+ | `addChatEventListener` | `(listener: (event: HubspotChatEvent) => void) => EventSubscription` | Subscribe to chat lifecycle events. |
246
+
247
+ ## Push Notifications
248
+
249
+ This module includes built-in push notification support for HubSpot chat messages.
250
+
251
+ ### iOS
252
+
253
+ The module automatically forwards APNs device tokens to HubSpot via an `AppDelegateSubscriber`. No additional setup is required beyond enabling push notifications in your Apple Developer account and Xcode capabilities.
254
+
255
+ ### Android
256
+
257
+ The module registers a `HubspotChatMessagingService` that extends Firebase Cloud Messaging. It automatically filters and handles HubSpot-specific push notifications.
258
+
259
+ **Prerequisites:**
260
+
261
+ - Firebase must be configured in your project (e.g. via `@react-native-firebase/app`)
262
+ - A `google-services.json` file must be present in your Android project
263
+
264
+ ## Contributing
265
+
266
+ Contributions are welcome. Please open an issue first to discuss what you would like to change.
267
+
268
+ ## License
269
+
270
+ [MIT](./LICENSE)
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Automatically generated file. DO NOT MODIFY
3
+ */
4
+ package expo.modules.hubspotchat;
5
+
6
+ public final class BuildConfig {
7
+ public static final boolean DEBUG = Boolean.parseBoolean("true");
8
+ public static final String LIBRARY_PACKAGE_NAME = "expo.modules.hubspotchat";
9
+ public static final String BUILD_TYPE = "debug";
10
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="expo.modules.hubspotchat" >
4
+
5
+ <uses-sdk android:minSdkVersion="26" />
6
+
7
+ </manifest>
@@ -0,0 +1,18 @@
1
+ {
2
+ "version": 3,
3
+ "artifactType": {
4
+ "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
+ "kind": "Directory"
6
+ },
7
+ "applicationId": "expo.modules.hubspotchat",
8
+ "variantName": "debug",
9
+ "elements": [
10
+ {
11
+ "type": "SINGLE",
12
+ "filters": [],
13
+ "attributes": [],
14
+ "outputFile": "AndroidManifest.xml"
15
+ }
16
+ ],
17
+ "elementType": "File"
18
+ }
@@ -0,0 +1,6 @@
1
+ aarFormatVersion=1.0
2
+ aarMetadataVersion=1.0
3
+ minCompileSdk=1
4
+ minCompileSdkExtension=0
5
+ minAndroidGradlePluginVersion=1.0.0
6
+ coreLibraryDesugaringEnabled=false
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/hubspot-chat/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/hubspot-chat/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/hubspot-chat/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/hubspot-chat/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/hubspot-chat/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/hubspot-chat/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/src/main/assets"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/src/debug/assets"/></dataSet><dataSet config="generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/src/debug/jniLibs"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vitoraraujo/Programs/doctorwise/doctorwise-mobile/modules/expo-hubspot-chat/android/src/debug/shaders"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ R_DEF: Internal format may change without notice
2
+ local
@@ -0,0 +1,7 @@
1
+ 1<?xml version="1.0" encoding="utf-8"?>
2
+ 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ 3 package="expo.modules.hubspotchat" >
4
+ 4
5
+ 5 <uses-sdk android:minSdkVersion="26" />
6
+ 6
7
+ 7</manifest>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="expo.modules.hubspotchat" >
4
+
5
+ <uses-sdk android:minSdkVersion="26" />
6
+
7
+ </manifest>