Skip to content

Instantly share code, notes, and snippets.

desc "Build and push a new internal build to TestFlight"
lane :internal_build do
set_internal_build
install_pods()
certificates
increment_build_number(
build_number: ENV['CI_JOB_ID']
desc "Set the app to an internal build"
lane :set_internal_build do
update_info_plist(
xcodeproj: "AppName.xcodeproj",
plist_path: "AppName/Info.plist",
display_name: "AppName Internal"
)
update_app_identifier(
desc 'Fetch certificates and provisioning profiles for internal and external builds'
lane :certificates do
match(app_identifier: 'com.yourco.app', type: 'development', readonly: true)
match(app_identifier: 'com.yourco.app', type: 'appstore', readonly: true)
match(app_identifier: 'com.yourco.app.internal', type: 'development', readonly: true)
match(app_identifier: 'com.yourco.app.internal', type: 'appstore', readonly: true)
end
def install_pods
cocoapods(
@davestarling
davestarling / fastlane_platforms.rb
Created March 26, 2019 11:56
Fastlane Platforms
platform :ios do
# Run any iOS specific parts in here
end
platform :android do
# Run any Android specific parts in here
end
@davestarling
davestarling / fastlane_platforms.rb
Created March 26, 2019 11:55
Fastlane Platforms
platform :ios do
# Run any iOS specific parts in here
end
platform :android do
# Run any Android specific parts in here
end
@davestarling
davestarling / .yml
Last active March 27, 2019 11:19
.gitlab-ci.yml
stages:
- build
variables:
LANG: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
.all_builds_template: &all_builds
stage: build
dependencies: []

Keybase proof

I hereby claim:

  • I am davestarling on github.
  • I am djs (https://keybase.io/djs) on keybase.
  • I have a public key whose fingerprint is F1B0 CF88 C139 7CCC 1726 9772 B9A1 8A73 E30E 16BE

To claim this, I am signing this object: