mobile_protect

Flutter Plugin for Mobile Protect SDK.

Getting Started

The project contains an example project for iOS and Android that depends on this flutter plugin. To get started run flutter run from the example folder.

Making a Release

Update and commit the following files and contents:

  • pubspec.yaml
    version: 26.2.1 
    
  • ios/mobile_protect/Package.swift (optional)
          .package(url: "https://mobile-protect-repos.securetheorem.com/mobileprotect-ios", from: "26.2.1"), 
    
  • CHANGELOG.md

It is recommended to run:

flutter pub publish --dry-run

Locally before merging the PR with the version changes to anticipate any warnings that might prevent deployment later on. Once it passes the PR can be merged.

Publishing a new version to pub.dev is done via Bitbucket pipelines, triggered by tags. Steps:

  1. Trigger a release-candidate build by tagging the release branch with a tag of the form *.*.*-rc*, for example 26.2.1-rc1.
  2. The Bitbucket pipeline will produce an artifact in the second step of the pipeline, which should be downloaded and tested against an app.
  3. Sanity check the output of the last step of the pipeline, which does a flutter pub publish --dry-run.
  4. If the release candidate is satisfactory, tag the release branch with a production tag of the form v*.*.*, for example v26.2.1.
    1. The Bitbucket pipeline will produce a build artifact and publish to pub.dev.