如何通过Fastlane创建aab(捆绑)?

时间:2019-12-03 14:48:03

标签: android react-native google-play react-native-android fastlane

我想通过aab创建Fastlane(捆绑包),但是到目前为止,我只能创建apk,这是我的lane,如何创建aab?

 lane :beta do
    store_password = prompt(text: "Signing Store Password: ", secure_text: true)
    key_password = prompt(text: "Alias Key Password: ", secure_text: true)
    releaseFilePath = File.join(Dir.pwd, "..", "my-release-key.keystore")
    gradle(task: 'clean')
    gradle(
      task: 'assemble',
      build_type: 'Release',
      print_command: false,
      properties: {
        "android.injected.signing.store.file" => releaseFilePath,
        "android.injected.signing.store.password" => store_password,
        "android.injected.signing.key.alias" => "my-key-alias",
        "android.injected.signing.key.password" => key_password,
      }
    )
    upload_to_play_store(
      track: 'internal'
    )

1 个答案:

答案 0 :(得分:1)

taskassemble更改为bundle,解决了我的问题!