Follow the below steps to get your license key:
Step 1: Sign up into MirrorFly Console page (https://console.mirrorfly.com/register) for free MirrorFly account, If you already have a MirrorFly account, sign into your account
Step 2: Once you’re in! You get access to your MirrorFly account ‘Overview page’ where you can find a license key for further integration process
Step 3: Copy the license key from the ‘Application info’ section Step 4: Add the following to your root build.gradle file in your Android folder.
allprojects { repositories { google() mavenCentral() jcenter() maven { url "https://repo.mirrorfly.com/release" } } } Add the following dependencies in the app/build.gradle file.
android { packagingOptions { exclude 'META-INF/AL2.0' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/LGPL2.1' exclude("META-INF/*.kotlin_module") } } Create iOS dependency# Step 5: Check and Add the following code at end of your ios/Podfile
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.1' config.build_settings['ENABLE_BITCODE'] = 'NO' config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No' config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end end end Step 6: Now, enable all the below mentioned capabilities into your project.
Goto Project -> Target -> Signing & Capabilities -> Click + at the top left corner -> Search for the capabilities below