Files
mobile-ios/fastlane/Fastfile

70 lines
1.5 KiB
Ruby

default_platform(:ios)
platform :ios do
# ─── Автоинкремент build number ───
desc "Increment build number (CURRENT_PROJECT_VERSION)"
lane :bump_build do
increment_build_number(
xcodeproj: "Rosetta.xcodeproj"
)
end
# ─── Инкремент версии (patch/minor/major) ───
desc "Increment version number. Usage: fastlane bump_version type:patch"
lane :bump_version do |options|
type = options[:type] || "patch"
increment_version_number(
xcodeproj: "Rosetta.xcodeproj",
bump_type: type
)
end
# ─── Билд для TestFlight ───
desc "Build and upload to TestFlight"
lane :beta do
increment_build_number(
xcodeproj: "Rosetta.xcodeproj"
)
build_app(
project: "Rosetta.xcodeproj",
scheme: "Rosetta",
export_method: "app-store",
clean: true
)
upload_to_testflight(
skip_waiting_for_build_processing: true
)
end
# ─── Release в App Store ───
desc "Build and upload to App Store"
lane :release do |options|
type = options[:type] || "patch"
increment_version_number(
xcodeproj: "Rosetta.xcodeproj",
bump_type: type
)
increment_build_number(
xcodeproj: "Rosetta.xcodeproj"
)
build_app(
project: "Rosetta.xcodeproj",
scheme: "Rosetta",
export_method: "app-store",
clean: true
)
upload_to_app_store(
force: true,
skip_screenshots: true
)
end
end