Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastlane-plugin-qr_code

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastlane-plugin-qr_code

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Fastlane qr_code plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-qr_code, add it to your project by running:

fastlane add_plugin qr_code

About qr_code

You can use this plugin to generate QR codes that you may use in the rest of your Fastlane workflow.

This plugin was created because I needed a Fastlane equivalent of the Bitrise step 'Create install page QR code'.

The main use case is to generate a QR code to your app's install page, and then automatically post this QR code to Slack.

The plugin outputs a PNG image of the QR code as well as an ANSI text representation that can be printed to a console.

Example

Example usage of this plugin:

lane :test do
  code = qr_code(contents: 'https://q42.com/')
  
  # Print a ANSI text-representation of the QR code to the console
  puts code['QR_CODE_TEXT']

  # Store the QR code somewhere a PNG file to use it later on
  FileUtils.cp(code['QR_CODE_PNG_PATH'], './qr_code.png')

  # Upload QR code to S3...
  aws_s3(
    access_key: ENV["S3_ACCESS_KEY"],
    secret_access_key: ENV["S3_SECRET_ACCESS_KEY"],
    bucket: ENV["S3_BUCKET"],
    region: ENV["S3_REGION"],
    files: [
      code['QR_CODE_PNG_PATH']
    ],
    upload_metadata: false
  )
  qr_code_image_url = lane_context[SharedValues::S3_FILES_OUTPUT_PATHS][0]

  # ...and post it to Slack!
  slack(
    message: "Build succeeded! Scan the code to install it on your device.",
    slack_url: ENV["SLACK_WEB_HOOK_URL"],
    attachment_properties: {
      image_url: qr_code_image_url,
    }
  )
end

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

FAQs

Package last updated on 18 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc