{"action":"closed","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/750","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/750/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/750/events","html_url":"https://github.com/fastlane/fastlane/issues/750","id":113635249,"number":750,"title":"APK output file path in `gradle` action is not computed correctly in all cases","user":{"login":"kaoskorobase","id":484494,"avatar_url":"https://avatars.githubusercontent.com/u/484494?v=3","gravatar_id":"","url":"https://api.github.com/users/kaoskorobase","html_url":"https://github.com/kaoskorobase","followers_url":"https://api.github.com/users/kaoskorobase/followers","following_url":"https://api.github.com/users/kaoskorobase/following{/other_user}","gists_url":"https://api.github.com/users/kaoskorobase/gists{/gist_id}","starred_url":"https://api.github.com/users/kaoskorobase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaoskorobase/subscriptions","organizations_url":"https://api.github.com/users/kaoskorobase/orgs","repos_url":"https://api.github.com/users/kaoskorobase/repos","events_url":"https://api.github.com/users/kaoskorobase/events{/privacy}","received_events_url":"https://api.github.com/users/kaoskorobase/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T17:16:33Z","updated_at":"2015-10-27T18:40:32Z","closed_at":"2015-10-27T18:40:32Z","body":"In cases where the project is not named `app`, or when multiple product flavors and build types are used, the APK path generation is not correct:\r\n\r\n~~~~\r\n apk_path = File.join(\"app\", \"build\", \"outputs\", \"apk\", \"app-#{flavor}.apk\")\r\n~~~~\r\n\r\nIn our case, the APK is at `locosonic-player/build/outputs/apk/locosonic-player-LocosonicPlayer-release.apk`, i.e. `${PROJECT_NAME}/build/outputs/apk/${PROJECT_NAME}-${PRODUCT_FLAVOR}-${BUILD_TYPE}.apk`. A solution might be to be able pass those parameters to the `gradle` action.\r\n"}}