mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-14 08:49:01 +00:00
spm support
This commit is contained in:
@@ -463,7 +463,9 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
|
||||
}
|
||||
|
||||
open func onLinkPressed(url: URL) {
|
||||
UIApplication.shared.openURL(url)
|
||||
if UIApplication.shared.canOpenURL(url) {
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
}
|
||||
|
||||
open func playSound(_ systemSoundId: SystemSoundID) {
|
||||
|
||||
24
Package.swift
Normal file
24
Package.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
// swift-tools-version: 5.9
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "OnlineChatSdk",
|
||||
platforms: [.iOS(.v12)],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: "OnlineChatSdk",
|
||||
targets: ["OnlineChatSdk"]),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
// Targets can depend on other targets in this package and products from dependencies.
|
||||
.target(
|
||||
name: "OnlineChatSdk",
|
||||
path: "OnlineChatSdk",
|
||||
sources: ["Classes"]
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user