Skip to content

Instantly share code, notes, and snippets.

View POMBuilds's full-sized avatar

POMBuilds

View GitHub Profile
@POMBuilds
POMBuilds / gist:87fb3466b97fbfba39f6d239a6ffc57d
Created November 17, 2016 18:12
NativeScript 2.4 Dependencies
/usr/local/lib
└─┬ nativescript@2.4.0
├── bluebird@2.9.34
├── bplist-parser@0.1.0
├── bufferpack@0.0.6
├─┬ bufferutil@1.0.1
│ ├── bindings@1.2.1
│ ├── nan@2.4.0
│ └── prebuilt@0.1.0
├── byline@4.2.1

The POSSIBLE Mobile Seaworthy Framework Checklist for Vendors

✔ Provide a sample project that cleanly builds and runs in a simulator and on device with zero issues or warnings.

✔ The sample project and framework do not require third-party tools such as CocoaPods.

✔ The sample project is written in Swift.

✔ The framework is built with the latest non-beta version of Xcode.

@POMBuilds
POMBuilds / release_critical_warnings.sh
Last active April 26, 2016 21:31
Add warnings and errors to xcode swift projects.
#!/usr/bin/env bash
# This work is based on answers in this Stack Overflow thread: http://stackoverflow.com/questions/24183812/swift-warning-equivalent
# Generates build warnings in non-release builds.
if [ "${CONFIGURATION}" != "Release" ]; then
DEBUG_WARNING_TAGS="\/\/ TODO:|\/\/ FIXME:|\/\/ WARNING:|\/\/ CRITICAL:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($DEBUG_WARNING_TAGS).*\$" | perl -p -e "s/($DEBUG_WARNING_TAGS)/ warning: \$1/"
fi
# Generates build errors or warnings in Release