Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👩‍👦
Family first then OSS

Josh Holtz joshdholtz

👨‍👩‍👦
Family first then OSS
View GitHub Profile
@joshdholtz
joshdholtz / ATinySampleApp.swift
Last active Jun 26, 2022
Super basic SwiftUI app (70 lines of code) with paywall using RevenueCat
View ATinySampleApp.swift
import SwiftUI
import RevenueCat
struct Constants {
static let apiKey = "<your_api_key>" // Will look like: appl_bunchofotherstuffhere
static let entitlementName = "<your_entitlement_name>" // I use something like "pro"
}
@main
struct ATinySampleApp: App {
@joshdholtz
joshdholtz / .env.secret.SAMPLE
Created Apr 1, 2022
Fastfile for building and updating for Sparkle
View .env.secret.SAMPLE
# GitHub
FL_GITHUB_API_TOKEN=
FL_GITHUB_RELEASE_API_TOKEN=
APP_STORE_CONNECT_API_KEY_ISSUER_ID=
APP_STORE_CONNECT_API_KEY_KEY_ID=
APP_STORE_CONNECT_API_KEY_KEY_FILEPATH=fastlane/YOUR.p8
FL_NOTARIZE_BUNDLE_ID=
FL_NOTARIZE_ASC_PROVIDER=
@joshdholtz
joshdholtz / Fastfile
Created Jan 19, 2022
Get all change logs
View Fastfile
lane :whats_news do
require 'fastlane'
require 'spaceship'
email = "<YOUR EMAIL>"
team_name = "<YOUR TEAM NAME>"
bundle_id = "<YOUR BUNDLE ID>"
locales = ["en-US"]
Spaceship::ConnectAPI::Client.login(email, team_name: team_name)
@joshdholtz
joshdholtz / .zshrc
Created Oct 27, 2021
Josh's M1 Mac Development Environment - homebrew, zsh
View .zshrc
# ~/.zshrc
ZSH_DISABLE_COMPFIX=true
export ZSH="/Users/joshholtz/.oh-my-zsh"
# joshdholtz theme shows arch type in the prompt
ZSH_THEME="joshdholtz"
plugins=(git)
source $ZSH/oh-my-zsh.sh
# M1 and Rosetta
@joshdholtz
joshdholtz / Fastfile
Created Jul 31, 2021
Fastfile - build, manage provisioning and version/build numbers, and upload to App Store Connect
View Fastfile
lane :build_and_upload do
# Build by allowing provisioning updates, auto version and build number management,
# and uploading directly to App Store Connect
#
# Requires: signed in with Apple ID in Xcode
# Radar for using App Store Connect API Key: FB9145847
gym(
xcargs: "-allowProvisioningUpdates",
export_options: {
"destination": "upload",
@joshdholtz
joshdholtz / Indie Dev Monday.js
Created May 9, 2021
Official Indie Dev Monday Widget For Scriptable
View Indie Dev Monday.js
/*
* This is the offical Scriptable widget for Indie Dev Monday
*
* Indie Dev Monday (https://indiedevmonday.com) is a weekly newsletter
* spotlighting indie developers
*
* This script includes:
*
* Latest issue widget (no parameter)
* - shows latest issue
View joshdholtz_otter_feeds.opml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<opml version="2.0">
<body>
<outline title="Apps and Products">
<outline text="The GitHub Blog" title="The GitHub Blog" xmlUrl="https://github.blog/feed/" />
<outline text="Engineering the American way" title="Engineering the American way" xmlUrl="https://tech.aa.com/index.xml" />
<outline text="Burpee Hero" title="Burpee Hero" xmlUrl="https://burpeehero.com/feed.xml" />
</outline>
<outline title="Other Dev">
<outline text="Dancing Monkeys" title="Dancing Monkeys" xmlUrl="https://dancingmonkeys.substack.com/feed" />
View joshdholtz_otter_feeds.opml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<opml version="2.0">
<body>
<outline title="Apps and Products">
<outline text="The GitHub Blog" title="The GitHub Blog" xmlUrl="https://github.blog/feed/" />
<outline text="Burpee Hero" title="Burpee Hero" xmlUrl="https://burpeehero.com/feed.xml" />
</outline>
<outline title="iOS Dev">
<outline text="steipete’s blog" title="steipete’s blog" xmlUrl="https://steipete.me/feed.xml" />
<outline text="iOS Goodies" title="iOS Goodies" xmlUrl="https://ios-goodies.com/rss" />
View joshdholtz_otter_feeds.opml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<opml version="2.0">
<body>
<outline title="Apps and Products">
<outline text="The GitHub Blog" title="The GitHub Blog" xmlUrl="https://github.blog/feed/" />
<outline text="Burpee Hero" title="Burpee Hero" xmlUrl="https://burpeehero.com/feed.xml" />
</outline>
<outline title="iOS Dev">
<outline text="steipete’s blog" title="steipete’s blog" xmlUrl="https://steipete.me/feed.xml" />
<outline text="iOS Goodies" title="iOS Goodies" xmlUrl="https://ios-goodies.com/rss" />
View joshdholtz_otter_feeds.opml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<opml version="2.0">
<body>
<outline title="Apps and Products">
<outline text="The GitHub Blog" title="The GitHub Blog" xmlUrl="https://github.blog/feed/" />
<outline text="Burpee Hero" title="Burpee Hero" xmlUrl="https://burpeehero.com/feed.xml" />
</outline>
<outline title="iOS Dev">
<outline text="steipete’s blog" title="steipete’s blog" xmlUrl="https://steipete.me/feed.xml" />
<outline text="iOS Goodies" title="iOS Goodies" xmlUrl="https://ios-goodies.com/rss" />