Coder Social home page Coder Social logo

appodeal_ads's Introduction

appodeal_ads

A new flutter plugin project.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

  • Test publish: flutter pub publish --dry-run

  • Publish: flutter pub publish

Donations

Please coffee for me if it's helpful for you. Thanks ^_^

appodeal_ads's People

Contributors

camapblue avatar

Stargazers

Mikhail Radaev avatar Adeyemo OlaOluwa avatar Andy Vavrynets avatar

Watchers

 avatar James Cloos avatar

appodeal_ads's Issues

Support Ad Meditation

Hello,

is this lib Support Ad Meditation? if yes is there any additional configurations needed?

ads in baner

hello I would like to know if u will put support for ads in baner? dispute the ordering I know that it takes a lot of work to make this plugin. leave your paypal so you can make a donation

Cant run example app

Launching lib/main.dart on Android SDK built for x86 in debug mode...
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:15: error: cannot find symbol
import com.appodeal.ads.NativeAdView;
                       ^
  symbol:   class NativeAdView
  location: package com.appodeal.ads
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:16: error: cannot find symbol
import com.appodeal.ads.NativeIconView;
                       ^
  symbol:   class NativeIconView
  location: package com.appodeal.ads
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:30: error: cannot find symbol
  private final NativeAdView nativeAdView;
                ^
  symbol:   class NativeAdView
  location: class FlutterNativeAdView
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:27: error: FlutterNativeAdView is not abstract and does not override abstract method dispose() in PlatformView
public class FlutterNativeAdView implements PlatformView, MethodCallHandler {
       ^
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:33: error: cannot find symbol
    nativeAdView = new NativeAdView(context);
                       ^
  symbol:   class NativeAdView
  location: class FlutterNativeAdView
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:57: error: cannot find symbol
    TextView tvTitle = (TextView) nativeAdView.findViewById(R.id.tv_title);
                                                                ^
  symbol:   variable tv_title
  location: class id
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:61: error: cannot find symbol
    TextView tvDescription = (TextView) nativeAdView.findViewById(R.id.tv_description);
                                                                      ^
  symbol:   variable tv_description
  location: class id
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:65: error: cannot find symbol
    RatingBar ratingBar = (RatingBar) nativeAdView.findViewById(R.id.rb_rating);
                                                                    ^
  symbol:   variable rb_rating
  location: class id
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:75: error: cannot find symbol
    Button ctaButton = (Button) nativeAdView.findViewById(R.id.b_cta);
                                                              ^
  symbol:   variable b_cta
  location: class id
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:79: error: incompatible types: FlutterNativeAdView cannot be converted to Context
    View providerView = nativeAd.getProviderView(this);
                                                 ^
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:84: error: cannot find symbol
        FrameLayout providerViewContainer = (FrameLayout) nativeAdView.findViewById(R.id.provider_view);
                                                                                        ^
  symbol:   variable provider_view
  location: class id
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:90: error: cannot find symbol
    TextView tvAgeRestrictions = (TextView) nativeAdView.findViewById(R.id.tv_age_restriction);
                                                                          ^
  symbol:   variable tv_age_restriction
  location: class id
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:98: error: cannot find symbol
    NativeIconView nativeIconView = nativeAdView.findViewById(R.id.icon);
    ^
  symbol:   class NativeIconView
  location: class FlutterNativeAdView
/home/selva/flutterproj/appodeal_ads/android/src/main/java/com/studio85neighbors/appodeal_ads/FlutterNativeAdView.java:101: error: cannot find symbol
    NativeMediaView nativeMediaView = (NativeMediaView) nativeAdView.findViewById(R.id.appodeal_media_view_content);
                                                                                      ^
  symbol:   variable appodeal_media_view_content
  location: class id
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
14 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':appodeal_ads:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)


This is the error

Old SDK and issues with GDPR compliance

Hi,

I have recently decided to integrate Appodeal ads in my flutter app. When doing so I stumbled upon this package and found it very useful. However there are a few issues that I have discovered and i would like to inform you.

First of all the default ads themselves report all the issues with the package. When I first installed the package and loaded an interstitial ad I got a default Appodeal ad which reported errors and warnings. Most notably it reported that a deprecated version of the SDK is being used and that there is a problem with GDPR compliance and user consent.

As seen in your build.gradle file, the SDK version being used is 2.6.5.0 which is reported as deprecated in the Appodeal documentation. Please update this to a 2.7.2.+ or higher version.
On another note concerning the GDPR compliance, in the android/src/main/java/com/studio85neighbors/appodeal_ads/MethodCallHandlerImpl.java file you are setting the user id, age and gender without checking whether there is user consent. Also you do not set the consentValue in the Appodeal.initialize() method in the same file.
This causes issues and can flag developers ads without them even knowing that the problem is in the package itself. The newest Appodeal SDK (2.7) offers full consent so this could be a way to solve the issues.

I wanted to post a pull request but I do not know how you want to go about the "set gender/age/id" situation. In my app I am not collecting this data so I just removed that part of the package code, but a more clever method where you ask for consent is better if you ask me.

Thank you for this package and I hope you update it. The effort is minimal and it would really make for a usable and good Appodeal flutter package to which there is no alternative at the moment.

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.