Giter Club home page Giter Club logo

cas-flutter's People

Contributors

jedures avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cas-flutter's Issues

MTG adapter iOS crashes

See a significant number of crashes on the iOS platform with such stack trace:

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0xed5e0 __exceptionPreprocess
1  libobjc.A.dylib                0x2bc00 objc_exception_throw
2  CoreAutoLayout                 0x57ac NSISSparseVectorAddTermWithPlaceValueCoefficientStartingIndex
3  CoreAutoLayout                 0x11e84 -[NSISEngine removeConstraintWithMarker:]
4  CoreAutoLayout                 0x11df8 -[NSLayoutConstraint _removeFromEngine:]
5  UIKitCore                      0x1e20e4 -[UIView _layoutEngine_willRemoveLayoutConstraint:]
6  UIKitCore                      0x4ed84 -[UIView _setAutoresizingConstraints:]
7  UIKitCore                      0xa008c -[UIView _invalidateAutoresizingConstraints]
8  UIKitCore                      0x820b8 -[UIView(UIConstraintBasedLayout) _constraints_subviewWillChangeSuperview:]
9  UIKitCore                      0x11c1b08 -[UIWindow(AdditionalLayoutSupport) _constraints_subviewWillChangeSuperview:]
10 UIKitCore                      0x7f660 __UIViewWillBeRemovedFromSuperview
11 UIKitCore                      0x7f16c -[UIView(Hierarchy) removeFromSuperview]
12 Runner                         0x1661ce8 -[MTGWebViewCacheManager removeWebViewWithUrl:]
13 Runner                         0x15b1eb4 +[MTGVideoAdResourcePreparer removeWebviewCacheWithPathURL:]
14 Runner                         0x15b1f54 +[MTGVideoAdResourcePreparer removeWebviewCacheWithCampaign:unitID:]
15 Runner                         0x15a5c40 -[MTGVideoAdRequestComposite releasePreviousResource:newCampaigns:]
16 Runner                         0x15a590c -[MTGVideoAdRequestComposite releasePreviousResourceAndSaveCurrentResource:]
17 Runner                         0x15a8dc4 -[MTGVideoAdRequestComposite hitLocalBackupCacheLoginWithLoadFailedRequestId:loadFailedLocalRequestId:scenes:]
18 Runner                         0x15a3000 -[MTGVideoAdRequestComposite isHitPriorityToCallbacks]
19 Runner                         0x15a3d00 -[MTGVideoAdRequestComposite requestApiAdWithTimeout:]
20 Runner                         0x16c3854 -[MTGAdRequestDelayManager performDelayExcuteBlock:]
21 Runner                         0x159f6d8 -[MTGVideoAdManagerComposite _loadVideoWithBidToken:placementId:unitId:delegate:autoLoad:]
22 Runner                         0x170252c -[MTGBidInterstitialVideoAdManager loadAdWithBidToken:]
23 Runner                         0x17035e4 -[MTGNewInterstitialBidAdManager loadAdWithBidToken:]
24 Runner                         0x1584bc CASMintegralInterstitial.requestAd() + 32 (CASMintegralInterstitial.swift:32)
25 Runner                         0x6d82d4 MediationAgent.beginRequest() + 220 (MediationAgent.swift:220)
26 Runner                         0x6e07f0 AgentTimeout.beginRequest(_:timeDivider:) + 17 (AgentTimeout.swift:17)
27 Runner                         0x6cf3dc BiddingHandler.loadAdContent(_:) + 236 (BiddingHandler.swift:236)
28 Runner                         0x72d1bc AuctionNoticeHandelr.response(_:) + 32 (AuctionNoticeHandler.swift:32)
29 Runner                         0x157b50 CASMintegralBidUnit.sendNotice(_:) + 99 (CASMintegralBidUnit.swift:99)
30 Runner                         0x6cec94 BiddingHandler.continueWithWon(_:_:) + 22 (AuctionNoticeHandler.swift:22)
31 Runner                         0x6e7bec MediationController.trySelectAdWinner() + 309 (MediationController.swift:309)
32 Runner                         0x7041b0 WaterfallHandler.onWaterfallDone(_:) + 259 (WaterfallHandler.swift:259)
33 Runner                         0x7044d0 WaterfallHandler.this() + 286 (WaterfallHandler.swift:286)
34 Runner                         0x704acc WaterfallHandler.onFailedToLoad(_:) + 326 (WaterfallHandler.swift:326)
35 Runner                         0x6d89ec MediationAgent.onRequestFailed(_:_:_:) + 272 (MediationAgent.swift:272)
36 Runner                         0x6d9e48 closure #1 in MediationAgent.onAdFailedToLoad(_:_:_:)
37 Runner                         0x12daf4 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
38 libdispatch.dylib              0x26a8 _dispatch_call_block_and_release
39 libdispatch.dylib              0x4300 _dispatch_client_callout
40 libdispatch.dylib              0xb894 _dispatch_lane_serial_drain
41 libdispatch.dylib              0xc3c4 _dispatch_lane_invoke
42 libdispatch.dylib              0x17004 _dispatch_root_queue_drain_deferred_wlh
43 libdispatch.dylib              0x16878 _dispatch_workloop_worker_thread
44 libsystem_pthread.dylib        0x1964 _pthread_wqthread
45 libsystem_pthread.dylib        0x1a04 start_wqthread

Flutter ios error

When I try to run my application with the cas package (clever_ads_solutions: 0.1.0), I get the error in the image.

Can you help me?
photo_6005676680535982684_y

failed to get CASBridgeBuilder

When I run the project, it gives the following error when the screen opens and the ads are not loaded.

E/flutter (15668): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(CASFlutterBridgeError, failed to get CASBridgeBuilder, null, null)

clever_ads_solutions: ^0.2.4
ext.kotlin_version = '1.7.10'
distributionUrl=https://services.gradle.org/distributions/gradle-7.5-all.zip

Future inititalize() async {
CAS.setDebugMode(false);

CAS.setFlutterVersion("3.13.5");

CAS.validateIntegration();

ManagerBuilder builder = CAS
    .buildManager()
    .withTestMode(false)
    .withCasId("xxx")
    .withAdTypes(AdTypeFlags.Banner |
        AdTypeFlags.Rewarded |
        AdTypeFlags.Interstitial)
    .withInitializationListener(InitializationListenerWrapper());

manager = builder.initialize();

}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation("com.cleveradssolutions:cas-sdk:3.6.0")

implementation("com.cleveradssolutions:ironsource:7.8.1.0")   // IronSource
implementation("com.cleveradssolutions:google:22.6.0.2")      // Google Ads | Admob
implementation("com.cleveradssolutions:unity:4.9.3.0")        // Unity Ads
implementation("com.cleveradssolutions:kidoz:9.1.0.0")        // Kidoz
implementation("com.cleveradssolutions:superawesome:9.3.2.0") // SuperAwesome
implementation("com.cleveradssolutions:vungle:7.1.0.0")       // LiftoffMonetize
implementation("com.cleveradssolutions:inmobi:10.6.6.0")      // InMobi
implementation("com.cleveradssolutions:chartboost:9.6.1.0")   // Chartboost
implementation("com.cleveradssolutions:fyber:8.2.6.0")        // DT Exchange

implementation("com.cleveradssolutions:mintegral:16.6.41.0")  // Mintegral
implementation("com.cleveradssolutions:applovin:12.2.0.0")    // AppLovin
implementation("com.cleveradssolutions:facebook:6.16.0.1")    // Meta Audience Network
implementation("com.cleveradssolutions:pangle:5.7.0.6")       // Pangle
implementation("com.cleveradssolutions:bigo:4.5.1.1")         // Bigo
implementation("com.cleveradssolutions:mytarget:5.20.0.1")    // MyTarget
implementation("com.cleveradssolutions:yandex:26.4.0.0")

}

IOS Help

[!] Unable to find a specification for CleverAdsSolutions-Base (~> 3.5.4) depended upon by clever_ads_solutions

You have either:

  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

CAS ios error - the application opens and then closes itself

Project; It works before integrating CAS into the project. When CAS is integrated, the following error appears and the application opens and closes on the real device. ,
It was tested on iPhone 6 real device ( IOS: 12.5.7) and ios 15 pro simulator (17.4) devices.

ERROR
image

I followed the steps here

XCODE VERSION: 15.2 (15C500b)
FLUTTER VERSION: 3.13.5
PACKAGE VERSION: clever_ads_solutions: ^0.2.4

FLUTTER DOCTOR:
Doctor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel [user-branch], 3.13.5, on macOS 14.3 23D56 darwin-x64, locale tr-TR) ! Flutter version 3.13.5 on channel [user-branch] at /Users/bau/flutter Currently on an unknown channel. Run flutter channelto switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. ! Upstream repository unknown source is not a standard remote. Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error. [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please useflutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google
Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[✓] VS Code (version 1.86.2)
[✓] Connected device (1 available)
[✓] Network resources`

PODFİLE
`source 'https://cdn.cocoapods.org/'
source 'https://github.com/cleveradssolutions/CAS-Specs.git'

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,
}

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

target 'Runner' do
use_frameworks! :linkage => :static
use_modular_headers!
$casVersion = '~> 3.5.6'
pod 'CleverAdsSolutions-SDK/Optimal', $casVersion

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`

[iOS] Can't install required Pods

I've added clever_ads_solutions: ^0.2.1 to my pubspec.yaml, got the packages and changed minimum deployment target to 13.0.
But when I try to pod install --repo-update I get this error:
[!] Unable to find a specification for "CleverAdsSolutions-Base (~> 3.5.0)" depended upon by "clever_ads_solutions"

My gem -v is 3.4.22 and pod --version is 1.14.3

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.