Меняем в Fastlane тип сборки андроид приложения с "apk" на "bundle" и заливает в Google Play
Пример блока для "apk"
lane :build_release do gradle( task: "clean", project_dir: "android/" ) gradle( task: "assemble", build_type: "Release", project_dir: "android/", flags: "--no-daemon --max-workers 1", ) upload_to_play_store( track: 'internal', package_name: 'com.myapp', json_key: './fastlane/.api-XXXXXXXXXXXXXXXXXXX-XXXXXX-XXXXXXXXXXXX.json' ) end
Приводим его к следующему виду:
lane :build_release do gradle( task: "clean", project_dir: "android/" ) gradle( task: "bundle", build_type: "Release", project_dir: "android/", flags: "--no-daemon --max-workers 1", ) upload_to_play_store( track: 'internal', skip_upload_apk: 'true', package_name: 'com.myapp', aab: "android/app/build/outputs/bundle/release/app.aab", json_key: './fastlane/.api-XXXXXXXXXXXXXXXXXXX-XXXXXX-XXXXXXXXXXXX.json' ) end