Class: Fastlane::Actions::RetrofitCordovaScreenshotsAndroidAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::RetrofitCordovaScreenshotsAndroidAction
- Defined in:
- lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
23 24 25 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 23 def self. ['Jan Piotrowski'] end |
.available_options ⇒ Object
36 37 38 39 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 36 def self. [ ] end |
.description ⇒ Object
19 20 21 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 19 def self.description 'Retrofit test into Android project' end |
.details ⇒ Object
31 32 33 34 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 31 def self.details # Optional: '' end |
.is_supported?(platform) ⇒ Boolean
41 42 43 44 45 46 47 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 41 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # # [:ios, :mac, :android].include?(platform) [:android].include?(platform) end |
.return_value ⇒ Object
27 28 29 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 27 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/fastlane/plugin/cordova_screenshots/actions/retrofit_cordova_screenshots_android_action.rb', line 6 def self.run(params) UI.("Retrofitting Android UI test from '#{CordovaScreenshots::CORDOVA_SCREENSHOTS_ANDROID_CONFIG_PATH}' into Cordova Android project.") package_name = Fastlane::Helper::CordovaScreenshotsHelper.read_package_name_from_android_test package_name_path = package_name.gsub('.', '/') Fastlane::Helper::CordovaScreenshotsHelper.copy_android_test(package_name_path) Fastlane::Helper::CordovaScreenshotsHelper.copy_android_build_extras_gradle Fastlane::Helper::CordovaScreenshotsHelper.copy_android_manifest(package_name) UI.success("Done. Build your test app (TODO) and then run `fastlane screengrab` to take screenshots.") end |