Installation
Installing the plugin
Run the command below at the root of your Flutter project:
flutter pub add qitech_device_scan
The command installs the latest version and adds the dependency to your pubspec.yaml:
dependencies:
qitech_device_scan: ^2.0.0
Import
import 'package:qitech_device_scan/qitech_device_scan.dart';
And instantiate the plugin:
final _qitechDeviceScanPlugin = QitechDeviceScan();
Android setup
1. QI Tech Maven repository
Add the reference to QI Tech's Android repository in your build.gradle file:
allprojects {
repositories {
maven { url 'https://sdks.qitech.com.br/' }
...
}
}
2. AdMob
Initialize the AdMob service by adding the following code to your AndroidManifest.xml:
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="<ADMOB_APP_ID>"/>
If you do not have an ADMOB_APP_ID, contact suporte.caas@qitech.com.br.
3. Permissions
Declare in your AndroidManifest.xml the permissions you want to make available to the SDK. See Permissions for the full list.
iOS setup
1. QI Tech iOS repository source
Add the reference to QI Tech's iOS repository in your Podfile:
source 'https://cdn.cocoapods.org/'
source 'https://github.com/QITechSDKs/iOS.git'
2. Permissions
Declare in your Info.plist the permissions you want to make available to the SDK. See Permissions.
3. Installing the dependencies
Install the dependencies directly via CocoaPods:
cd ios
pod install
or via Flutter:
flutter build ios
From version 2.0.0 onwards, the native iOS SDK requires Datadog 3.x. If your app already uses datadog_flutter_plugin, use the latest version within major 3.x.