Skip to main content

Flutter

Installation

Install the plugin by running this command in the console.

flutter pub add yodo1mas

Android setup

Add AdMob ID in AndroidManifest.xml, which can be found under Android > src > main folder.

<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="Your AdMob ID"/>

Make sure to add this code inside the tag.

You can find your AdMob ID in the MAS dashboard.

You need to add the following lines in build.gradle app level in the buildtypes release section.

minifyEnabled false
shrinkResources false

Then, add the following line in build.gradle app level in the default config section.

multiDexEnabled true

iOS setup

Add the following lines to your Podfile.

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Yodo1Games/MAS-Spec.git'
source 'https://github.com/Yodo1Games/Yodo1Spec.git'

Set the target version to a minimum value of 12.

platform :ios, '12.0'

Next Steps