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

fastlane-plugin-cordova_android11

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-cordova_android11

  • 3.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Cordova Plugin

fastlane Plugin Badge

Features

  • Build your Cordova project inside a lane
  • Automatically handle code signing on iOS, even for XCode 8

Getting Started

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

fastlane add_plugin cordova

:warning: If you're using a Cordova version below 7, you need to use version 1.0.1 of this plugin

Then you can integrate it into your Fastlane setup:

platform :ios do
  desc "Deploy ios app on the appstore"

  lane :deploy do
    match(type: "appstore")
    cordova(platform: 'ios')
    appstore(ipa: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'])
  end
end

platform :android do
  desc "Deploy android app on play store"

  lane :deploy do
    cordova(
      platform: 'android',
      keystore_path: './prod.keystore',
      keystore_alias: 'prod',
      keystore_password: 'password'
    )
    supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])

    # Alternatively, deploy an Android Application Bundle
    # cordova(
    #   package_type: 'bundle',
    #   platform: 'android',
    #   keystore_path: './prod.keystore',
    #   keystore_alias: 'prod',
    #   keystore_password: 'password'
    # )
    # supply(aab: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])
  end
end

with an Appfile such as

app_identifier "com.awesome.app"
apple_id "apple@id.com"
team_id "28323HT"

If using Crosswalk, replace supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH']) by:

supply(
  apk_paths: [
   'platforms/android/build/outputs/apk/android-armv7-release.apk',
   'platforms/android/build/outputs/apk/android-x86-release.apk'
  ],
)

Plugin API

To check what's available in the plugin, install it in a project and run at the root of the project:

fastlane actions cordova

Which will produce:

KeyDescriptionEnv VarDefault
platformPlatform to build on.
Should be either android or ios
CORDOVA_PLATFORM
releaseBuild for release if true,
or for debug if false
CORDOVA_RELEASEtrue
deviceBuild for deviceCORDOVA_DEVICEtrue
typeThis will determine what type of build is generated by Xcode.
Valid options are development, enterprise, adhoc, and appstore
CORDOVA_IOS_PACKAGE_TYPEappstore
team_idThe development team (Team ID) to use for code signingCORDOVA_IOS_TEAM_ID28323HT
build_flagAn array of Xcode buildFlag. Will be appended on compile command.CORDOVA_IOS_BUILD_FLAG[]
provisioning_profileGUID of the provisioning profile to be used for signingCORDOVA_IOS_PROVISIONING_PROFILE
package_typeThis will determine what type of Android build is generated.
Valid options are apk and bundle
CORDOVA_ANDROID_PACKAGE_TYPEapk
keystore_pathPath to the Keystore for AndroidCORDOVA_ANDROID_KEYSTORE_PATH
keystore_passwordAndroid Keystore passwordCORDOVA_ANDROID_KEYSTORE_PASSWORD
key_passwordAndroid Key password (default is keystore password)CORDOVA_ANDROID_KEY_PASSWORD
keystore_aliasAndroid Keystore aliasCORDOVA_ANDROID_KEYSTORE_ALIAS
min_sdk_versionOverrides the value of minSdkVersionCORDOVA_ANDROID_MIN_SDK_VERSION
build_numberBuild Number for iOS and AndroidCORDOVA_BUILD_NUMBER
browserifySpecifies whether to browserify build or notCORDOVA_BROWSERIFYfalse
cordova_prepareSpecifies whether to run cordova prepare before buildingCORDOVA_PREPAREtrue
cordova_no_fetchSpecifies whether to run cordova platform add with --nofetch parameterCORDOVA_NO_FETCHfalse
cordova_build_config_fileCall cordova compile with --buildConfig=<ConfigFile> to specify build config file pathCORDOVA_BUILD_CONFIG_FILE

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 doc in the main fastlane repo.

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 01 Dec 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