Skip to content

Sauce Labs mobile flutter demo application for training and demo purposes

Notifications You must be signed in to change notification settings

saucelabs/my-demo-app-flutter

Repository files navigation

my-demo-app-flutter

Introduction :

My Demo App Flutter is a mobile application developed using Flutter based on Flutter Counter example application. Modified by the Sauce Labs team, this app is designed to demonstrate the robust capabilities of Sauce Labs' mobile devices cloud, with a particular focus on our integration with the Appium Flutter Integration Driver.

You can find additional code examples in our training repository


Flutter-Appium

Requirements

To build and use this demo app, ensure you have the following dependencies installed on your local machine:

To verify that all the necessary requirements are met, run the following command. This will check your system and provide a report on what is installed and what needs to be installed:

flutter doctor

Building the apps

Install dependencies

First, install all necessary dependencies:

flutter packages get

Check for any outdated packages:

flutter pub outdated

Upgrade outdated packages to their latest major versions:

flutter pub upgrade --major-versions

Build the Android app

Navigate to the android directory and build the app:

cd android
./gradlew app:assembleDebug -Ptarget=`pwd`/../integration_test/appium_test.dart

Build the iOS app

For Simulator - Debug mode

flutter build ios integration_test/appium_test.dart --simulator

For Real Device - Release mode

flutter build ipa --release integration_test/appium_test.dart