{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/9228","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/9228/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/9228/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/9228/events","html_url":"https://github.com/fastlane/fastlane/issues/9228","id":230108724,"number":9228,"title":"Cannot set `apk_path` dynamically for Crashlytics","user":{"login":"jaimeagudo","id":4053914,"avatar_url":"https://avatars0.githubusercontent.com/u/4053914?v=3","gravatar_id":"","url":"https://api.github.com/users/jaimeagudo","html_url":"https://github.com/jaimeagudo","followers_url":"https://api.github.com/users/jaimeagudo/followers","following_url":"https://api.github.com/users/jaimeagudo/following{/other_user}","gists_url":"https://api.github.com/users/jaimeagudo/gists{/gist_id}","starred_url":"https://api.github.com/users/jaimeagudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaimeagudo/subscriptions","organizations_url":"https://api.github.com/users/jaimeagudo/orgs","repos_url":"https://api.github.com/users/jaimeagudo/repos","events_url":"https://api.github.com/users/jaimeagudo/events{/privacy}","received_events_url":"https://api.github.com/users/jaimeagudo/received_events","type":"User","site_admin":false},"labels":[{"id":351212709,"url":"https://api.github.com/repos/fastlane/fastlane/labels/action","name":"action","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-19T23:00:11Z","updated_at":"2017-05-24T15:20:36Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- [X ] Updated fastlane to the latest version\r\n- [X] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nThe solutions commented here are not longer valid and the documentation is missing https://github.com/fastlane/fastlane/issues/6916\r\n\r\nReviewing the [source](https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/crashlytics.rb#L28) I see `apk_path` is mandatory but I wonder how would I set it up dynamically as the version bumps.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n> You can use: `--capture_output` as the last commandline argument to get that collected for you\r\n\r\n[INSERT OUTPUT HERE]\r\n\r\n### Environment\r\n\r\nPlease run `fastlane env` and copy the output below. This will help us help you :+1:\r\nIf you used `--capture_output` option please remove this block - as it is already included there.\r\n\r\n<details><summary>✅ fastlane environment ✅</summary>\r\n\r\n### Stack\r\n\r\n| Key                         | Value                                       |\r\n| --------------------------- | ------------------------------------------- |\r\n| OS                          | 10.12.4                                     |\r\n| Ruby                        | 2.2.4                                       |\r\n| Bundler?                    | false                                       |\r\n| Git                         | git version 2.3.0                           |\r\n| Installation Source         | ~/.fastlane/bin/bundle/bin/fastlane         |\r\n| Host                        | Mac OS X 10.12.4 (16E195)                   |\r\n| Ruby Lib Dir                | ~/.fastlane/bin/bundle/lib                  |\r\n| OpenSSL Version             | OpenSSL 1.0.2g  1 Mar 2016                  |\r\n| Is contained                | false                                       |\r\n| Is homebrew                 | true                                        |\r\n| Is installed via Fabric.app | false                                       |\r\n| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |\r\n| Xcode Version               | 8.3.2                                       |\r\n\r\n\r\n### System Locale\r\n\r\n| Variable | Value       |   |\r\n| -------- | ----------- | - |\r\n| LANG     | en_US.UTF-8 | ✅ |\r\n| LC_ALL   | en_US.UTF-8 | ✅ |\r\n| LANGUAGE | en_US.UTF-8 | ✅ |\r\n\r\n\r\n### fastlane files:\r\n\r\n<details><summary>`./fastlane/Fastfile`</summary>\r\n\r\n```ruby\r\n# Customise this file, documentation can be found here:\r\n# https://github.com/fastlane/fastlane/tree/master/fastlane/docs\r\n# All available actions: https://docs.fastlane.tools/actions\r\n# can also be listed using the `fastlane actions` command\r\n\r\n\r\n# Jaime: see examples at https://github.com/fastlane/examples/blob/master/Fabric/Fastfile\r\n\r\n\r\n# Change the syntax highlighting to Ruby\r\n# All lines starting with a # are ignored when running `fastlane`\r\n\r\n# If you want to automatically update fastlane if a new version is available:\r\n# update_fastlane\r\n\r\n# This is the minimum version number required.\r\n# Update this, if you use features of a newer version\r\nfastlane_version \"2.28.3\"\r\n\r\ndefault_platform :android\r\n\r\nplatform :android do\r\n\r\n  before_all do\r\n    git_pull(only_tags: true)\r\n    # ENV[\"SLACK_URL\"] = \"https://hooks.slack.com/services/...\"\r\n  end\r\n\r\n  after_all do\r\n    push_git_tags\r\n  end\r\n\r\n\r\n  desc \"Runs all the tests\"\r\n  lane :test do\r\n    gradle(task: \"test\")\r\n  end\r\n\r\n\r\n  def load_keys\r\n    begin\r\n      import(\"keys\")\r\n    rescue => exception\r\n      UI.error(\"fastlane/keys file not found. To use this Fastfile, copy fastlane/keys.template into fastlane/keys and fill in the values\")\r\n      raise exception\r\n    end\r\n  end\r\n\r\n\r\n# see https://docs.fastlane.tools/actions/#changelog_from_git_commits\r\n# see https://github.com/fastlane/fastlane/blob/master/fastlane/spec/actions_specs/changelog_from_git_commits_spec.rb\r\n  def change_log_since_last_tag\r\n      # http://git-scm.com/docs/pretty-formats\r\n      # <short hash> <commit title>\r\n      return  changelog_from_git_commits(merge_commit_filtering: 'exclude_merges', pretty: '%s')\r\n      #return changelog_from_git_commits(pretty: '%h %s')\r\n  end\r\n\r\n\r\n  desc \"Returns a default changelog.\"\r\n  lane :default_changelog do\r\n\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to Crashlytics Beta\"\r\n  lane :beta do |options|\r\n#    ensure_git_status_clean\r\n\r\n    gradle(\r\n      task: \"assemble\",\r\n      build_type: 'beta'\r\n    )\r\n\r\n    load_keys\r\n\r\n    # Generate the changelog based on commit messages since your last tag\r\n\r\n    #changelog_from_git_commits\r\n#      notifications = false unless options[:notify_testers],\r\n#    changes =\r\n\r\n\r\n    changelog = changelog_from_git_commits(\r\n        between: [ENV['GIT_PREVIOUS_SUCCESSFUL_COMMIT'] || \"HEAD^^^^^\", \"HEAD\"],\r\n        pretty: \"- %s\"\r\n    )\r\n    # HAX: strip emoji from changelog\r\n#    changelog = changelog.sub(/[\\u{1F300}-\\u{1F6FF}]/, '')\r\n#    Actions.lane_context[SharedValues::FL_CHANGELOG] = changelog\r\n    puts changelog\r\n\r\n\r\n    # The crashlytics action knows how to use the generated changelog automatically\r\n    crashlytics(\r\n      api_token: ENV[\"CRASHLYTICS_API_TOKEN\"],\r\n      build_secret: ENV[\"CRASHLYTICS_BUILD_SECRET\"],\r\n#      apk_path: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],\r\n      apk_path: \"./app/build/outputs/apk/app-beta-0.0.1-BETA-unaligned.apk\",\r\n      apk_path: \"/Users/jaime/Github/MYPROJECT/android/MYPROJECT/app/build/outputs/apk/app-beta*.apk\",\r\n      notes: changelog\r\n#      notes:  change_log_since_last_tag,\r\n#      groups: [\"first_beta_testers\"]\r\n    )\r\n    # sh \"your_script.sh\"\r\n    # You can also use other beta testing services here\r\n  end\r\n\r\n  desc \"Deploy a new version to the Google Play\"\r\n  lane :deploy do\r\n    gradle(task: \"assembleRelease\")\r\n    supply\r\n  end\r\n\r\n  # You can define as many lanes as you want\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n\r\n    # slack(\r\n    #   message: \"Successfully deployed new App Update.\"\r\n    # )\r\n  end\r\n\r\n  error do |lane, exception|\r\n    # slack(\r\n    #   message: exception.message,\r\n    #   success: false\r\n    # )\r\n  end\r\nend\r\n\r\n\r\n# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md\r\n# All available actions: https://docs.fastlane.tools/actions\r\n\r\n# fastlane reports which actions are used\r\n# No personal data is sent or shared. Learn more at https://github.com/fastlane/enhancer\r\n```\r\n</details>\r\n\r\n<details><summary>`./fastlane/Appfile`</summary>\r\n\r\n```ruby\r\njson_key_file \"\" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one\r\npackage_name \"site.paid2party.android\" # e.g. com.krausefx.app\r\n```\r\n</details>\r\n\r\n### fastlane gems\r\n\r\n| Gem      | Version | Update-Status |\r\n| -------- | ------- | ------------- |\r\n| fastlane | 2.32.1  | ✅ Up-To-Date  |\r\n\r\n\r\n### Loaded fastlane plugins:\r\n\r\n**No plugins Loaded**\r\n\r\n\r\n<details><summary><b>Loaded gems</b></summary>\r\n\r\n| Gem                       | Version      |\r\n| ------------------------- | ------------ |\r\n| slack-notifier            | 1.5.1        |\r\n| CFPropertyList            | 2.3.5        |\r\n| claide                    | 1.0.1        |\r\n| colored2                  | 3.1.2        |\r\n| nanaimo                   | 0.2.3        |\r\n| xcodeproj                 | 1.4.4        |\r\n| rouge                     | 1.11.1       |\r\n| xcpretty                  | 0.2.6        |\r\n| terminal-notifier         | 1.7.1        |\r\n| unicode-display_width     | 1.1.3        |\r\n| terminal-table            | 1.7.3        |\r\n| plist                     | 3.2.0        |\r\n| public_suffix             | 2.0.5        |\r\n| addressable               | 2.5.1        |\r\n| multipart-post            | 2.0.0        |\r\n| word_wrap                 | 1.0.0        |\r\n| tty-screen                | 0.5.0        |\r\n| babosa                    | 1.0.2        |\r\n| colored                   | 1.2          |\r\n| highline                  | 1.7.8        |\r\n| commander-fastlane        | 4.4.4        |\r\n| excon                     | 0.55.0       |\r\n| faraday                   | 0.12.1       |\r\n| unf_ext                   | 0.0.7.4      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20170404 |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| fastimage                 | 2.1.0        |\r\n| gh_inspector              | 1.0.3        |\r\n| uber                      | 0.0.15       |\r\n| representable             | 2.3.0        |\r\n| retriable                 | 2.1.0        |\r\n| mime-types-data           | 3.2016.0521  |\r\n| mime-types                | 3.1          |\r\n| hurley                    | 0.2          |\r\n| little-plugger            | 1.1.4        |\r\n| multi_json                | 1.12.1       |\r\n| logging                   | 2.2.2        |\r\n| jwt                       | 1.5.6        |\r\n| memoist                   | 0.15.0       |\r\n| os                        | 0.9.6        |\r\n| signet                    | 0.7.3        |\r\n| googleauth                | 0.5.1        |\r\n| httpclient                | 2.8.3        |\r\n| google-api-client         | 0.9.28       |\r\n| json                      | 1.8.1        |\r\n| mini_magick               | 4.5.1        |\r\n| multi_xml                 | 0.6.0        |\r\n| rubyzip                   | 1.2.1        |\r\n| security                  | 0.1.3        |\r\n| xcpretty-travis-formatter | 0.0.4        |\r\n| dotenv                    | 2.2.0        |\r\n| bundler                   | 1.14.6       |\r\n| faraday_middleware        | 0.11.0.1     |\r\n</details>\r\n\r\n\r\n*generated on:* **2017-05-20**\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/303757752","html_url":"https://github.com/fastlane/fastlane/issues/9228#issuecomment-303757752","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/9228","id":303757752,"user":{"login":"jaimeagudo","id":4053914,"avatar_url":"https://avatars0.githubusercontent.com/u/4053914?v=3","gravatar_id":"","url":"https://api.github.com/users/jaimeagudo","html_url":"https://github.com/jaimeagudo","followers_url":"https://api.github.com/users/jaimeagudo/followers","following_url":"https://api.github.com/users/jaimeagudo/following{/other_user}","gists_url":"https://api.github.com/users/jaimeagudo/gists{/gist_id}","starred_url":"https://api.github.com/users/jaimeagudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaimeagudo/subscriptions","organizations_url":"https://api.github.com/users/jaimeagudo/orgs","repos_url":"https://api.github.com/users/jaimeagudo/repos","events_url":"https://api.github.com/users/jaimeagudo/events{/privacy}","received_events_url":"https://api.github.com/users/jaimeagudo/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T15:20:36Z","updated_at":"2017-05-24T15:20:36Z","body":"The output is\r\n\r\n```\r\nCouldn't find any new signed apk files...\r\nAPK path is:\r\n```\r\n\r\nin the original Fastfile I submitted I already tried that option, notice the commented line using `SharedValues::GRADLE_APK_OUTPUT_PATH` \r\n\r\nthanks again @mfurtak \r\n\r\n"}}
{"actor":{"display_login":"jaimeagudo"}}