Skip to content

Commit

Permalink
Update Fastfile
Browse files Browse the repository at this point in the history
  • Loading branch information
teolemon committed Feb 13, 2021
1 parent 30fc2b2 commit cacbd0a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion fastlane/Fastfile
Expand Up @@ -5,6 +5,21 @@ lane :screenshots do
capture_android_screenshots
end

desc "Build debug and test APK for screenshots"
lane :build_for_screengrab do
gradle(
task: 'clean'
)
build_android_app(
task: 'assemble',
build_type: 'Debug'
)
build_android_app(
task: 'assemble',
build_type: 'AndroidTest'
)
end

desc "Capture Screen"
lane :capture_screen do
gradle(task: "clean assembleScreenshots assembleAndroidTest")
Expand Down Expand Up @@ -80,4 +95,4 @@ lane :finalize_sentry do
project_slug: 'openfoodfacts-android',
version: PACKAGE_NAME + '@' + versionName.to_s + '+' + versionCode.to_s,
)
end
end

0 comments on commit cacbd0a

Please sign in to comment.