flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
597 stars 40 forks source link

Restructure for easier deployment #242

Closed ephemer closed 6 years ago

ephemer commented 6 years ago

Fixes #215

Type of change: Deployment improvement

Motivation

We want to be able to easily distribute UIKit as a module to build existing iOS apps and to easily integrate into existing Android projects. This PR moves us in the right direction for both:

set(UIKit_DIR ../UIKit)
find_package(UIKit REQUIRED)

add_swiftpm_library(MySwiftPackage   # the product name listed in Package.swift
    PROJECT_DIRECTORY ./anAbsoluteOrRelativePath
    PROJECT_DEPENDENCIES UIKit
)