flutter_mopub 0.0.1 copy "flutter_mopub: ^0.0.1" to clipboard
flutter_mopub: ^0.0.1 copied to clipboard

outdated

A new Flutter plugin that uses native platform views to show mopub rewarded video ads.

flutter_mopub #

Gitlab pipeline status

A new Flutter plugin that uses native platform views to show mopub rewarded video ads!

Installation #

  1. Depend on it Add this to your package's pubspec.yaml file:
dependencies:
  flutter_mopub: ^0.0.1

  1. Install it You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

  1. Import it Now in your Dart code, you can use:
import 'package:flutter_mopub/flutter_mopub.dart';

Supported Platforms #

  • 0.2.0 >= AndroidX

Supported MoPub features #

  • Rewarded Video Ads

Android integration #

  • Change minimum sdk to 19 :
  1. Open app level build.gradle file (android/app/build.gradle)
  2. In android->defaultConfig scope change this line
defaultConfig {
        .
        .
        .
        minSdkVersion 19 //default is 16
        .
        .
        .
        multiDexEnabled true //add this line if you have build errors
    }
  • In dependencies scope add this line (to resolve conflict between packages. apply only if you face build errors)
dependencies {
        .
        .
        .
        implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava' //add this line
        .
        .
        .
    }

View the rest of the documentation on the example tab. #

7
likes
40
pub points
31%
popularity

Publisher

unverified uploader

A new Flutter plugin that uses native platform views to show mopub rewarded video ads.

Repository (GitLab)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_mopub