Skip to content

Aniview/ada-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ada Flutter Plugin

A Flutter plugin for using the native Ada SDK.

Getting Started

Here are steps to configure a fresh project:

  1. Add plugin dependency to the pubspec.yaml file:
dependencies:
    ada: ^1.0.0-beta01
  1. Create AdaViewController instance:
class _MyState extends State<MyApp> {
  final _controller = AdaViewController(
    config: const AdaConfig(
      publisherId: "publisher-id",
      tagId: "tag-id",
    ),
  );

  // ...
}
  1. Create AdaView widget:
class _MyState extends State<MyApp> {
  // ...

  @override
  Widget build(BuildContext context) {
    return AdaView(controller: _controller);
  }
}

Android configuration

Building for Android platform requires repository configuration in the settings.gradle file:

dependencyResolutionManagement {
    repositories {
        maven {
            url "https://us-central1-maven.pkg.dev/mobile-sdk-fd2e4/adservr-maven"
        }
    }
}