bamlab / fastlane-plugin-cordova

Integrate your Cordova build into your Fastlane setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android APK is not been sent.

oangelo opened this issue · comments

I have created some lanes as the docs suggest, everything seems to run fine, no error is reported. The Play Console seems to identify that some changes was sent, but no new apk is shown in alpha.
My lane is this:

  desc "Build and deploy to alpha track"
  lane :build_and_deploy do
    cordova(
      platform: 'android',
      release: true,
      keystore_path: '###',
      keystore_password: '###',
      keystore_alias: '###',
      key_password: '###'
    )
    supply(
      apk: ENV["platforms/android/app/build/outputs/apk/release/app-release.apk"],
      skip_upload_aab: true,
      skip_upload_metadata: true,
      skip_upload_images: true,
      skip_upload_screenshots: true,
      track: "alpha"
    )
  end

I cannot tell 100% what your issue is, but from top of my head it seems you misunderstood the ENV variable that is being set by this plugin.
It is not ENV[path_to_file] but it is ENV[CORDOVA_ANDROID_RELEASE_BUILD_PATH] which contains the path as a value.

Try changing:

supply(
      apk: ENV["CORDOVA_ANDROID_RELEASE_BUILD_PATH"],
      skip_upload_aab: true,
      skip_upload_metadata: true,
      skip_upload_images: true,
      skip_upload_screenshots: true,
      track: "alpha"
    )