Skip to content

Instantly share code, notes, and snippets.

View bbedward's full-sized avatar

BB bbedward

  • Cleveland, OH
View GitHub Profile
@bbedward
bbedward / flutter_build.sh
Last active November 12, 2019 14:47
Flutter build wrapper for fastlane
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
if [ "$1" == "--apk" ]
@bbedward
bbedward / flutter_test.sh
Last active November 12, 2019 14:47
Fastlane+Flutter tutorial script
#!/bin/bash
cd ../../
echo "Running tests"
flutter test
@bbedward
bbedward / Fastfile-android.rb
Last active November 12, 2019 14:46
Appditto Flutter+Fastlane+GitLab Tutorial
# Update fastlane automatically
update_fastlane
default_platform(:android)
platform :android do
desc "Build android aab and apk"
lane :build_android do |options|
sh "./flutter_test.sh"
# Build AAB
@bbedward
bbedward / flutter_build_ios.sh
Last active April 2, 2021 12:49
Appditto Flutter+Fastlane+GitLab Tutorial
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
flutter build ios --release --no-codesign
@bbedward
bbedward / flutter_test_ios.sh
Last active November 12, 2019 14:47
Flutter Fastlane Gitlab Tutorial
#!/bin/bash
cd ../../
echo "Running tests"
flutter test
@bbedward
bbedward / Fastfile_ios.rb
Last active December 22, 2022 14:02
CI/CD In Flutter using GitLab and Fastlane Tutorial
# Automatically update fastlane
update_fastlane
default_platform(:ios)
# Default temporary keychain password and name, if not included from environment
TEMP_KEYCHAIN_NAME_DEFAULT = "fastlane_flutter"
TEMP_KEYCHAN_PASSWORD_DEFAULT = "temppassword"
# Remove the temporary keychain, if it exists
@bbedward
bbedward / Deliverfile
Created November 12, 2019 18:54
Fastlane+Flutter tutorial
release_notes({
'default' => File.read('./fastlane/metadata/en-US/release_notes.txt'),
'en-US' => File.read('./fastlane/metadata/en-US/release_notes.txt')
});
submission_information({
add_id_info_serves_ads: false,
add_id_info_tracks_action: false,
add_id_info_tracks_install: false,
add_id_info_uses_idfa: false,
stages:
- test
- update
- build
- deploy
tests:
stage: test
only:
- master
tags:
- appditto_mac
script:
- flutter test
interruptible: true
update:
stage: update
only:
- master
tags:
- appditto_mac
script:
- flutter packages get
- flutter packages upgrade
interruptible: true