one_admax_flutter 1.0.2 copy "one_admax_flutter: ^1.0.2" to clipboard
one_admax_flutter: ^1.0.2 copied to clipboard

Flutter plugin for OneStore AdMax SDK, supporting banner, interstitial (full-screen), rewarded and native ads

one_admax_flutter #

GitHub Release Pub Version Pub Points

A Flutter plugin for ONE store AdMax Ads.

For more information, refer to the ONE AdMax Developer Guides.

Getting Started #

Pre-Preparations for ONE ADMAX #

Before you start using the ONE AdMax SDK, make sure to follow these steps:

Installation #

1. Add the Package

Run the following command to add the package to your project:

flutter pub add one_admax_flutter

Alternatively, you can manually add the dependency to your pubspec.yaml:

dependencies:
  one_admax_flutter: ^1.0.2

After updating your pubspec.yaml, run flutter pub get to install the package.

2. Modify build.gradle

In your project-level build.gradle, add the following Maven repository:

allprojects {
  repositories {
    maven { url 'https://repo.onestore.net/repository/onestore-sdk-public' }
  }
}

3. Modify AndroidManifest.xml

If your app's Target SDK version is 30 (OS 11) or higher, you must add the following

<manifest>
  ...
  <queries>
    <intent>
      <action android:name="com.onestore.iaa.intent.action.REWARD" />
    </intent>
  </queries>
  ...
  <application>
    ...
  </application>
</manifest>

Usage #

Import the plugin in your Dart code:

import 'package:one_admax_flutter/one_admax_flutter.dart';

Android Proguard Rules #

The plugin is already obfuscated and packaged as an AAR. However, you need to add the following Proguard rules to ensure proper obfuscation:

-keep packagenames com.oneadmax.**
-keep class com.oneadmax.global.** { public *; }
-keep enum com.oneadmax.internal.* { *; }

Note #

This plugin uses json_serializable for the many data structs passed between the underlying platform layers and Dart. After editing any of the serialized data structs, rebuild the serializers by running flutter packages pub run build_runner build --delete-conflicting-outputs. flutter packages pub run build_runner watch --delete-conflicting-outputs will watch the file system for changes.

0
likes
0
points
132
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for OneStore AdMax SDK, supporting banner, interstitial (full-screen), rewarded and native ads

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, json_annotation, plugin_platform_interface

More

Packages that depend on one_admax_flutter

Packages that implement one_admax_flutter