Install the SDK
Last updated
Last updated
To use this plugin, run this command:
Alternatively, add flight_recorder
as a .
Make the following updates to your android project:
In order for the screen recording to work, the MainActivity needs to extend FlutterFragmentActivity rather than FlutterActivity. Update the code as follows:
Open your Flutter app in your coding editor.
Open the file at ./android/app/src/main/kotlin/{your app path}/MainActivity.kt
.
Replace the line import io.flutter.embedding.android.FlutterActivity
with import io.flutter.embedding.android.FlutterFragmentActivity
.
Replace class MainActivity: FlutterActivity() {
with class MainActivity: FlutterFragmentActivity()
.
flight_recorder is compatible only from version 21 of Android SDK, the required compileSdkVersion is 34. Update these settings as follows:
Open the file at ./android/app/build.gradle
.
Locate the android
section, and inside there, the defaultConfig
section.
Replace the line minSdkVersion flutter.minSdkVersion
with minSdkVersion 21
, as per the following code snippet:
Insert the line compileSdkVersion 34
underneath minSdkVersion 21
as follows:
Open the Xcode workspace in your project by opening ios/Runner.xcworkspace
.
Select the project in the Project Navigator (A). Select your app's main target inside the TARGETS section (B), then click on the General tab (C) to open the general build settings for this target.
Open ios/Flutter/AppframeworkInfo.plist
and update the MinimumOSVersion
value to match the version you selected.
Verify that the version in Minimum Deployments is 15.0 or higher. If the version is lower than 15.0, update the minimum deployment to 15.0 or higher. If you wish to continue supporting users on devices running iOS lower than 15.0, contact us at . NB: , and users of these devices will no longer receive security updates from Apple.