') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); GitHub - babacros/examples: 📝 A collection of example fastlane setups · GitHub
Skip to content

Repository files navigation

fastlane Logo

fastlane Example Setups

This repository contains a few fastlane example setups that help you getting started.

Acast logotype

🎶 Simple setup, saving tons of time

  • Slack notifications on failed builds or unsuccessful tests
    • Slack notifications are only fired if they're run on our CI
  • Managed provisioning profiles using match
  • Creation of screenshots using snapshot
    • Text and device frames are added to screenshots using frameit
    • Delivered to iTunes Connect using deliver
  • Submission to App Store using gym and deliver

OverviewFastfileAppfileDeliverfileGymfileMatchfileScanfileSnapfileFramefile


Timehop logo

🎶 Traveling in time using fastlane

  • Automatic generation of the changelog
  • Advanced manual key management
  • Printing out random squirrels and boats
  • Table flips

OverviewFastfile


fastlane Logo

👚 Full stack deployment

  • Crashlytics, TestFlight, and App Store distribution
  • Automatic build environment selection
  • Managing of Provisioning Profiles
  • Slack Team notifications
  • Version number bump and Git commit
  • Custom scripts
  • Lane switching with private lanes

OverviewFastfile


Fabric app icon

👚 Standard Setup

  • Deploy updates through Crashlytics Beta
  • Submit to the AppStore with screenshots and metadata
  • Code generation for xib names, identifiers, etc using R.swift

OverviewFastfileSnapfileAppfile


Artsy

💚 Standard Setup

  • Building and Signing of the iOS App
  • Version Bump & Git Actions
  • Hockey Distribution
  • Production Keys

OverviewFastfile


Wikipedia by Wikimedia Foundation

📗 Advanced - Multiple Environments

  • Different Bundle Identifiers per lane
  • Advanced Testing
  • Hockey Deployment
  • App Store and TestFlight Deployment
  • Custom fastlane actions like automatic change-logs based on git

OverviewFastfileDeliverfileAppfileMetadata


SoundCloud

🎵 Standard Setup

  • Deployment to iTunes Connect
  • Building acceptance tests builds with Frank
  • Managing Certificates/Provisioning Profiles
  • CI steps as lanes
  • Project setup

OverviewFastfile


MindNode

💻 Advanced iOS/Mac Setup

  • Mac and iOS Universal App
  • App Store and TestFlight Deployment
  • Automated Screenshots
  • Screenshot Framing & Adding of Titles
  • Copying of example data for screenshots
  • Custom xcodebuild command

OverviewFastfileSnapfileMindNode.jsscreenshotsFramefile.jsonMacScreenshots


ProductHunt Logo

📈 Standard Setup

  • App Store and TestFlight Deployment
  • Managing of Provisioning Profiles
  • Push Notifications
  • Version Bump & Git Actions

OverviewFastfileDeliverfilemetadata


Be My Eyes Logo

👀 Standard Setup

  • App Store and TestFlight Distribution
  • Local action get_global_value
  • Version Bump & Git Actions

OverviewFastfileDeliverfileget_global_value


SunApps

🔧 App Factory

  • Maintain and Deploy hundreds of Apps
  • Automatically create new Apps
  • Create profiles and push certificates
  • Screenshots
  • Remote configuration of Fastfile and snapshot scripts

A description on how the setup works is available in the Overview.

OverviewFastfileDeliverfileSnapfileAppfilesnapshot.js


Touchwondersa

🚲 Shared Fastfile for multiple projects

  • Maintain and Deploy multiple of Apps and Projects
  • Import external Fastfile from external repo
  • Load fastlane configuration YAML file
  • Create/Renew/Download profiles for multiple targets
  • Custom load_release_notes action

A description on how the setup works is available in the Overview.

OverviewFastfileConfiguration file


QuizUp

Advanced - Multiple Environments

  • Deployment to iTunes Connect
  • Deployment to Hockey App
  • Running unit tests
  • Linting with Swiftlint
  • Managing Certificates/Provisioning Profiles
  • CI steps as lanes
  • Project setup
  • Version Bump & Git Actions
  • Slack Notifications
  • Custom action for internal translation tools
  • Custom action for versioning
  • Custom action for selecting changelogs

OverviewFastfile


fastlane Logo

🚀 Creative Uses

  • Deploying fastlane updates using fastlane (so meta)
  • Lane Switching
  • Network Requests
  • Custom Commands
  • Get GitHub Release

OverviewFastfile


fastlane Logo

‼️Dual Platfrom Fastfile, Cordova project

  • Configuration for both iOS and Android in the same Fastfile
  • Saves archives to a common build folder, sorted by date
  • Handles provisioning in a separate lane
  • Includes working configuration for building both iOS and Android native projects
  • Has configuration for CI (Jenkins) to auto release to Hockeyapp, and auto unlock the keychain

OverviewFastfile


Zattoo

📺 Setup for tvOS

  • App Store and Testflight deployments
  • Certificates and Provisioning Profiles management
  • Provision of Localizable strings
  • Deployment of Preview and Promotional releases
  • Unit and UI testing lanes for Travis
  • Linter

OverviewFastfile


Code of Conduct

Help us keep fastlane open and inclusive. Please read and follow our Code of Conduct.

About

📝 A collection of example fastlane setups

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages