9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/fastlane/plugin/flutter/helper/flutter_bootstrap_helper.rb', line 9
def self.accept_licenses(licenses_directory, licenses)
FileUtils.mkdir_p(licenses_directory)
licenses.each_pair do |license, hash|
license_file = File.join(licenses_directory, license)
next if File.exist?(license_file) &&
File.readlines(license_file).map(&:strip).include?(hash)
UI.message("Updating Android SDK license in #{license_file}...")
File.open(license_file, 'a') { |f| f.puts('', hash) }
end
end
|