GithubHelp home page GithubHelp logo

arykov / google-mlkit-spm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kientux/google-mlkit-spm

0.0 0.0 0.0 40 KB

Add Swift Package Manager support to Google MLKit

License: MIT License

Shell 29.62% Ruby 6.04% Swift 64.33%

google-mlkit-spm's Introduction

Google MLKit for Swift Package Manager

This repo is used for generate SPM support for Google MLKit lib, which currently is only available on CocoaPods.

Instructions

Auto from GitHub actions:

Just update target-version.txt and push new changes, GitHub action will run and create new release with attached xcframeworks.

View .github/workflows/release.yml for more information.

Manual

Clone repo includes submodule:

$ git clone --recurse-submodules <repo_url>

Install Google MLKit pods (using bundler or global pod)

$ bundle install
$ (cd PodsProject && bundle exec pod install)

Run script to build and create xcframeworks

$ ./scripts/create-xcframeworks.sh

This script will:

  • Build source-based libs then create xcframeworks for them (GoogleToolboxForMac, GoogleUtilitiesComponents, Protobuf)
  • Use xcframework-maker to split prebuilt frameworks to xcframeworks (MLImage, MLKitCommon, MLKitBarcodeScanning,...)
  • Compress xcframeworks as zips and generate SHA256 to use in Package.swift

Create a new release

  • Update Package.swift to change .binaryTarget url paths and checksums
  • Create new release and attach xcframework zips to the release
  • If your git hosting service does not provide release attachments, then you can upload zips somewhere and use those urls instead.

google-mlkit-spm's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.