Fastlane - setup (link)
(required)
ruby —version 2.5 이상
java —version 11 이상
project root directory 에서 gem install bundler 입력
./Gemfile 파일 생성 확인
fastlane init 입력 (초기화가 이미 되어있으면 X)
Appfile에서 App Info 정의
Fastfile에서 자동화 기능 정의
Pluginfile에 정의된 gem 'xx' 은 필요에 의해 추가 한 plugin
sudo bundle exec fastlane [lane]
자기가 사용하는 ~/.bashrc (or) ~/.bash_profile, (or) ~/.profile (or) ~/.zshrc 에서
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
설정 후 source ~/.bashrc (or) ~/.bash_profile, (or) ~/.profile (or) ~/.zshrc
service_credentials_file (com.tenfingers.seouldatepop)
seouldatepop-2c7069cf8476.json
default_platform(:android)
platform :android do
desc "Runs"
lane :distribute do
# 사용법 예시
# gradle(task: "clean")
# gradle(
# task: "bundle",
# build_type: "Debug",
# )
build_android_app(task: "bundle")
firebase_app_distribution(
app: "1:977240031290:android:d2b847ec99f652b7",
service_credentials_file: "/Users/path/credentials/seouldatepop-2c7069cf8476.json",
testers: "suho.datepop@gmail.com",
release_notes: "test",
android_artifact_type: "AAB"
)
end
end
앱 빌드 후 distributor까지 배포과정을 담은 Fastfile 예시
sudo bundle exec fastlane
[lane] 입력 시 실행