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
4 changes: 2 additions & 2 deletions examples/SampleApp/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ GEM
google-apis-firebaseappdistribution_v1 (~> 0.3.0)
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
fastlane-plugin-load_json (0.0.1)
fastlane-plugin-stream_actions (0.3.73)
fastlane-plugin-stream_actions (0.4.14)
xctest_list (= 1.2.1)
fastlane-sirp (1.0.0)
sysrandom (~> 1.0)
Expand Down Expand Up @@ -356,7 +356,7 @@ DEPENDENCIES
fastlane
fastlane-plugin-firebase_app_distribution
fastlane-plugin-load_json
fastlane-plugin-stream_actions (= 0.3.73)
fastlane-plugin-stream_actions (= 0.4.14)
logger
mutex_m
nkf
Expand Down
12 changes: 8 additions & 4 deletions examples/SampleApp/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,18 @@ lane :frameworks_sizes do
sh('yarn minify-bundle')
sh('yarn minify-ai-components-bundle')

js_bundle_size = file_size(path: 'package/lib/module/bundle.min.js')
UI.message("ai_components_bundle_size: #{file_size(path: 'package/lib/ai-components.min.js').round} KB")
{ js_bundle_size: js_bundle_size }
{
js_bundle_size: file_size(path: 'package/lib/module/bundle.min.js'),
ai_components_size: file_size(path: 'package/lib/ai-components.min.js')
}
end
end

lane :show_frameworks_sizes do |options|
next unless is_check_required(sources: ['package/'], force_check: @force_check)
# Besides the SDK itself, changes to how the size is measured (this lane, its plugin, the root
# `minify-*` scripts) re-run the check too.
sources = ['package/', 'package.json', 'examples/SampleApp/fastlane/', 'examples/SampleApp/Gemfile.lock']
next unless is_check_required(sources: sources, force_check: @force_check)

sizes = options[:sizes] || frameworks_sizes
show_sdk_size(branch_sizes: sizes, github_repo: github_repo, size_ext: sdk_size_ext)
Expand Down
2 changes: 1 addition & 1 deletion examples/SampleApp/fastlane/Pluginfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

gem 'fastlane-plugin-firebase_app_distribution'
gem 'fastlane-plugin-load_json'
gem 'fastlane-plugin-stream_actions', '0.3.73'
gem 'fastlane-plugin-stream_actions', '0.4.14'
Loading