Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions sample_app/ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ platform :ios do
build_number = (latest_release&.dig(:buildVersion) || 0).to_i + 1
build_ipa(export_method: "ad-hoc", build_number: build_number)

upload_dsyms_to_crashlytics

firebase_app_distribution(
app: app_id,
ipa_path: "#{root_path}/build/ios/ipa/ChatSample.ipa",
Expand All @@ -105,6 +107,8 @@ platform :ios do
build_number = (current_build_number || 0).to_i + 1
build_ipa(export_method: "app-store", build_number: build_number)

upload_dsyms_to_crashlytics

upload_to_testflight(
api_key: appstore_api_key,
distribute_external: true,
Expand All @@ -116,6 +120,19 @@ platform :ios do
)
end

desc "Upload iOS dSYMs from the most recent `flutter build ipa` to Firebase Crashlytics"
private_lane :upload_dsyms_to_crashlytics do
dsym_zip = zip(
path: "#{root_path}/build/ios/archive/Runner.xcarchive/dSYMs"
)

upload_symbols_to_crashlytics(
dsym_path: dsym_zip,
gsp_path: "#{root_path}/ios/Runner/GoogleService-Info.plist",
binary_path: "#{root_path}/ios/Pods/FirebaseCrashlytics/upload-symbols"
)
Comment thread
xsahil03x marked this conversation as resolved.
end

private_lane :appstore_api_key do
@appstore_api_key ||= app_store_connect_api_key(
key_id: 'MT3PRT8TB7',
Expand Down
2 changes: 2 additions & 0 deletions sample_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ flutter:
assets:
- assets/
- pubspec.lock
config:
enable-swift-package-manager: false
Comment thread
xsahil03x marked this conversation as resolved.

flutter_icons:
image_path: "assets/ic_launcher.png"
Expand Down
Loading