Skip to content

Commit

Permalink
update url and add Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
hokstuff committed Feb 8, 2021
1 parent 6a58971 commit ba590fb
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "Appboy_iOS_SDK",
defaultLocalization: "en",
platforms: [
.iOS(.v9)
],
products: [
.library(name: "AppboyKit", type: .static, targets: ["AppboyKit"]),
.library(name: "AppboyUI", targets: ["AppboyUI"]),
.library(name: "AppboyPushStory", targets: ["AppboyPushStory"])
],
dependencies: [
.package(name: "SDWebImage", url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.8.2")
],
targets: [
.binaryTarget(
name: "AppboyKitLibrary",
url: "https://github.com/hokstuff/braze-ios-sdk-lite/releases/download/3.32.0/AppboyKitLibrary.xcframework.zip",
checksum: "372a625fd5b23afbc727587c37d69745b7984c010115731ec0bed5c430375961"
),
.target(
name: "AppboyKit",
dependencies: ["SDWebImage", "AppboyKitLibrary"],
path: "AppboyKit",
resources: [
.process("Appboy.bundle"),
.process("headers/AppboyKitLibrary/ZipArchive_LICENSE.txt")
],
publicHeadersPath: "headers/AppboyKitLibrary",
linkerSettings: [
.linkedFramework("SystemConfiguration"),
.linkedFramework("QuartzCore"),
.linkedFramework("CoreImage"),
.linkedFramework("CoreText"),
.linkedFramework("WebKit"),
.linkedFramework("UserNotifications"),
.linkedFramework("StoreKit"),
.linkedFramework("CoreTelephony", .when(platforms: [.iOS])),
.linkedLibrary("z"),
]
),
.target(
name: "AppboyUI",
dependencies: ["AppboyKit"],
path: "AppboyUI",
resources: [
.process("ABKNewsFeed/Resources"),
.process("ABKInAppMessage/Resources"),
.process("ABKContentCards/Resources")
],
publicHeadersPath: "include/AppboyUI"
),
.binaryTarget(
name: "AppboyPushStory",
url: "https://github.com/hokstuff/braze-ios-sdk-lite/releases/download/3.32.0/AppboyPushStory.xcframework.zip",
checksum: "608247ea566392ce189b7c72d1236bfd86f1dec8b2a3c4c18a6844f406aa7f87"
)
]
)

0 comments on commit ba590fb

Please sign in to comment.