Giter Club home page Giter Club logo

appodeal-flutter-plugin's People

Contributors

antonzarytski avatar da2gl avatar flucadetena avatar kulartsiom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appodeal-flutter-plugin's Issues

Flutter Build Error: Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility56

I'm unable to build from Flutter due to the following error, and I need help resolving it:

Could not build the precompiled application for the device. Error (Xcode): Undefined symbol: _swift_FORCE_LOAD$_swiftCompatibility56 2. XCode 15.1

Here's my environment:

Flutter (Channel stable, 3.16.4, on macOS 14.1.1 23B81 darwin-arm64, locale ja-JP)
Android toolchain - develop for Android devices (Android SDK version 31.0.0)
Xcode - develop for iOS and macOS (Xcode 14.1)
Chrome - develop for the web
Android Studio (version 2022.3)
VS Code (version 1.85.1)
VS Code (version 1.79.0-insider)
Connected device (3 available)
Network resources
No issues were found during the Flutter doctor check.

I believe this issue is similar to the one discussed in this GitHub issue: #50

Building directly from Xcode is possible.

Here's my podfile:

platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

use_frameworks!

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

install! 'cocoapods', :warn_for_multiple_pod_sources => false

source 'https://github.com/appodeal/CocoaPods.git'
source 'https://cdn.cocoapods.org/'

def appodeal
  pod 'Appodeal', '3.2.0'
  pod 'APDAdColonyAdapter', '3.2.0.0'
  pod 'BidMachineAdColonyAdapter', '~> 2.3.0'
  pod 'APDAppLovinAdapter', '3.2.0.0'
  pod 'BidonAdapterAppLovin', '~> 0.4.6'
  pod 'APDBidMachineAdapter', '3.2.0.0' # Required
  pod 'BidMachineAmazonAdapter', '= 2.3.0.1'
  pod 'BidMachineCriteoAdapter', '~> 2.3.0'
  pod 'BidMachineSmaatoAdapter', '~> 2.3.0'
  pod 'BidMachineTapjoyAdapter', '~> 2.3.0'
  pod 'BidMachinePangleAdapter', '~> 2.3.0'
  pod 'APDBidonAdapter', '3.2.0.0' # Required
  pod 'BidonAdapterBidMachine', '~> 0.4.6'
  pod 'BidonAdapterAmazon', '~> 0.4.6'
  pod 'APDBigoAdsAdapter', '3.2.0.0'
  pod 'BidonAdapterBigoAds', '~> 0.4.6'
  pod 'APDDTExchangeAdapter', '3.2.0.0'
  pod 'BidonAdapterDTExchange', '~> 0.4.6'
  pod 'APDIABAdapter', '3.2.0.0' # Required
  pod 'APDInMobiAdapter', '3.2.0.0'
  pod 'BidonAdapterInMobi', '~> 0.4.6'
  pod 'APDIronSourceAdapter', '3.2.0.0'
  pod 'APDMetaAudienceNetworkAdapter', '3.2.0.0'
  pod 'BidMachineMetaAudienceAdapter', '~> 2.3.0'
  pod 'BidonAdapterMetaAudienceNetwork', '~> 0.4.6'
  pod 'APDMintegralAdapter', '3.2.0.0'
  pod 'BidMachineMintegralAdapter', '= 2.3.0.3'
  pod 'BidonAdapterMintegral', '~> 0.4.6'
  pod 'APDMyTargetAdapter', '3.2.0.0'
  pod 'BidMachineMyTargetAdapter', '~> 2.3.0'
  pod 'APDStackAnalyticsAdapter', '3.2.0.0' # Required
  pod 'APDStackCrashReporterAdapter', '3.2.0.0'
  pod 'APDUnityAdapter', '3.2.0.0'
  pod 'BidonAdapterUnityAds', '~> 0.4.6'
  pod 'APDVungleAdapter', '3.2.0.0'
  pod 'BidMachineVungleAdapter', '~> 2.3.0'
  pod 'BidonAdapterVungle', '~> 0.4.6'
  pod 'APDYandexAdapter', '3.2.0.0'
end

target 'Runner' do
  use_frameworks!
  use_modular_headers!
  appodeal

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    target.build_configurations.each do |config|
      # --- Fix for Xcode 15.0 ---
      xcconfig_path = config.base_configuration_reference.real_path
      xcconfig = File.read(xcconfig_path)
      xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
      File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
      # ---------------------------------
    end
  end
end

Banner Ads Disappear on Tab Switch in Android Using AppodealBanner

Description:
When displaying banner ads in a multi-tab setup on Android using AppodealBanner, the banners disappear upon switching tabs. This issue does not occur on iOS, where the banners remain visible as expected.

Steps to Reproduce:

Implement AppodealBanner in a Flutter application with multiple tabs.
Run the app on an Android device.
Switch between the tabs.
Observe that the banner ads disappear when switching tabs.

Expected Behavior:
The banner ads should remain visible when switching between tabs, similar to the behavior observed on iOS.

Actual Behavior:
Banner ads disappear upon switching tabs on Android.

import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:ienon/foundation/constant/constants.dart';
import 'package:ienon/foundation/util/logger.dart';
import 'package:ienon/state/subscription.dart';
import 'package:stack_appodeal_flutter/stack_appodeal_flutter.dart';

class BannerAdWidget extends HookConsumerWidget {
  const BannerAdWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    useFuture(useMemoized(() {
      Appodeal.setBannerCallbacks(
          onBannerLoaded: (isPrecache) => logger.info('onBannerLoaded'),
          onBannerFailedToLoad: () => logger.info('onBannerFailedToLoad'),
          // other callbacks
      );
      return null;
    }));

    return ref.watch(subscriptionProvider).when(
          data: (data) => data == null && Constants.of().flavor == Flavor.prod
              ? Container(
                  alignment: Alignment.center,
                  child: const AppodealBanner(
                      adSize: AppodealBannerSize.BANNER, placement: "default"))
              : const SizedBox(),
          // other cases
        );
  }
}

Environment:

Flutter version: 3.16.4
Appodeal Flutter plugin version: 3.2.0

App crash

I had a crash when VastActivity try to launch, maybe some problem with obsurfucation and proguard. Any ideas how to fix that?

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eecorp.wordsearch/com.explorestack.iab.vast.activity.VastActivity}: java.lang.RuntimeException: java.lang.NoSuchMethodException: z2.f.values []
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4022)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4188)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2425)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8582)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:563)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)

Caused by java.lang.RuntimeException: java.lang.NoSuchMethodException: z2.f.values []
at java.lang.Enum.enumValues(Enum.java:270)
at java.lang.Enum.access$000(Enum.java:61)
at java.lang.Enum$1.create(Enum.java:277)
at java.lang.Enum$1.create(Enum.java:275)
at libcore.util.BasicLruCache.get(BasicLruCache.java:63)
at java.lang.Enum.getSharedConstants(Enum.java:289)
at java.lang.Enum.valueOf(Enum.java:243)
at java.io.ObjectInputStream.readEnum(ObjectInputStream.java:1841)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1409)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:427)
at android.os.Parcel.readSerializable(Parcel.java:3519)
at android.os.Parcel.readSerializable(Parcel.java:3489)
at com.explorestack.iab.vast.VastRequest.(:67)
at com.explorestack.iab.vast.VastRequest$c.createFromParcel(:2)
at android.os.Parcel.readParcelable(Parcel.java:3345)
at android.os.Parcel.readValue(Parcel.java:3238)
at android.os.Parcel.readArrayMapInternal(Parcel.java:3635)
at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
at android.os.BaseBundle.unparcel(BaseBundle.java:236)
at android.os.Bundle.getParcelable(Bundle.java:1002)
at android.content.Intent.getParcelableExtra(Intent.java:9180)
at com.explorestack.iab.vast.activity.VastActivity.onCreate(:27)
at android.app.Activity.performCreate(Activity.java:8282)
at android.app.Activity.performCreate(Activity.java:8262)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3996)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4188)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2425)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8582)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:563)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)

Compile error on IOS (Undefined symbols for architecture arm64)

Hi.

I cannot compile app on ios.

I just followed the instructions on pub.dev.

plugin version:
stack_appodeal_flutter: ^1.1.0

My Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

def appodeal
  pod 'APDAdColonyAdapter', '2.11.1.2'
  pod 'APDAmazonAdsAdapter', '2.11.1.2'
  pod 'APDAppLovinAdapter', '2.11.1.2'
  pod 'APDBidMachineAdapter', '2.11.1.2' # Required
  pod 'APDFacebookAudienceAdapter', '2.11.1.2'
  pod 'APDGoogleAdMobAdapter', '2.11.1.2'
  pod 'APDIronSourceAdapter', '2.11.1.2'
  pod 'APDMyTargetAdapter', '2.11.1.2'
  pod 'APDOguryAdapter', '2.11.1.1'
  pod 'APDUnityAdapter', '2.11.1.1'
  pod 'APDVungleAdapter', '2.11.1.2'
  pod 'APDYandexAdapter', '2.11.1.1'
end

target 'Runner' do
  use_frameworks!
  use_modular_headers!
  appodeal

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

After pod install i get a lot of warnings(don't know if this is important). I tried a lot of suggestions from SO, but nothing worked.

pod install warnings
[!] Can't merge user_target_xcconfig for pod targets: ["APDMyTargetAdapter", "IronSourceSDK", "OguryAds", "OMID", "YandexMobileAds", "Static"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["BDMAdColonyAdapter", "BDMAmazonAdapter", "BDMCriteoAdapter", "BDMFacebookAdapter", "BDMIABAdapter", "IAB", "MRAID", "NAST", "VAST", "BDMMyTargetAdapter", "BDMPangleAdapter", "BidMachine", "Core", "StackAnalytics", "Base", "Crashes", "Full", "StackConsentManager", "StackModules", "StackFoundation", "StackProductPresentation", "StackUIKit", "myTrackerSDK"]. Singular build setting VALID_ARCHS[sdk=iphoneos*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["BDMAdColonyAdapter", "BDMAmazonAdapter", "BDMCriteoAdapter", "BDMFacebookAdapter", "BDMIABAdapter", "IAB", "MRAID", "NAST", "VAST", "BDMMyTargetAdapter", "BDMPangleAdapter", "BidMachine", "Core", "StackAnalytics", "Base", "Crashes", "Full", "StackConsentManager", "StackModules", "StackFoundation", "StackProductPresentation", "StackUIKit", "myTrackerSDK"]. Singular build setting VALID_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["APDMyTargetAdapter", "IronSourceSDK", "OguryAds", "OMID", "YandexMobileAds", "Static"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["BDMAdColonyAdapter", "BDMAmazonAdapter", "BDMCriteoAdapter", "BDMFacebookAdapter", "BDMIABAdapter", "IAB", "MRAID", "NAST", "VAST", "BDMMyTargetAdapter", "BDMPangleAdapter", "BidMachine", "Core", "StackAnalytics", "Base", "Crashes", "Full", "StackConsentManager", "StackModules", "StackFoundation", "StackProductPresentation", "StackUIKit", "myTrackerSDK"]. Singular build setting VALID_ARCHS[sdk=iphoneos*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["BDMAdColonyAdapter", "BDMAmazonAdapter", "BDMCriteoAdapter", "BDMFacebookAdapter", "BDMIABAdapter", "IAB", "MRAID", "NAST", "VAST", "BDMMyTargetAdapter", "BDMPangleAdapter", "BidMachine", "Core", "StackAnalytics", "Base", "Crashes", "Full", "StackConsentManager", "StackModules", "StackFoundation", "StackProductPresentation", "StackUIKit", "myTrackerSDK"]. Singular build setting VALID_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["APDMyTargetAdapter", "IronSourceSDK", "OguryAds", "OMID", "YandexMobileAds", "Static"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["BDMAdColonyAdapter", "BDMAmazonAdapter", "BDMCriteoAdapter", "BDMFacebookAdapter", "BDMIABAdapter", "IAB", "MRAID", "NAST", "VAST", "BDMMyTargetAdapter", "BDMPangleAdapter", "BidMachine", "Core", "StackAnalytics", "Base", "Crashes", "Full", "StackConsentManager", "StackModules", "StackFoundation", "StackProductPresentation", "StackUIKit", "myTrackerSDK"]. Singular build setting VALID_ARCHS[sdk=iphoneos*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["BDMAdColonyAdapter", "BDMAmazonAdapter", "BDMCriteoAdapter", "BDMFacebookAdapter", "BDMIABAdapter", "IAB", "MRAID", "NAST", "VAST", "BDMMyTargetAdapter", "BDMPangleAdapter", "BidMachine", "Core", "StackAnalytics", "Base", "Crashes", "Full", "StackConsentManager", "StackModules", "StackFoundation", "StackProductPresentation", "StackUIKit", "myTrackerSDK"]. Singular build setting VALID_ARCHS[sdk=iphonesimulator*] has different values.
Compiling error
  ld: warning: Could not find or use auto-linked library 'swiftFileProvider'
  ld: warning: Could not find or use auto-linked library 'swiftCompatibilityConcurrency'
  ld: warning: Could not find or use auto-linked library 'swift_Concurrency'
  ld: warning: Could not find or use auto-linked library 'swiftDataDetection'
  ld: warning: Could not find or use auto-linked framework 'AVFAudio'
  ld: warning: Could not find or use auto-linked framework 'DataDetection'
  Undefined symbols for architecture arm64:
    "__swift_FORCE_LOAD_$_swiftDataDetection", referenced from:
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyVideoAdapter.o)
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyAdNetwork.o)
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(APDAdColonyAppOptions.o)
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyApi.o)
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonNetwork.o)
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonInterstitialAdapter.o)
        __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonBannerAdapter.o)
        ...
       (maybe you meant: __swift_FORCE_LOAD_$_swiftDataDetection_$_APDIronSourceAdapter, __swift_FORCE_LOAD_$_swiftDataDetection_$_APDOguryAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAppLovinAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_StackProductPresentation , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAdColonyAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_FBAudienceNetwork , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDAmazonAdsAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDBidMachineAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDUnityAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDYandexAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDVungleAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDFacebookAudienceAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDMyTargetAdapter , __swift_FORCE_LOAD_$_swiftDataDetection_$_APDGoogleAdMobAdapter )
    "_OBJC_CLASS_$_SKAdImpression", referenced from:
        objc-class-ref in AdColony(ADCAdSession.o)
        objc-class-ref in AppLovinSDK(ALStoreKitService.o)
        objc-class-ref in FBAudienceNetwork(FBAdSKAdNetworkManager.m.o)
        objc-class-ref in MyTargetSDK(MTRGSkadParser.o)
        objc-class-ref in YandexMobileAds(YMASKAdImpressionFactory.o)
       (maybe you meant: _OBJC_CLASS_$_SKAdImpressionProxy)
    "__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from:
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyVideoAdapter.o)
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyAdNetwork.o)
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(APDAdColonyAppOptions.o)
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyApi.o)
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonNetwork.o)
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonInterstitialAdapter.o)
        __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonBannerAdapter.o)
        ...
       (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDFacebookAudienceAdapter, __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAdColonyAdapter , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAmazonAdsAdapter , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_StackProductPresentation , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDVungleAdapter , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDGoogleAdMobAdapter , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDBidMachineAdapter , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDMyTargetAdapter , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_APDAppLovinAdapter )
    "__swift_FORCE_LOAD_$_swiftFileProvider", referenced from:
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyVideoAdapter.o)
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyAdNetwork.o)
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(APDAdColonyAppOptions.o)
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAdColonyAdapter in libAPDAdColonyAdapter.a(AdColonyApi.o)
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonNetwork.o)
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonInterstitialAdapter.o)
        __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAmazonAdsAdapter in libAPDAmazonAdsAdapter.a(AmazonBannerAdapter.o)
        ...
       (maybe you meant: __swift_FORCE_LOAD_$_swiftFileProvider_$_StackProductPresentation, __swift_FORCE_LOAD_$_swiftFileProvider_$_APDVungleAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_FBAudienceNetwork , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDMyTargetAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAdColonyAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDFacebookAudienceAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDYandexAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAppLovinAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDAmazonAdsAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDBidMachineAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDOguryAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDIronSourceAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDUnityAdapter , __swift_FORCE_LOAD_$_swiftFileProvider_$_APDGoogleAdMobAdapter )
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

I also did one thing that is absent in instruction for IOS on pub.dev: i added SKAdNetworkItems in my info.plist because i found this step on instruction on your site(don't know if this is important). Did I do everything right, or should I not add it?

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.3, on Mac OS X 10.15.7 19H2 darwin-x64, locale ru-RU)
    • Flutter version 2.10.3 at /Users/radomir/development/flutter/2.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (3 days ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/radomir/Library/Android/sdk
    • Platform android-31, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/google-chrome-unsafe.sh)
    ! /Applications/Google Chrome.app/Contents/MacOS/google-chrome-unsafe.sh is not executable.

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.36.0

[✓] Connected device (2 available)

UPD: i found on your site that is required to use XCode 13 or later. I use 12.4. Could it be the problem?

Important questions not mentioned in the documentation

Am I correct with these three assumptions?

  1. There is no way to test it before actually committing ourselves and getting an app key. Even the test mode expects a valid key.
  2. Our apps will be quite a bit larger with very many SDK's bundled together and added.
  3. The build process (which is not the fastest in the first place) becomes terribly slow. Integration adds minutes to the process.

This is unfortunate. I had high hopes but with these circumstances, well...

Can't build project for iPhone simulator

Hello
Plugin works fine on the real device, but I get error every time when I try to run app on the iPhone simulator:

Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/v_/23c6t_x548b1vnjrg4f43pxw0000gn/T/flutter_tools.fweyMY/flutter_ios_build_temp_dir0vwbdM/temporary_xcresult_bundle

    warning: [CP] BDMPangleAdapter.xcframework: Unable to find matching slice in 'ios-x86_64-simulator ios-arm64_armv7' for the current build architectures (arm64 x86_64) and platform
    (-iphonesimulator).
    ld: library not found for -lBDMPangleAdapter
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
//----------------------------------

Error (Xcode): Library not found for -lBDMPangleAdapter


Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

I tried to build my own project and app from example folder. Both of them throw same error.
I have already tried to clean cache and update pods like this:

rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update

How to show native ads in Flutter app?

I want to show native video ads just like in reels in Instagram or in short videos in youtube. How I can show it with appodeal. I don't want to show here interstitial ad here. There is no method for displaying native ads in plugin.

after upd to flutter 3

Steps to Reproduce

e: E:\Flutter.pub-cache\hosted\pub.dartlang.org\stack_appodeal_flutter-1.2.0\android\src\main\kotlin\com\appodeal\appodeal_flutter\AppodealAdViewFactory.kt: (9, 10): Class 'AppodealAdViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Cont
ext?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory
e: E:\Flutter.pub-cache\hosted\pub.dartlang.org\stack_appodeal_flutter-1.2.0\android\src\main\kotlin\com\appodeal\appodeal_flutter\AppodealAdViewFactory.kt: (12, 5): 'create' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':stack_appodeal_flutter:compileReleaseKotlin'.

Compilation error. See log for more 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.

The app is using a version of the SDK that violates the rules

I recently received a notification from Google that my app is in violation of the rules. Message with the following content:

Your [app] version 31 application contains the com.yandex.android:mobmetricalib SDK or uses traffic, reliability from the SDK, which by default requests device location information and does not require programmatic ways whether the end user allows access to this information when placement. Products with SDKs that collect valuable and sensitive data without a license and a license violate the Google Play policies.

I was forced to urgently remove your plugin from the project. Tell me how you can solve this problem? Perhaps there will be a patch?

Apk size

After adding this package, apk size jumped from 28mb to 66mb 😰. What size can I expect after publishing as bundle to Google Play?

Call validateInAppPurchase with a build distributed via Firebase app distro doesn't execute any callbacks

Steps to Reproduce

Call validateInAppPurchase with a build distributed via Firebase app distro.

Expected results:
Validate the transaction successfully - it should be able to use the sandbox/test transactions on Google Play?

Actual results:
The callbacks for either onInAppPurchaseValidateSuccess or onInAppPurchaseValidateFail are not called

I am trying to use a completer to aid with async calls that I make (this works for my custom server side validation by the way)
Is there any way to submit a purchase without requiring Appodeal to verify it?

  final completer = Completer<bool?>();

  try {
    Appodeal.validateInAppPurchase(
      purchase: appodealPurchase,
      onInAppPurchaseValidateSuccess: (purchase, errors) {
        completer.complete(true);
      },
      onInAppPurchaseValidateFail: (purchase, errors) {
        completer.complete(false);
      },
    );
  } on Exception catch (exception, stack) {
    completer.complete(null);
  }

  return completer.future;

Google Play Rejection because of SDK: MyTarget com.my.target:mytarget-sdk

Steps to Reproduce

Upload a new binary using Appodeal SDK 3.1.3

Below is the full rejection email:
Google Play Rejection.pdf

We found an issue in the following area(s):

Version code 42:
SDK: MyTarget com.my.target:mytarget-sdk
To bring your app into compliance, follow these steps:

Verify that your app accesses, collects, uses, and shares (including with SDKs) device location only for approved purposes and in compliance with the applicable prominent disclosure and consent requirements of the above-mentioned policies. Do not enable SDK data collection if it violates these requirements.
Submit an appeal of this rejection and attach evidence (e.g. screenshots or a video demonstration of the in-app prominent disclosure and consent experience) of your compliance with the Prominent Disclosure requirements.

In the alternative, you may consider removing the SDK code designed to collect personal and sensitive user data by default, or moving to an alternative SDK or version which includes the appropriate technical mechanism to ensure that end user consent information collected by apps is honored. You may consider upgrading to a policy-compliant version of this SDK, if available from your SDK provider or removing the SDK. Google is unable to endorse or recommend any third party software.
MyTarget com.my.target:mytarget-sdk: Consider upgrading to a policy-compliant version of the SDK if available from your SDK provider, or removing the SDK.

Appodeal Flutter Interstitial Ads problem on Android

Steps to Reproduce

  1. Execute flutter run on the code sample
  2. ...
  3. ...

Expected results:
Initialize Appodeal on android
Actual results:
E/MethodChannel#appodeal_flutter(30781): Failed to handle method call
E/MethodChannel#appodeal_flutter(30781): java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List
E/MethodChannel#appodeal_flutter(30781): at com.appodeal.appodeal_flutter.AppodealFlutterPlugin.initialize(AppodealFlutterPlugin.kt:137)
E/MethodChannel#appodeal_flutter(30781): at com.appodeal.appodeal_flutter.AppodealFlutterPlugin.onMethodCall(AppodealFlutterPlugin.kt:50)
E/MethodChannel#appodeal_flutter(30781): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/MethodChannel#appodeal_flutter(30781): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/MethodChannel#appodeal_flutter(30781): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319)
E/MethodChannel#appodeal_flutter(30781): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
E/MethodChannel#appodeal_flutter(30781): at android.os.Handler.handleCallback(Handler.java:873)
E/MethodChannel#appodeal_flutter(30781): at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#appodeal_flutter(30781): at android.os.Looper.loop(Looper.java:201)
E/MethodChannel#appodeal_flutter(30781): at android.app.ActivityThread.main(ActivityThread.java:6810)
E/MethodChannel#appodeal_flutter(30781): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#appodeal_flutter(30781): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
E/MethodChannel#appodeal_flutter(30781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

Code sample
Logs
flutter analyze
Analyzing repository
No issues found! (ran in 4.0s)
flutter doctor -v
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.5 21G72 darwin-x64, locale tr-TR)
    • Flutter version 3.0.0 at /Users/____/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (4 months ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/_____/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.70.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] Connected device (3 available)
    • Redmi Note 6 Pro (mobile) • b1a0467 • android-arm64  • Android 9 (API 28)
    • macOS (desktop)           • macos   • darwin-x64     • macOS 12.5 21G72 darwin-x64
    • Chrome (web)              • chrome  • web-javascript • Google Chrome 104.0.5112.101

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

How to know whether users agreed consent or not?

I'm new user of Appodeal Flutter (ver 3.0.0) and I don't understand how to know if the user agrees to the terms of the consent or not because onClosed() callback of Appodeal.showConsentForm doesn't return anything.

Can you tell me how to know that. Many thanks.

Full width banner

Steps to Reproduce

  1. Make sure smart banner are enabled Appodeal.setSmartBanners(true);
  2. Add a banner inside a container AppodealBanner( adSize: AppodealBannerSize.BANNER, placement: "default" )

Expected results: Banner to fill the full width if is possible

Actual results: Baner has a fixed size

Image

IMG_3584

Maybe re-license the library as MIT, BSD or Apache?

I see the library uses the GPL. Quite unusual for pub.dev.

Do you expect every Appodeal client who decided to use this library to re-license their entire application under the GPL and make their source code public? Or should they overlook the license and become violators of copyright laws? It's hard to believe in both.

Google Play console alert

I get this alert:

com.appsflyer:af-android-sdk:6.8.0
This SDK version has a note from the SDK developer. Here's what the SDK developer told us:

A critical issue with the caching mechanism of the SDK introduced in v6.7.0, causing cached events to be sent multiple times. Issue was fixed in v6.8.2

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException

Unfortunately, I don't have steps to reproduce, as I get the logs from Firebase Crashlytics.

It happens for 30% of users and 54% of the crashes on Google (Pixel?) devices, 50% on Android 13.
I've personally experienced crashes after finishing playing video ads, but I can't confirm if it is exactly this crash.
Crashlytics shows that the crash also happens 100% when device state is in background, which might be the case for playing videos.

This is the crashlogs:

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(error, Required value was null., null, java.lang.IllegalStateException: Required value was null.
	at com.appodeal.appodeal_flutter.f.a(AppodealBaseFlutterPlugin.kt:1)
	at com.appodeal.appodeal_flutter.g.g(AppodealFlutterPlugin.kt:3)
	at com.appodeal.appodeal_flutter.g.onMethodCall(AppodealFlutterPlugin.kt:50)
	at r.a.c.a.j$a.a(MethodChannel.java:2)
	at io.flutter.embedding.engine.e.e.k(DartMessenger.java:2)
	at io.flutter.embedding.engine.e.e.l(DartMessenger.java:3)
	at io.flutter.embedding.engine.e.e.m(Unknown Source:0)
	at io.flutter.embedding.engine.e.a.run(Unknown Source:12)
	at android.os.Handler.handleCallback(Handler.java:978)
	at android.os.Handler.dispatchMessage(Handler.java:104)
	at android.os.Looper.loopOnce(Looper.java:238)
	at android.os.Looper.loop(Looper.java:357)
	at android.app.ActivityThread.main(ActivityThread.java:8089)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
)
       at StandardMethodCodec.decodeEnvelope(message_codecs.dart:653)
       at MethodChannel._invokeMethod(platform_channel.dart:315)

Versions that are used:

stack_appodeal_flutter: ^3.0.2

Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9944297138 (8 weeks ago) • 2023-02-08 15:46:04 -0800
Engine • revision 248290d6d5
Tools • Dart 2.19.2 • DevTools 2.20.1

ConsentManager - Android

ConsentManager.showAsActivityConsentForm() and ConsentManager.loadConsentForm(); from example does not work.
Same for showAsDialogConsentForm(), always error onConsentFormError error - com.explorestack.consent.exception.ConsentManagerInconsistentException@ac3c7f4 var consentStatus = await ConsentManager.getConsentStatus();returnthrow MissingPluginException('No implementation found for method $method on channel $name');`

` Can you fix it?

Appodeal crash

Hello,

I've faced a crash.
It happens during flutter engine init.

The activity ref can't be found.

Flutter version: 3.0.2
Appodeal version: 1.2.2

Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(error, Required value was null., null, java.lang.IllegalStateException: Required value was null.
	at com.appodeal.appodeal_flutter.d.c(AppodealBaseFlutterPlugin.kt:1)
	at com.appodeal.appodeal_flutter.e.g(AppodealFlutterPlugin.kt:106)
	at yr.i$a.a(MethodChannel.java:4)
	at nr.c.g(DartMessenger.java:1)
	at nr.b.run(Unknown Source:2)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:233)
	at android.app.ActivityThread.main(ActivityThread.java:8010)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
). Error thrown null.
       at StandardMethodCodec.decodeEnvelope(message_codecs.dart:607)
       at MethodChannel._invokeMethod(platform_channel.dart:167)

It could be related that I've integrated flutter as a module in the existing app.

Thanks!

Can't load interstitial ads on Android 7.0

I have encountered an error, where interstitial ads cannot be loaded on devices with Android 7.0 (real device and emulators). Stack trace shows next error:

D/Appodeal( 3839): Interstitial [Load Failed]: Yandex - INTERNAL ERROR (4) - eCPM: 0.00, precache: false, expTime: 0, id: UDMyS...
W/System.err( 3839): java.net.UnknownHostException: Unable to resolve host "api.appodealx.com": No address associated with hostname
W/System.err( 3839): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:125)
W/System.err( 3839): 	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:74)
W/System.err( 3839): 	at java.net.InetAddress.getAllByName(InetAddress.java:752)
W/System.err( 3839): 	at com.android.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)
W/System.err( 3839): 	at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:187)
W/System.err( 3839): 	at com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:156)
W/System.err( 3839): 	at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:98)
W/System.err( 3839): 	at com.android.okhttp.internal.http.HttpEngine.createNextConnection(HttpEngine.java:345)
W/System.err( 3839): 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328)
W/System.err( 3839): 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
W/System.err( 3839): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
W/System.err( 3839): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
W/System.err( 3839): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)
W/System.err( 3839): 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
W/System.err( 3839): 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
W/System.err( 3839): 	at io.bidmachine.core.NetworkRequest.process(NetworkRequest.java:155)
W/System.err( 3839): 	at io.bidmachine.core.NetworkRequest.access$100(NetworkRequest.java:30)
W/System.err( 3839): 	at io.bidmachine.core.NetworkRequest$NetworkRequestRunner.run(NetworkRequest.java:513)
W/System.err( 3839): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err( 3839): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err( 3839): 	at java.lang.Thread.run(Thread.java:761)
W/System.err( 3839): Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
W/System.err( 3839): 	at libcore.io.Posix.android_getaddrinfo(Native Method)
W/System.err( 3839): 	at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
W/System.err( 3839): 	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:106)
W/System.err( 3839): 	... 20 more
D/BidMachineLog( 3839): obtainError: java.net.UnknownHostException: Unable to resolve host "api.appodealx.com": No address associated with hostname(com.android.okhttp.internal.huc.HttpURLConnectionImpl:https://api.appodealx.com/auction/init)

This error shows only when trying to load actual ads. Integration screen (Appodeal.setTesting(true)) appears normally without any error.
stack_appodeal_flutter: v1.2.0
appodeal android sdk: v2.11.1.0

AppodealBannerView not display in PageView

PageView have 3 childs: widget1, widget2, widget3. Each widget have it's custom AppodealBannerView.
First we open widget1 -> AppodealBannerView display correct, but if we open widget2 then return to widget1 -> AppodealBannerView display blank

Appodeal installation : Installing without admob result in crash

Steps to Reproduce

Follow installation steps at https://github.com/appodeal/Appodeal-Flutter-Plugin#android

Skip step 3. Admob Configuration (if you use Admob adapter)

<manifest>
    <application>
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="[ADMOB_APP_ID]"/>
    </application>
</manifest>

Result

App will crash

Question

When installed with Admob, the app would run normal. However, without Admob, the app would crash. Is there a way to install without Admob and the app would not crash?

updateConsent method cause crash on iOS

I am getting this error when I call Appodeal.updateConsent(null).

stack_appodeal_flutter/SwiftAppodealFlutterPlugin.swift:87: Fatal error: Unexpectedly found nil while unwrapping an Optional value.

Ads on iOS are never initialized [Appodeal SDK - 3.2.0]

Steps to Reproduce

  1. Execute flutter run on your application using an iOS device
  2. Set the Appodeal SDK Logging to Verbose

Expected results: Ads on iOS working without a problem

Actual results: The ad is not initialized

Code sample
// My init method called in the main function

Future<bool> _init(){
    final completer = Completer<bool>();
    Appodeal.setTesting(kReleaseMode ? false : true);
    Appodeal.setLogLevel(Appodeal.LogLevelDebug);
    if(isInitialized){
      completer.complete(isInitialized);
    }else{
      String platform = 'ANDROID';
      if(Platform.isIOS){
        platform = 'IOS';
      }
      Appodeal.initialize(
        appKey: dotenv.get('APPODEAL_${platform}_APPLICATION_KEY'), 
        adTypes: [
          AppodealAdType.RewardedVideo,
        ],
        onInitializationFinished: (error) => {
          print(error),
          if(error == null){
            isInitialized = true,
            completer.complete(true)
          }else{
            completer.complete(false)
          }
        }
      );
      Appodeal.setRewardedVideoCallbacks(
        onRewardedVideoLoaded: (isPrecache) => {
          ApplicationInsights.instance.trackTrace(
            severity: Severity.information, 
            message: 'Ad Loaded!',
            properties: {
              'platform': Platform.operatingSystem,
            }
          ),
          isAdInitialized = true
        },
        onRewardedVideoFailedToLoad: () => {
          ApplicationInsights.instance.trackTrace(
            severity: Severity.warning, 
            message: 'Ad failed to load!',
            properties: {
              'platform': Platform.operatingSystem,
            }
          ),
          isAdInitialized = false
        },
      );
    }
    return completer.future;
  }
Logs

The logs are not useful because they don't show any error.

[✓] Flutter (Channel stable, 3.13.2, on macOS 14.0 23A344 darwin-arm64, locale it-IT)
    • Flutter version 3.13.2 on channel stable at /Users/francesco.vallone/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff5b5b5fa6 (7 weeks ago), 2023-08-24 08:12:28 -0500
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/francesco.vallone/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Community Edition (version 2023.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.83.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (3 available)
    • iPhone 15 Pro (mobile) • FA8BD913-2955-4157-9BB1-5BB06EE40CB5 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0
      (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 115.0.5790.98

[✓] Network resources
    • All expected network resources are available.

How to know banner size?

It will be a very big issue if I cannot get the banner size. Because my project depends on it.

Or at least can I get the find the banner on the widget tree?

Banner size is not updated after screen size changes

Hello,

I've found an issue that the banner isn't updated after the screen size was changed.

Preconditions:
I try to use maximum space for the banner widget.
So, my banner size depends on the screen size.

Widget example:

AppodealBanner(
      adSize: AppodealBannerSize(
        width: banner.size.width.round(),
        height: banner.size.height.round(),
        name: 'BANNER',
      ),
    )

When you rotate the device we have to update the banner size but nothing changes.

How to resolve the issue:

@override
  void didUpdateWidget(AppodealBanner oldWidget) {
    super.initState(oldWidget);
    if (widget.adSize != oldWidget.adSize) {
      setState(() {
        adSize = Future.value(Size(
          widget.adSize.width.toDouble(),
          widget.adSize.height.toDouble(),
        ));
      });
    }

  }

photo_2023-07-18_14-08-35

Not updated size after rotation.
photo_2023-07-18_14-08-41

Build crashes when trying to exclude admob

Steps to Reproduce

pubspec.yaml
stack_appodeal_flutter: ^3.2.0-beta.3

app/build.gradle

    implementation ('com.appodeal.ads:sdk:3.2.0.1-beta.2') {
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'admob'
    }

getting error

E/AndroidRuntime(13575): FATAL EXCEPTION: main
E/AndroidRuntime(13575): Process: com.thetreeapp.thetreeapp, PID: 13575
E/AndroidRuntime(13575): java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 
E/AndroidRuntime(13575): 
E/AndroidRuntime(13575): ******************************************************************************
E/AndroidRuntime(13575): * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
E/AndroidRuntime(13575): * should follow the instructions here:                                       *
E/AndroidRuntime(13575): * https://googlemobileadssdk.page.link/admob-android-update-manifest         *
E/AndroidRuntime(13575): * to add a valid App ID inside the AndroidManifest.                          *
E/AndroidRuntime(13575): * Google Ad Manager publishers should follow instructions here:              *
E/AndroidRuntime(13575): * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest.   *
E/AndroidRuntime(13575): ******************************************************************************

Incompatibility Issues with Firebase/Messaging and FBAudienceNetwork after Updating to Appodeal-Flutter-Plugin 3.3.0

Description

After updating the Appodeal-Flutter-Plugin to version 3.3.0, I encountered dependency incompatibility issues with Firebase/Messaging and FBAudienceNetwork when running pod update.

Steps to Reproduce

  1. Update Appodeal-Flutter-Plugin to version 3.3.0 in pubspec.yaml.
  2. Run pod update in the iOS project directory.
  3. Observe the dependency conflict errors.

Expected Behavior

The pod update command should update all dependencies without any version conflicts.

Actual Behavior

Running pod install results in the following errors:

Error 1:

firebase_remote_config: Using Firebase SDK version '10.25.0' defined in 'firebase_core'
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/Specs/2/d/6/FirebaseMessaging/10.25.0/FirebaseMessaging.podspec.json Response: Failure when receiving data from the peer

Running pod update results in the following errors:

Error 2:

[!] CocoaPods could not find compatible versions for pod "Firebase/Messaging":
In snapshot (Podfile.lock):
Firebase/Messaging (= 10.15.0)

In Podfile:
firebase_messaging (from .symlinks/plugins/firebase_messaging/ios) was resolved to 14.9.2, which depends on
Firebase/Messaging (= 10.25.0)

You have either:

changed the constraints of dependency Firebase/Messaging inside your development pod firebase_messaging.
You should run pod update Firebase/Messaging to apply changes you've made.

Running pod update Firebase/Messaging results in another error:

Error 3:

[!] CocoaPods could not find compatible versions for pod "Firebase/InAppMessaging":
In snapshot (Podfile.lock):
Firebase/InAppMessaging (= 10.15.0)

In Podfile:
firebase_in_app_messaging (from .symlinks/plugins/firebase_in_app_messaging/ios) was resolved to 0.7.5-5, which depends on
Firebase/InAppMessaging (= 10.25.0)

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • changed the constraints of dependency Firebase/InAppMessaging inside your development pod firebase_in_app_messaging.
    You should run pod update Firebase/InAppMessaging to apply changes you've made.

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-PS)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.89.1)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for The Once Mohamed 🔥. Ensure the device is unlocked and attached with a cable or associated with
the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

Additional Context

These issues started occurring after upgrading to Appodeal-Flutter-Plugin 3.3.0. The project builds successfully before the update. Please advise on how to resolve these dependency conflicts.

Appodeal.initialize does not work on some Android devices

Hi, I have an Android device Huawei P20 Pro version EMUI 12. Trying to initialize the SDK the program freezes without giving any type of error and the GDPR form not appear. I assume it gets stuck when it has to show the GDPR form. testing on other newer devices, both Android and iOS, the problem does not occur.
This is my configuration

  Appodeal.initialize(
    appKey: Platform.isAndroid ? "xxxx" : "xxxx",
    adTypes: [
      AppodealAdType.RewardedVideo,
    ],
    onInitializationFinished: (errors) async => {
          print(errors),
        });
Logs
[✓] Flutter (Channel stable, 3.13.5, on macOS 14.0 23A344 darwin-arm64, locale it-IT)
    • Flutter version 3.13.5 on channel stable at /Users/stefanotoppi/Documents/Flutter Core/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12fccda598 (3 weeks ago), 2023-09-19 13:56:11 -0700
    • Engine revision bd986c5ed2
    • Dart version 3.1.2
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/stefanotoppi/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.82.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (3 available)
    • iPhone di Stefano (mobile) • 00008130-000965162861401C • ios            • iOS 17.0.3 21A360
    • macOS (desktop)            • macos                     • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)               • chrome                    • web-javascript • Google Chrome 117.0.5938.149
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same
      local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Can't close ads on tvbox

The ads cannot be closed in tvbox, the "x" is not selected to close, it only works with the mouse

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.