Skip to content

Mockzilla Mobile Ui (alpha)

Warning

Warning: This plugin is still experimental and may contain bugs! The API is also subject to change

Mockzilla provides embedded Ui into your App to control the server at runtime.

Installation

Add the gradle dependency:

implementation("com.apadmi:mockzilla-mobile-ui:0.0.4")

Add the SPM dependency in XCode:

  1. File > Swift Packages > Add Package Dependency
  2. Add https://github.com/Apadmi-Engineering/SwiftMockzillaMobileUi

Note

Note: This is not for KMP projects (for those, the gradle dependecy should be added to shared source set). This SPM dependency is for purely native iOS apps only.

Either install the package using:

flutter pub add mockzilla_ui_mobile

Or add the dependency in your pubspec.yaml file directly:

mockzilla_ui_mobile: 0.0.4

Setup

If you've not configured the Mockzilla server yet, then do that first here!

Launch The Embedded Ui

You can do this from a button click or any trigger in your app code.

import com.apadmi.mockzilla.mobile.ui.launchManagementUi

launchManagementUi(context /* Activity Context */)
import SwiftMockzillaMobileUi

launchManagementUiSwift()
import 'package:mockzilla_ui_mobile/mockzilla_ui_mobile.dart';

MockzillaUiMobile.launchManagementUi();

This will launch the Ui overlay allowing a user to configure the mocked endpoints.