fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.65.0.beta.20171113010004 vs fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.65.0.beta.20171114010003

- old
+ new

@@ -34,10 +34,11 @@ # Construct our flags flags = [] flags << "-p #{project_dir.shellescape}" flags << params[:properties].map { |k, v| "-P#{k.to_s.shellescape}=#{v.to_s.shellescape}" }.join(' ') unless params[:properties].nil? + flags << params[:system_properties].map { |k, v| "-D#{k.to_s.shellescape}=#{v.to_s.shellescape}" }.join(' ') unless params[:system_properties].nil? flags << params[:flags] unless params[:flags].nil? # Run the actual gradle task gradle = Helper::GradleHelper.new(gradle_path: gradle_path) @@ -121,9 +122,14 @@ optional: true, is_string: true), FastlaneCore::ConfigItem.new(key: :properties, env_name: 'FL_GRADLE_PROPERTIES', description: 'Gradle properties to be exposed to the gradle script', + optional: true, + is_string: false), + FastlaneCore::ConfigItem.new(key: :system_properties, + env_name: 'FL_GRADLE_SYSTEM_PROPERTIES', + description: 'Gradle system properties to be exposed to the gradle script', optional: true, is_string: false), FastlaneCore::ConfigItem.new(key: :serial, env_name: 'FL_ANDROID_SERIAL', description: 'Android serial, which device should be used for this command',