parkzen_core_flutter

Flutter plugin that wraps the native ParkZen core SDK (ParkZenCore) for iOS and Android. It is published on pub.dev as parkzen_core_flutter.

The source lives on GitLab at mobility/parkzen-core-flutter. ParkZenApp/parkzen-core-flutter on GitHub is a read-only mirror.

Native dependencies

  • iOS: ParkZenCore/Parking and ParkZenCore/Payments ~> 0.3.130 (iOS 14.0 or later), from ParkZenSpecs. Apps add its source ahead of the CocoaPods CDN:

    source 'https://gitlab.com/parkingguidancesystems/mobility/ParkZenSpecs.git'
    source 'https://cdn.cocoapods.org/'
    

    The ParkZenCore 0.3.130 spec still downloads its source from GitHub, so CocoaPods also needs read access to ParkZenApp/ParkZenCore.

  • Android: com.parkzenlib:parkzen-core from the Native-Android package registry, https://gitlab.com/api/v4/projects/87724980/packages/maven. See example/android/build.gradle.

Running the example

  • Android: set GITLAB_TOKEN, or gitlabToken in ~/.gradle/gradle.properties, to a GitLab token with read_api. Then run flutter run in example.
  • iOS: run flutter run in example. Git needs read access to ParkZenSpecs on GitLab.

CI and releases

Merge requests and main run secret detection, the plugin tests on Flutter 3.35.7, and an Android build of the example.

To release, bump version in pubspec.yaml and add a CHANGELOG.md entry in a merge request. When it merges, the publish:pub.dev job publishes that version. Pushes to main whose version is already on pub.dev publish nothing. Published versions are public and can't be changed.

The job signs in to pub.dev as pubdev-publisher@parkzen-33bc1.iam.gserviceaccount.com through workload identity federation, so no pub.dev credentials are stored. The service account is set under Automated publishing on the package's pub.dev admin page.