Skip to content

netease-im/nimsdk-spm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

NIMSDK SPM

Swift Package Manager distribution repo for NIM iOS SDK.

Installing

Xcode

  1. Open your project in Xcode.
  2. Go to File -> Add Package Dependencies...
  3. Enter:
https://github.com/netease-im/nimsdk-spm.git
  1. Select a version rule (recommended: Up to Next Major).
  2. Choose product(s) you need.

Package.swift

// swift-tools-version:5.7
import PackageDescription

let package = Package(
    name: "YourApp",
    dependencies: [
        .package(url: "https://github.com/netease-im/nimsdk-spm.git", from: "10.9.76")
    ],
    targets: [
        .target(
            name: "YourApp",
            dependencies: [
                .product(name: "NIMSDK", package: "nimsdk-spm")
            ]
        )
    ]
)

Available products in this package:

  • NIMSDK
  • NOS
  • FCS
  • BASE
  • QChat

Versioning

  • SPM tags should map to released SDK versions.
  • Binary URLs and SHA-256 checksums are stored in Package.swift.
  • nimsdk-spm and nimsdk-lite-spm should not be integrated together in one app.

Security

SwiftPM verifies each binary target with the SHA-256 checksum declared in Package.swift. If a downloaded binary does not match the checksum, integration fails.

About

swift package manager

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages