Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Noteinfo

The support for Flutter is under active development and therefore is partial and subject to changes.

Info

Currently the AdPlayer Flutter plugin currently supports only for the Android .platform!

In order to use the AdPlayer Flutter Plugin you should follow these steps:
1. Add the plugin dependency in your pubspec.yaml file:

Code Block
languageyaml
dependencies:   
  adplayer_flutter_plugin: ^0^1.0.10

2. Add the maven repository of our native library to the android/build.gradle file and fill in your your password:

Code Block
languagegroovy
allprojects {
    repositories {
        maven {
            url ("https://us-central1-maven.pkg.dev/mobile-sdk-fd2e4/adservr-maven"
            credentials {
                username "_json_key_base64"
                password <your password>
            }
            authentication {
                basic(BasicAuthentication)
            }
        }
    }
}

3. Make sure to enable multidex in your application.
There are several ways to do that, as described in the article. One way to do that would be to add the following to your android/app/build.gradle file:

...