Swiftpack.co -  vapor/console-kit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
vapor/console-kit
💻 APIs for creating interactive CLI tools.
.package(url: "https://github.com/vapor/console-kit.git", from: "4.2.7")

ConsoleKit

Docs Team Chat MIT License Continuous Integration Swift 5.2

GitHub

link
Stars: 295
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Dependencies

Release Notes

[android] support `Android` platform.
5 weeks ago
This patch was authored by @Guang1234567 and released by @gwynne.

Hello dev:

Just support android, thanks.

Usage:

#!/usr/bin/env bash

export ANDROID_HOME=$HOME/dev_kit/sdk/android_sdk
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.4.7075529
export ANDROID_NDK=$ANDROID_NDK_HOME
export NDK_ROOT=$ANDROID_NDK_HOME
export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
export ANDROID_NDK_PATH=$ANDROID_NDK_HOME
export NDK_TOOLCHAINS=$HOME/dev_kit/sdk/toolchain-wrapper

ALL_IN_ONE_FOLDER=$(dirname $(pwd))

export SWIFT_ANDROID_HOME=$ALL_IN_ONE_FOLDER/swift-android-5.4.2-release-ndk21
export SWIFT_ANDROID_ARCH=aarch64
#export SWIFT_ANDROID_ARCH=armv7
#export SWIFT_ANDROID_ARCH=x86_64
export SWIFT_ANDROID_API=23

cd console-kit

#echo -e "\n\n\nRunning on macOS:\n=======================================\n"
#swift build
#.build/x86_64-apple-macosx/debug/ConsoleKitExample demo --color --frames "⠋,⠙,⠹,⠸,⠼,⠴,⠦,⠧,⠇,⠏"

echo -e "\n\n\nRunning on androidOS:\n=======================================\n"

${SWIFT_ANDROID_HOME}/build-tools/1.9.7-swift5.4/swift-build --configuration debug -Xswiftc -DDEBUG -Xswiftc -g

echo -e "\n\n\nCopy ELF to real android device :\n_______________________________________\n"

adb push .build/aarch64-unknown-linux-android/debug/ConsoleKitExample /data/local/tmp

echo -e "\n\n\nCopy swift runtime SO to real android device :\n_______________________________________\n"

adb push ${SWIFT_ANDROID_HOME}/toolchain/usr/lib/swift/android/aarch64/*.so /data/local/tmp

echo -e "\n\n\nRunning on real android device :\n_______________________________________\n"

adb shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/ConsoleKitExample demo --color --frames "⠋,⠙,⠹,⠸,⠼,⠴,⠦,⠧,⠇,⠏"

cd ..

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics