Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BatchLabs/Batch-iOS-SDK
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.20.0
Choose a base ref
...
head repository: BatchLabs/Batch-iOS-SDK
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 12 commits
  • 209 files changed
  • 3 contributors

Commits on Jan 5, 2024

  1. release: SDK 1.21.0

    arnaud-roland committed Jan 5, 2024
    Copy the full SHA
    4815ea2 View commit details

Commits on Mar 18, 2024

  1. release: SDK 1.21.1

    arnaud-roland committed Mar 18, 2024
    Copy the full SHA
    975452c View commit details

Commits on Mar 19, 2024

  1. release: SDK 1.21.2

    arnaud-roland committed Mar 19, 2024
    Copy the full SHA
    dddeb6f View commit details
  2. Update documentation action

    abarisain committed Mar 19, 2024
    Copy the full SHA
    3dfeae5 View commit details
  3. Fix documentation action

    abarisain committed Mar 19, 2024
    Copy the full SHA
    0323b00 View commit details
  4. Update doc action

    abarisain committed Mar 19, 2024
    Copy the full SHA
    d0eb6ce View commit details

Commits on Apr 26, 2024

  1. release: SDK 2.0.0

    arnaud-roland committed Apr 26, 2024
    Copy the full SHA
    6ac4230 View commit details

Commits on May 3, 2024

  1. release: SDK 2.0.1

    arnaud-roland committed May 3, 2024
    Copy the full SHA
    345ed63 View commit details

Commits on May 23, 2024

  1. release: SDK 2.0.2

    arnaud-roland committed May 23, 2024
    Copy the full SHA
    72ab052 View commit details

Commits on Oct 29, 2024

  1. release: SDK 2.1.0

    arnaud-roland committed Oct 29, 2024
    Copy the full SHA
    a0dec6f View commit details
  2. ci: bump macos version

    arnaud-roland committed Oct 29, 2024
    Copy the full SHA
    80dded4 View commit details

Commits on Oct 30, 2024

  1. ci: update build docc

    arnaud-roland committed Oct 30, 2024
    Copy the full SHA
    8918333 View commit details
Showing with 6,746 additions and 5,397 deletions.
  1. +6 −6 .github/workflows/documentation.yml
  2. +2 −2 Package.swift
  3. +1 −1 README.md
  4. +291 −113 Sources/Batch.xcodeproj/project.pbxproj
  5. +1 −1 Sources/Batch.xcodeproj/xcshareddata/xcschemes/Batch.xcscheme
  6. +1 −1 Sources/Batch.xcodeproj/xcshareddata/xcschemes/BatchStatic.xcscheme
  7. +1 −1 Sources/Batch.xcodeproj/xcshareddata/xcschemes/BatchTests.xcscheme
  8. +1 −1 Sources/Batch.xcodeproj/xcshareddata/xcschemes/BatchUniversal.xcscheme
  9. +1 −1 Sources/Batch.xcodeproj/xcshareddata/xcschemes/BatchXCFramework.xcscheme
  10. +0 −1 Sources/Batch/BAErrorHelper.h
  11. +4 −1 Sources/Batch/Batch.h
  12. +8 −2 Sources/Batch/Batch.modulemap
  13. +1 −4 Sources/Batch/BatchActions.h
  14. +70 −61 Sources/Batch/BatchCore.h
  15. +18 −31 Sources/Batch/BatchCore.m
  16. +39 −0 Sources/Batch/BatchDataCollectionConfig.h
  17. +39 −0 Sources/Batch/BatchDataCollectionConfig.m
  18. +41 −7 Sources/Batch/{BatchEventData.h → BatchEventAttributes.h}
  19. +231 −0 Sources/Batch/BatchEventAttributes.m
  20. +14 −9 Sources/Batch/{BatchEventDataPrivate.h → BatchEventAttributesPrivate.h}
  21. +0 −334 Sources/Batch/BatchEventData.m
  22. +0 −22 Sources/Batch/BatchInbox.h
  23. +0 −11 Sources/Batch/BatchInbox.m
  24. +0 −2 Sources/Batch/BatchInboxPrivate.h
  25. +2 −2 Sources/Batch/BatchLogger.h
  26. +5 −11 Sources/Batch/BatchMessaging.h
  27. +12 −0 Sources/Batch/BatchMessaging.m
  28. +148 −0 Sources/Batch/BatchProfile.h
  29. +55 −0 Sources/Batch/BatchProfile.m
  30. +319 −0 Sources/Batch/BatchProfileEditor.h
  31. +235 −0 Sources/Batch/BatchProfileEditor.m
  32. +127 −129 Sources/Batch/BatchPush.h
  33. +27 −58 Sources/Batch/BatchPush.m
  34. +0 −45 Sources/Batch/BatchPushPrivate.h
  35. +9 −389 Sources/Batch/BatchUser.h
  36. +4 −208 Sources/Batch/BatchUser.m
  37. +0 −34 Sources/Batch/BatchUserProfile.h
  38. +0 −77 Sources/Batch/BatchUserProfile.m
  39. +5 −35 Sources/Batch/Defined.h
  40. +2 −2 Sources/Batch/Kernel/Dependency Injection/BAInjection.h
  41. +29 −0 Sources/Batch/Kernel/Dependency Injection/BAInjection.swift
  42. +19 −3 Sources/Batch/Kernel/Dependency Injection/Private/BAInjectionRegistrar.m
  43. +44 −0 Sources/Batch/Kernel/Foundation/BATRegularExpression.swift
  44. +49 −0 Sources/Batch/Kernel/Foundation/BATSDKError.swift
  45. +0 −113 Sources/Batch/Kernel/Helpers/BADelegatedApplicationDelegate.m
  46. +0 −24 Sources/Batch/Kernel/Helpers/BAEmailUtils.h
  47. +0 −28 Sources/Batch/Kernel/Helpers/BAEmailUtils.m
  48. +0 −25 Sources/Batch/Kernel/Helpers/BAPartialApplicationDelegate.h
  49. +2 −2 Sources/Batch/Kernel/Helpers/BATJsonDictionary.h
  50. +2 −2 Sources/Batch/Kernel/Helpers/BAWindowHelper.h
  51. +17 −9 Sources/Batch/Kernel/Helpers/BAWindowHelper.m
  52. +7 −7 Sources/Batch/Kernel/Logger/BALogger.m
  53. +5 −1 Sources/Batch/Kernel/Logger/BALoggerProtocol.h
  54. +14 −3 Sources/Batch/Kernel/Logger/BALoggerUnified.m
  55. +0 −15 Sources/Batch/Kernel/Parameters/BANetworkParameters.h
  56. +0 −84 Sources/Batch/Kernel/Parameters/BANetworkParameters.m
  57. +2 −2 Sources/Batch/Kernel/Parameters/BAParameter.h
  58. +10 −67 Sources/Batch/Kernel/Parameters/BAPropertiesCenter.m
  59. +0 −16 Sources/Batch/Kernel/Parameters/BAUserDefaults.h
  60. +0 −15 Sources/Batch/Kernel/Parameters/BAUserDefaults.m
  61. +11 −10 Sources/Batch/Modules/Actions/BAActionsCenter.m
  62. +9 −6 Sources/Batch/Modules/Actions/BAUserDataBuiltinActions.m
  63. +20 −11 Sources/Batch/Modules/Actions/BAUserEventBuiltinActions.m
  64. +15 −25 Sources/Batch/Modules/Core/BAApplicationLifecycle.m
  65. +0 −37 Sources/Batch/Modules/Core/BACenterMulticastDelegate.h
  66. +3 −45 Sources/Batch/Modules/Core/BACenterMulticastDelegate.m
  67. +12 −35 Sources/Batch/Modules/Core/BAConfiguration.h
  68. +8 −43 Sources/Batch/Modules/Core/BAConfiguration.m
  69. +0 −46 Sources/Batch/Modules/Core/BACoreCenter.h
  70. +92 −123 Sources/Batch/Modules/Core/BACoreCenter.m
  71. +0 −8 Sources/Batch/Modules/Core/BANotificationAuthorization.h
  72. +1 −24 Sources/Batch/Modules/Core/BANotificationAuthorization.m
  73. +0 −3 Sources/Batch/Modules/Core/BAStatus.m
  74. +13 −0 Sources/Batch/Modules/Core/BATInternalEvents.swift
  75. +0 −44 Sources/Batch/Modules/Core/BATrackingAuthorization.h
  76. +0 −200 Sources/Batch/Modules/Core/BATrackingAuthorization.m
  77. +0 −6 Sources/Batch/Modules/Core/BAUserProfile.h
  78. +0 −25 Sources/Batch/Modules/Core/BAUserProfile.m
  79. +140 −0 Sources/Batch/Modules/Data Collection/BATDataCollectionCenter.swift
  80. +199 −0 Sources/Batch/Modules/Data Collection/BATSystemParameter.swift
  81. +31 −0 Sources/Batch/Modules/Data Collection/DataCollectionUtils.swift
  82. +4 −1 Sources/Batch/Modules/Inbox/BAInbox.m
  83. +2 −2 Sources/Batch/Modules/Local Campaigns/BALocalCampaignsCenter.h
  84. +14 −3 Sources/Batch/Modules/Local Campaigns/BALocalCampaignsCenter.m
  85. +1 −0 Sources/Batch/Modules/Local Campaigns/BALocalCampaignsManager.m
  86. +3 −3 Sources/Batch/Modules/Local Campaigns/Signals/BAPublicEventTrackedSignal.h
  87. +4 −2 Sources/Batch/Modules/Local Campaigns/Signals/BAPublicEventTrackedSignal.m
  88. +1 −5 Sources/Batch/Modules/Messaging/BAMSGImageDownloader.m
  89. +1 −0 Sources/Batch/Modules/Messaging/BAMSGPayloadParser.m
  90. +3 −1 Sources/Batch/Modules/Messaging/BAMessagingCenter.h
  91. +31 −38 Sources/Batch/Modules/Messaging/BAMessagingCenter.m
  92. +87 −0 Sources/Batch/Modules/Messaging/FeedbackGenerators.swift
  93. +1 −1 Sources/Batch/Modules/Messaging/GIF/BATGIFFile.h
  94. +69 −105 Sources/Batch/Modules/Messaging/UI/BAMSGBaseBannerViewController.m
  95. +21 −16 Sources/Batch/Modules/Messaging/UI/BAMSGImageViewController.m
  96. +69 −76 Sources/Batch/Modules/Messaging/UI/BAMSGInterstitialViewController.m
  97. +1 −2 Sources/Batch/Modules/Messaging/UI/BAMSGStackViewItem.h
  98. +2 −2 Sources/Batch/Modules/Messaging/UI/BAMSGVideoView.h
  99. +4 −0 Sources/Batch/Modules/Messaging/UI/BAMSGVideoView.m
  100. +11 −12 Sources/Batch/Modules/Messaging/UI/BAMSGViewController.m
  101. +36 −51 Sources/Batch/Modules/Messaging/UI/BAMSGWebviewViewController.m
  102. +0 −3 Sources/Batch/Modules/Messaging/Webview/BATWebviewJavascriptBridge.h
  103. +1 −20 Sources/Batch/Modules/Messaging/Webview/BATWebviewJavascriptBridge.m
  104. +8 −20 Sources/Batch/Modules/Messaging/Widgets/BAMSGActivityIndicatorView.m
  105. +1 −3 Sources/Batch/Modules/Messaging/Widgets/BAMSGImageView.m
  106. +3 −2 Sources/Batch/Modules/Messaging/Widgets/BAMSGPannableAlertContainerView.m
  107. +9 −2 Sources/Batch/Modules/Messaging/Widgets/BAMSGPannableAnchoredContainerView.m
  108. +2 −1 Sources/Batch/Modules/Messaging/Widgets/BAMSGRemoteImageView.m
  109. +1 −2 Sources/Batch/Modules/Messaging/Widgets/BAMSGStylableView.h
  110. +34 −38 Sources/Batch/Modules/Messaging/Widgets/BAMSGViewToolbox.m
  111. +0 −5 Sources/Batch/Modules/Opt Out/BAOptOut.m
  112. +224 −0 Sources/Batch/Modules/Profile/BAProfileCenter.swift
  113. +82 −0 Sources/Batch/Modules/Profile/BATEventAttributesSerializer.swift
  114. +348 −0 Sources/Batch/Modules/Profile/BATEventAttributesValidator.swift
  115. +59 −0 Sources/Batch/Modules/Profile/BATProfileDataValidators.swift
  116. +523 −0 Sources/Batch/Modules/Profile/BATProfileEditor.swift
  117. +78 −0 Sources/Batch/Modules/Profile/BATProfileInstallDataCompatibility.swift
  118. +99 −0 Sources/Batch/Modules/Profile/BATProfileOperationsSerializer.swift
  119. +15 −0 Sources/Batch/Modules/Profile/BatchProfileError+Init.swift
  120. +6 −61 Sources/Batch/Modules/Push/BAPushCenter.h
  121. +17 −146 Sources/Batch/Modules/Push/BAPushCenter.m
  122. +22 −183 Sources/Batch/Modules/Push/BAPushSystemHelper.m
  123. +4 −6 Sources/Batch/Modules/Push/BAPushSystemHelperProtocol.h
  124. +5 −0 Sources/Batch/Modules/Tracker/BAEvent.m
  125. +3 −6 Sources/Batch/Modules/Tracker/BAEventSQLiteDatasource.m
  126. +31 −0 Sources/Batch/Modules/Tracker/BATEventTrackerProtocol.swift
  127. +0 −45 Sources/Batch/Modules/Tracker/BATrackerCenter.h
  128. +109 −127 Sources/Batch/Modules/Tracker/BATrackerCenter.m
  129. +0 −5 Sources/Batch/Modules/Tracker/BATrackerSender.m
  130. +18 −8 Sources/Batch/Modules/User/{BAUserDataEditor.h → BAInstallDataEditor.h}
  131. +50 −184 Sources/Batch/Modules/User/{BAUserDataEditor.m → BAInstallDataEditor.m}
  132. +13 −5 Sources/Batch/Modules/User/BAUserDataManager.h
  133. +46 −7 Sources/Batch/Modules/User/BAUserDataManager.m
  134. +0 −29 Sources/Batch/Modules/User/BAUserEmailSubscription.h
  135. +0 −108 Sources/Batch/Modules/User/BAUserEmailSubscription.m
  136. +82 −0 Sources/Batch/PrivacyInfo.xcprivacy
  137. +2 −9 Sources/Batch/PrivateUmbrellaHeader.h
  138. +2 −2 Sources/Batch/Versions.h
  139. +0 −68 Sources/Batch/Webservices/BAWebserviceMetrics.h
  140. +0 −109 Sources/Batch/Webservices/BAWebserviceMetrics.m
  141. +1 −1 Sources/Batch/Webservices/Core/BAConnection.h
  142. +1 −5 Sources/Batch/Webservices/Core/BAURLSession.m
  143. +1 −0 Sources/Batch/Webservices/Core/BAWebserviceMsgPackClient.m
  144. +0 −5 Sources/Batch/Webservices/MsgPack Services implementations/BALocalCampaignsJITService.m
  145. +24 −0 Sources/Batch/Webservices/Query Services Implementations/BAUserDataServices.m
  146. +6 −0 Sources/Batch/Webservices/Query Services Implementations/Response Models/BAWSResponseAttributes.h
  147. +4 −0 Sources/Batch/Webservices/Query Services Implementations/Response Models/BAWSResponseAttributes.m
  148. +6 −0 ...es/Batch/Webservices/Query Services Implementations/Response Models/BAWSResponseAttributesCheck.h
  149. +4 −0 ...es/Batch/Webservices/Query Services Implementations/Response Models/BAWSResponseAttributesCheck.m
  150. +0 −30 Sources/Batch/Webservices/Query/BAQueryWebserviceClient.m
  151. +3 −1 Sources/Batch/Webservices/Query/BAQueryWebserviceClientDelegate.h
  152. +2 −46 Sources/Batch/Webservices/Query/BAStandardQueryWebserviceIdentifiersProvider.m
  153. +4 −2 Sources/batchTests/Kernel/Crypto/batchAESTests.m
  154. +1 −1 Sources/batchTests/Kernel/GZip/gzipTests.m
  155. +0 −28 Sources/batchTests/Kernel/Helpers/emailTests.swift
  156. +3 −71 Sources/batchTests/Kernel/Helpers/swizzlingTests.m
  157. +2 −2 Sources/batchTests/Kernel/Logger/internalLoggerTests.swift
  158. +36 −0 Sources/batchTests/Mocks/BatchUserDataEditorMock.swift
  159. 0 Sources/batchTests/{Stubs → Mocks}/DeeplinkDelegateStub.h
  160. 0 Sources/batchTests/{Stubs → Mocks}/DeeplinkDelegateStub.m
  161. +72 −0 Sources/batchTests/Mocks/EventTrackerMock.swift
  162. +69 −83 Sources/batchTests/Modules/Actions/builtinActionsTest.m
  163. +0 −51 Sources/batchTests/Modules/Core/batchConfigurationTests.m
  164. +5 −0 Sources/batchTests/Modules/Core/batchCoreCenterTests.m
  165. +10 −8 Sources/batchTests/Modules/Core/batchOptOutTests.m
  166. +0 −232 Sources/batchTests/Modules/Core/batchUserProfileTests.m
  167. +119 −0 Sources/batchTests/Modules/Data Collection/dataCollectionCenterTests.swift
  168. +1 −1 Sources/batchTests/Modules/Inbox/inboxFetcherTests.swift
  169. +2 −12 Sources/batchTests/Modules/Inbox/inboxNotificationContentTests.m
  170. +9 −3 Sources/batchTests/Modules/Messaging/Webview/webviewBridgeLegacyTests.swift
  171. +1 −14 Sources/batchTests/Modules/Messaging/Webview/webviewJavascriptBridgeTests.swift
  172. +1 −1 Sources/batchTests/Modules/Messaging/Webview/webviewTestHelpers.swift
  173. +30 −0 Sources/batchTests/Modules/Profile/TestProfileCenter.swift
  174. +18 −0 Sources/batchTests/Modules/Profile/TestProfileEditor.swift
  175. +92 −0 Sources/batchTests/Modules/Profile/eventDataSerializerTests.swift
  176. +212 −0 Sources/batchTests/Modules/Profile/eventDataValidatorTests.swift
  177. +72 −0 Sources/batchTests/Modules/Profile/profileEditorCompatibilityTest.m
  178. +75 −0 Sources/batchTests/Modules/Profile/profileEditorValidationTests.swift
  179. +97 −0 Sources/batchTests/Modules/Profile/profileIdentifyTests.swift
  180. +139 −0 Sources/batchTests/Modules/Profile/profileMigrationTests.swift
  181. +151 −0 Sources/batchTests/Modules/Profile/profileOperationsSerializerTests.swift
  182. +12 −11 Sources/batchTests/Modules/Push/batchUNUserNotificationCenterDelegateTests.m
  183. +60 −0 Sources/batchTests/Modules/Push/pushAuthorizationTests.swift
  184. +23 −7 Sources/batchTests/Modules/Tracker/batchEventSQLiteDatasourceTests.m
  185. +0 −91 Sources/batchTests/Modules/User/batchUserEditorPublicAPITests.m
  186. +0 −92 Sources/batchTests/Modules/User/batchUserEmailSubscriptionTests.m
  187. +15 −9 Sources/batchTests/Modules/User/batchUserTests.m
  188. +24 −0 Sources/batchTests/Modules/User/userDataManagerTests.swift
  189. +11 −120 Sources/batchTests/Modules/batchUserDataEditorTests.swift
  190. +110 −0 Sources/batchTests/Modules/mockUserDatasource.swift
  191. +4 −2 Sources/batchTests/Webservices/Crypto/webserviceAESGCMCryptorTests.m
  192. +31 −0 Sources/batchTests/XCTest+Injection.swift
  193. +42 −0 Sources/batchTests/XCTest+Threading.swift
  194. +6 −15 Sources/batchTests/batchCoreTests.m
  195. +60 −0 Sources/batchTests/batchEventAttributesTests.swift
  196. +0 −183 Sources/batchTests/batchEventDataTests.swift
  197. +12 −23 Sources/batchTests/deeplinkDelegateTests.m
  198. +1 −1 Sources/bridgy.config.json
  199. +8 −4 Tools/Dockerfile.format
  200. +2 −2 Tools/Package.resolved
  201. +3 −1 Tools/Package.swift
  202. +5 −1 Tools/Scripts/format-check.sh
  203. +5 −1 Tools/Scripts/format.sh
  204. +191 −0 Tools/Scripts/gen_objc_api_from_objc_framework.sh
  205. +4 −4 Tools/Scripts/strip_public_swift_framework.sh
  206. BIN Tools/XcodeTemplates/Batch Unit Test Case Class.xctemplate/TemplateIcon-1016.png
  207. BIN Tools/XcodeTemplates/Batch Unit Test Case Class.xctemplate/TemplateIcon-1016@2x.png
  208. +87 −0 Tools/XcodeTemplates/Batch Unit Test Case Class.xctemplate/TemplateInfo.plist
  209. +21 −0 Tools/XcodeTemplates/Batch Unit Test Case Class.xctemplate/XCTestCaseSwift/___FILEBASENAME___.swift
12 changes: 6 additions & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -20,24 +20,24 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-12
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v4
- name: Build DocC
run: |
# Build DocArchive
cd Sources && xcodebuild docbuild CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED="NO"
cd Sources && xcodebuild docbuild -scheme Batch -derivedDataPath ./BatchBuild
# Transform for static hosting
`xcrun -find docc` process-archive transform-for-static-hosting build/Release-iphoneos/Batch.doccarchive --hosting-base-path Batch-iOS-SDK --output-path ../docs
`xcrun -find docc` process-archive transform-for-static-hosting ./BatchBuild/Build/Products/Debug-maccatalyst/Batch.doccarchive --hosting-base-path Batch-iOS-SDK --output-path ../docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "Batch",
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-1.20.0.zip",
checksum: "90c5ed03fab1c1708f54eb6eaa8180962e14659cc76fe0bd7f561273818eec94"
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-2.1.0.zip",
checksum: "7e91b40df3e2ce23ebf3b3589771770a9038042a8ccda6785be25e6b9c60307f"
)
]
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ The Batch iOS SDK allows you to build meaningful communication experience in you
Our [📕 setup documentation](https://doc.batch.com/ios/prerequisites) details the steps to take for an easy and successful integration.

# Prerequisites
The Batch iOS SDK requires Xcode 12 and iOS 10.0 or higher.
The Batch iOS SDK requires Xcode 15.3 and iOS 13.0 or higher.

# Documentation
- [Setup guide](https://doc.batch.com/ios/prerequisites): start your implementation here!
Loading