Skip to content

Commit 6a79b0e

Browse files
committed
Prepare for release 3.6.0
1 parent 0c29ca6 commit 6a79b0e

8 files changed

+80
-11
lines changed

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 3.6.0
2+
3+
#### Breaking
4+
- Updated to [Braze iOS SDK 3.31.0](https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#3310).
5+
6+
#### Added
7+
- Adds initial support for Swift Package Manager.
8+
- Two new packages were added:
9+
- `Full-SDK`, which contains the full SDK (including UI elements) and corresponds to the `Full-SDK` pod.
10+
- `Core`, which contains the core Braze functionality and corresponds to the `Core` pod.
11+
- Note that tvOS support is not available via Swift Package Manager for this release.
12+
- To add the package to your project follow these steps:
13+
- Select `File > Swift Packages > Add Package Dependency`.
14+
- In the search bar, enter https://github.com/Appboy/segment-ios.
15+
- Select `Full-SDK` or `Core`, depending on your use case.
16+
- In your app's target, under `Build Settings > Other Linker Flags`, add the `-ObjC` linker flag.
17+
- In the Xcode menu, click `Product > Scheme > Edit Scheme...`
18+
- Click the expand ▶️ next to `Build` and select `Post-actions`. Press `+` and select `New Run Script Action`.
19+
- In the dropdown next to `Provide build settings from`, select your app's target.
20+
- Copy this script into the open field:
21+
```
22+
bash "$BUILT_PRODUCTS_DIR/Appboy_iOS_SDK_AppboyKit.bundle/Appboy.bundle/appboy-spm-cleanup.sh"
23+
```
24+
- Note that when importing the `Full-SDK`, you need to use an underscore (`import Full_SDK`).
25+
126
## 3.5.0
227
328
##### Breaking

Package.swift

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// swift-tools-version:5.3
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "Segment-Appboy",
6+
defaultLocalization: "en",
7+
platforms: [
8+
.iOS(.v12)
9+
],
10+
products: [
11+
.library(name: "Full-SDK", targets: ["Full-SDK"]),
12+
.library(name: "Core", targets: ["Core"])
13+
],
14+
dependencies: [
15+
.package(name: "Segment", url: "https://github.com/segmentio/analytics-ios.git", from: "4.1.1"),
16+
.package(name: "Appboy_iOS_SDK", url: "https://github.com/Appboy/appboy-ios-sdk.git", from: "3.31.0"),
17+
],
18+
targets: [
19+
.target(
20+
name: "Full-SDK",
21+
dependencies: [
22+
.product(name: "Segment", package: "Segment"),
23+
.product(name: "AppboyUI", package: "Appboy_iOS_SDK"),
24+
],
25+
publicHeadersPath: ".",
26+
cSettings: [
27+
.headerSearchPath(".")
28+
]
29+
),
30+
.target(
31+
name: "Core",
32+
dependencies: [
33+
.product(name: "Segment", package: "Segment"),
34+
.product(name: "AppboyKit", package: "Appboy_iOS_SDK"),
35+
],
36+
publicHeadersPath: ".",
37+
cSettings: [
38+
.headerSearchPath(".")
39+
]
40+
)
41+
]
42+
)

Pod/Classes/SEGAppboyIntegration.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#import "Appboy-iOS-SDK/ABKUser.h"
99
#import "Appboy-iOS-SDK/ABKAttributionData.h"
1010
#endif
11-
#if __has_include(<Segment/SEGIntegration.h>)
11+
#if __has_include(<Segment/SEGAnalyticsUtils.h>)
1212
#import <Segment/SEGAnalyticsUtils.h>
13-
#elif __has_include(<Analytics/SEGIntegration.h>)
13+
#elif __has_include(<Analytics/SEGAnalyticsUtils.h>)
1414
#import <Analytics/SEGAnalyticsUtils.h>
1515
#endif
1616
#import "SEGAppboyIntegrationFactory.h"

Pod/Classes/SEGAppboyIntegrationFactory.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import <Foundation/Foundation.h>
2-
#if __has_include(<Segment/SEGIntegration.h>)
2+
#if __has_include(<Segment/SEGIntegrationFactory.h>)
33
#import <Segment/SEGIntegrationFactory.h>
4-
#elif __has_include(<Analytics/SEGIntegration.h>)
4+
#elif __has_include(<Analytics/SEGIntegrationFactory.h>)
55
#import <Analytics/SEGIntegrationFactory.h>
66
#endif
77
#import "SEGAppboyHelper.h"

Segment-Appboy.podspec

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Segment-Appboy"
3-
s.version = "3.5.0"
3+
s.version = "3.6.0"
44
s.summary = "Braze Integration for Segment's analytics-ios library."
55

66
s.description = <<-DESC
@@ -26,27 +26,27 @@ Pod::Spec.new do |s|
2626
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
2727

2828
s.subspec 'Full-SDK' do |default|
29-
default.dependency 'Appboy-iOS-SDK', '~>3.29.0'
29+
default.dependency 'Appboy-iOS-SDK', '~>3.31.0'
3030
default.source_files = 'Pod/Classes/**/*'
3131
end
3232

3333
s.subspec 'Core' do |core|
34-
core.dependency 'Appboy-iOS-SDK/Core', '~>3.29.0'
34+
core.dependency 'Appboy-iOS-SDK/Core', '~>3.31.0'
3535
core.source_files = 'Pod/Classes/**/*'
3636
end
3737

3838
s.subspec 'InAppMessage' do |iam|
39-
iam.dependency 'Appboy-iOS-SDK/InAppMessage', '~>3.29.0'
39+
iam.dependency 'Appboy-iOS-SDK/InAppMessage', '~>3.31.0'
4040
iam.source_files = 'Pod/Classes/**/*'
4141
end
4242

4343
s.subspec 'NewsFeed' do |nf|
44-
nf.dependency 'Appboy-iOS-SDK/NewsFeed', '~>3.29.0'
44+
nf.dependency 'Appboy-iOS-SDK/NewsFeed', '~>3.31.0'
4545
nf.source_files = 'Pod/Classes/**/*'
4646
end
4747

4848
s.subspec 'ContentCards' do |cc|
49-
cc.dependency 'Appboy-iOS-SDK/ContentCards', '~>3.29.0'
49+
cc.dependency 'Appboy-iOS-SDK/ContentCards', '~>3.31.0'
5050
cc.source_files = 'Pod/Classes/**/*'
5151
end
5252

Segment_Appboy.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "3.5.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.5.0/Segment_Appboy.framework.zip", "3.4.1": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.1/Segment_Appboy.framework.zip", "3.4.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.0/Segment_Appboy.framework.zip", "3.3.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.3.0/Segment_Appboy.framework.zip", "3.2.0" : "https://github.com/Appboy/appboy-segment-ios/releases/download/3.2.0/Segment_Appboy.framework.zip"}
1+
{ "3.6.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.6.0/Segment_Appboy.framework.zip", "3.5.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.5.0/Segment_Appboy.framework.zip", "3.4.1": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.1/Segment_Appboy.framework.zip", "3.4.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.4.0/Segment_Appboy.framework.zip", "3.3.0": "https://github.com/Appboy/appboy-segment-ios/releases/download/3.3.0/Segment_Appboy.framework.zip", "3.2.0" : "https://github.com/Appboy/appboy-segment-ios/releases/download/3.2.0/Segment_Appboy.framework.zip"}

Sources/Core

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Pod/Classes/

Sources/Full-SDK

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Pod/Classes/

0 commit comments

Comments
 (0)