Skip to content

Instantly share code, notes, and snippets.

@bulwinkel
bulwinkel / README_APPCENTER_SCRIPTS.md
Last active October 8, 2018 03:38
Hydric AppCenter Scripts: Post to slack for iOS

Hydric AppCenter Scripts for iOS

Currently these scripts post to slack when:

  • a build starts
  • a build finishes successfully

Usage Instructions

  1. Create an incoming webhook for the channel you would like these scripts to post to.
  2. Download and extract all the files from this gist into the root directory of your iOS project.
    If you have 'jq' installed (brew install jq) you can do this step with the following command from the root directory of your project:
    curl --silent "https://gist.github.com/bulwinkel/b1c371d447df071b90fe6e331d8b7d98/archive/$(http https://api.github.com/gists/b1c371d447df071b90fe6e331d8b7d98/commits | jq -r '.[0].version').zip" | tar --strip-components=1 -xf - -C .
@bulwinkel
bulwinkel / set-version-from-git.sh
Created October 9, 2018 00:42
iOS Git Versioning
#!/usr/bin/env bash
# set-version-from-git.sh
# Usage: `set-version-from-git.sh [branch]`
# Run this script after the 'Copy Bundle Resources' build phase
# Ref: http://tgoode.com/2014/06/05/sensible-way-increment-bundle-version-cfbundleversion-xcode/
# Sets the build and version numbers in the compiled app bundle so it doesn't
# modify your version controlled info.plist
branch=${1:-'master'}
@bulwinkel
bulwinkel / main.dart
Created February 8, 2022 02:02
Row with spacer
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override