我有一个用fastlane构建的react native应用程序,我能够在输出文件夹中获取APK文件。但是在检查APK时,它不包含应用程序名称。
这是我的Appfile
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name(“ com.cavionnovus.android”)#例如com.krausefx.app
这是我的Fastfile
default_platform(:android)
platform :android do
lane :build do
# Adjust the `build_type` and `flavor` params as needed to build the right APK for your setup
gradle(
task: 'assemble',
build_type: 'Release'
)
end
end
执行fastlane build命令后,它会生成名称为app-release.apk的APK文件,而我希望APK名称为cavionnovus_1.1_20192009101112.apk(cavionnovus是应用程序名称,版本是1.1,最后一部分是构建过程中的当前时间戳)。