one_admax_flutter 1.0.1
one_admax_flutter: ^1.0.1 copied to clipboard
Flutter plugin for OneStore AdMax SDK, supporting banner, interstitial (full-screen), rewarded and native ads
one_admax_flutter #
[
A flutter plugin for ONE store AdMax Ads.
For more information, see the ONE AdMax Developer Guides.
Getting started #
Pre-Preparations for ONE ADMAX #
Installation #
- Add package
- Run this command with flutter:
>
> ```
$ flutter pub add one_admax_flutter ```
- Add dependency to pubspec.yaml
> ```dart
dependencies: one_admax_flutter: ^1.0.0 ```
Click 'pub get' to download the package or run 'flutter pub get' from the command line.
Add dependencies to build.gradle
> - Add the maven address to the **project's** build.gradle
>
> ```groovy
allprojects { repositories { maven { url 'https://repo.onestore.net/repository/onestore-sdk-public' } } } ```
- Add to AndroidManifest.xml
- If the Target SDK version is 30 (OS 11) or higher, the <queries> below must be added for the in-app library to operate properly.
>
> ```xml
<manifest> ... <queries> <intent> <action android:name="com.onestore.iaa.intent.action.REWARD" /> </intent> </queries> ... <application> ... </application> </manifest> ```
Usage #
Import it and use in Dart code.
import 'package:one_admax_flutter/one_admax_flutter.dart';
- Flutter-Plugin Guide
- 보상형 비디오 광고 for Flutter
- 전면 광고 for Flutter
- 전면 비디오 광고 구현하기
- 전면 비디오 광고 for Flutter (비보상형)
Android Proguard Rules #
It's already obfuscated and in aar, so add the package to the proguard rules.
-keeppackagenames 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 filesystem for changes.