Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Add Swift Package Manager. #83

Closed
dissesmac opened this issue Mar 5, 2020 · 7 comments
Closed

Add Swift Package Manager. #83

dissesmac opened this issue Mar 5, 2020 · 7 comments

Comments

@dissesmac
Copy link

Хотел бы узнать, о возможности добавления AppMetrica через SPM?

@bamx23
Copy link
Contributor

bamx23 commented Mar 5, 2020

Добрый день! Также обсуждалось в рамках #82
На данный момент поддержка бинарных зависимостей в SPM не до конца реализована, но как только она появится, мы добавим поддержку со своей стороны.

@wacumov
Copy link

wacumov commented Sep 26, 2020

Hi! Now SwiftPM supports binary dependencies, could you please build the framework as an .xcframework file?
Then you can just add Package.swift file with the following content -

// swift-tools-version:5.3
import PackageDescription

let package = Package(
    name: "YandexMobileMetrica",
    products: [
        .library(
            name: "YandexMobileMetrica",
            targets: ["YandexMobileMetrica"]),
    ],
    dependencies: [],
    targets: [
        .binaryTarget(name: "YandexMobileMetrica",
                      url: "https://github.com/yandexmobile/metrica-sdk-ios/releases/download/3.12/YandexMobileMetrica.xcframework.zip",
                      checksum: "THE_CHECKSUM")
    ]
)

@maksymbiriukov
Copy link

Добрый день, также присоединюсь к предыдущему комментарию, SwiftPM уже поддерживает binary dependencies, было бы круто увидеть релиз с этой фичей.

@DSanzh
Copy link

DSanzh commented Oct 11, 2020

Добрый день, аналогично. SPM must have

@dzinad
Copy link

dzinad commented Nov 23, 2020

Поддержка SPM запланирована и войдет в один из ближайших релизов.

@GLinnik21
Copy link
Contributor

SPM был добавлен в последнем релизе

@dissesmac
Copy link
Author

Вот это подарок под НГ!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants