Something went wrong. Try again.
an open source Navidrome client written in Swift dub.sh/getflo
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150fastlane_version "2.233.0"default_platform(:ios)
groups = ["Kepelet"]configuration = "Release"
platform :ios do desc "load App Store Connect API key" lane :load_asc_api_key do app_store_connect_api_key( key_id: ENV["ASC_KEY_ID"], issuer_id: ENV["ASC_ISSUER_ID"], key_content: ENV["ASC_KEY_CONTENT"], is_key_content_base64: false, in_house: false ) end
desc "sync certs thing" lane :sync_certs do api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
match({readonly: true, type: "appstore", platform: "catalyst", app_identifier: "com.penerbangwalet.flo", api_key: api_key}) match({readonly: true, type: "appstore", api_key: api_key}) end
desc "bump build number based on latest TestFlight build number" lane :fetch_and_increment_build_number do app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier).first api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
latest_build_number = latest_testflight_build_number( api_key: api_key, version: get_version_number(target: "flo"), app_identifier: app_identifier )
increment_build_number(build_number: (latest_build_number + 1)) end
desc "build app" lane :build do load_asc_api_key sync_certs fetch_and_increment_build_number
build_app(configuration: configuration) end
desc "push a new build to TestFlight" lane :beta do |options| is_public = options[:public] || false
setup_ci if ENV['CI']
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier).first api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
build
upload_to_testflight( changelog: "Build #{get_build_number}", api_key: api_key, app_identifier: app_identifier, distribute_external: is_public, skip_waiting_for_build_processing: !is_public, groups: is_public ? groups : nil, ) endend
platform :mac do desc "load App Store Connect API key" lane :load_asc_api_key do app_store_connect_api_key( key_id: ENV["ASC_KEY_ID"], issuer_id: ENV["ASC_ISSUER_ID"], key_content: ENV["ASC_KEY_CONTENT"], is_key_content_base64: false, in_house: false ) end
desc "sync Catalyst distribution certificates" lane :sync_certs do api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
match( readonly: true, type: "appstore", platform: "catalyst", additional_cert_types: ["mac_installer_distribution"], app_identifier: "com.penerbangwalet.flo", api_key: api_key ) end
desc "bump the Catalyst build number based on the latest TestFlight build" lane :fetch_and_increment_build_number do app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier).first api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
latest_build_number = latest_testflight_build_number( api_key: api_key, version: get_version_number(target: "flo"), app_identifier: app_identifier )
increment_build_number(build_number: (latest_build_number + 1)) end
desc "build the Mac Catalyst app" lane :build do load_asc_api_key sync_certs fetch_and_increment_build_number
build_mac_app( configuration: configuration, scheme: "flo", export_method: "app-store", output_directory: "./fastlane/builds", skip_package_dependencies_resolution: true ) end
desc "push a Mac Catalyst build to TestFlight" lane :beta do |options| is_public = options[:public] || false
setup_ci if ENV["CI"]
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier).first api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
build
upload_to_testflight( pkg: lane_context[SharedValues::PKG_OUTPUT_PATH], app_platform: "osx", changelog: "Mac Catalyst build #{get_build_number}", api_key: api_key, app_identifier: app_identifier, distribute_external: is_public, skip_waiting_for_build_processing: !is_public, groups: is_public ? groups : nil ) endend