Skip to content

Instantly share code, notes, and snippets.

@TyGuy
TyGuy / ..build-protobuf-3.1.0.md
Last active January 24, 2017 05:26 — forked from petewarden/..build-protobuf-3.0.0.md
Script used to build Google Protobuf 3.1.0 for use with Xcode 7 / iOS 9. Builds all supported architectures and produces a universal binary static library.

Google Protobuf 3.1.0 - Mac OS X and iOS Support

The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simulator.

This gist was adapted from the one at https://gist.github.com/petewarden/c8d172709018780eb069, and updated to deal with Xcode 7 and iOS 9, and download protobuf version 3.1.0.

@TyGuy
TyGuy / app.module.ts
Created April 26, 2017 00:17
Custom Press Directives in Ionic 2
/*
import { Everything } from './everywhere'
... etc.
*/
// import the directives:
import { LongPressDirective } from '../directives/long-press.directive'
import { QuickPressDirective } from '../directives/quick-press.directive'
/*...*/