Sha256: 0d7b0f7db49a339fef74dbfc381644bc15cfd9e6280e980c6e7e27bfa0d39a91
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
module Pantograph class SetupGradle < Setup attr_accessor :json_key_file attr_accessor :package_name def setup_gradle self.platform = :gradle welcome_to_pantograph self.pantfile_content = pantfile_template_content fetch_information_for_appfile PantographCore::PantographFolder.create_folder! self.append_lane([ "desc \"Runs all the tests\"", "lane :test do", " gradle(task: \"clean test\")", "end" ]) self.append_lane([ "desc \"Publish new version to Artifactory\"", "lane :build do", " gradle(task: \"clean build\")", "end" ]) self.append_lane([ "desc \"Deploy a new version to Artifactory\"", "lane :publish do", " gradle(task: \"clean artifactoryPublish\")", "end" ]) self.lane_to_mention = "test" finish_up end def fetch_information_for_appfile UI.message('') UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.") self.package_name = UI.input("Package Name (com.krausefx.app): ") puts("") puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow) puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked") end def finish_up self.pantfile_content.gsub!(":ios", ":maven") super end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pantograph-0.1.4 | pantograph/lib/pantograph/setup/setup_gradle.rb |
pantograph-0.1.3 | pantograph/lib/pantograph/setup/setup_gradle.rb |