This guide will help you install and set up the Linkrunner SDK in your Flutter application.

Requirements

  • Flutter 3.19.0 or higher
  • Dart 3.3.0 or higher
  • iOS 15.0+ / Android 5.0 (API level 21) and above

Installation

Step 1: Add the Package

Run the following command to add the latest version of the Linkrunner package to your project:
flutter pub add linkrunner
This command will automatically:
  • Add the latest version of linkrunner to your pubspec.yaml
  • Download and install the package and its dependencies

Step 2: Platform Specific Setup

Android Configuration

  1. Ensure your project’s minSdkVersion is at least 21 in your android/app/build.gradle file:
android {
    defaultConfig {
        minSdkVersion 21
        // other config...
    }
}
  1. Add the following permissions to your AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

iOS Configuration

  1. Update your iOS deployment target to iOS 15.0 or higher in your ios/Podfile:
platform :ios, '15.0'
  1. Add the following to your Info.plist file for App Tracking Transparency:
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads and improve your app experience.</string>

Dependencies

The Linkrunner SDK uses the following packages:
  • advertising_id: ^2.7.1
  • android_play_install_referrer: ^0.4.0
  • app_links: ^6.1.4
  • connectivity_plus: ^6.0.3
  • device_info_plus: ^11.0.0
  • http: ^1.2.1
  • package_info_plus: ^8.0.0
  • shared_preferences: ^2.0.11
  • url_launcher: ^6.2.6
These are automatically installed when you add the Linkrunner SDK to your application.

Next Steps

After installation, proceed to the Usage Guide to learn how to initialize and use the Linkrunner SDK in your Flutter application.