Sja*_*sma 4 android gradle fastlane
我创建了一个fastlane任务,用于上传到Play商店,如下所示:
lane :DEPLOY_BETA do
gradle(task: "clean")
version_codes = google_play_track_version_codes(
package_name: "",
json_key: "play_store_service_account_key.json",
)
gradle(
task: "assemble",
flavor: "World",
build_type: "Release",
properties: { "versionCode" => 100 }
)
apk_path = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
supply(
apk: apk_path,
json_key: "play_store_service_account_key.json",
package_name: "",
track: "beta",
skip_upload_metadata: true,
validate_only: true,
skip_upload_images: true,
skip_upload_screenshots: true
)
end
Run Code Online (Sandbox Code Playgroud)
问题在于该属性versionCode不会覆盖versionCode味道(也不是defaultConfig)中指定的属性。这是Fastlane中的错误吗?如果我没有设置versionCode在build.gradle所有它只是增加了不versionCode和FASTLANE供应将失败。
有人可以帮我从这里出去吗?
| 归档时间: |
|
| 查看次数: |
1487 次 |
| 最近记录: |