Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check feature compatibility with appnexus flutter (fixes #13) #14

Merged

Conversation

thekorn
Copy link
Owner

@thekorn thekorn commented Feb 18, 2024

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • βœ… Build configuration change
  • πŸ“ Documentation
  • πŸ—‘οΈ Chore

…ns for better type safety

✨ feat(BannerViewOptions.kt): add new data class to encapsulate banner view options
πŸ”§ refactor(BannerViewFactory.kt): convert args to BannerViewOptions for better type safety
… ad handling

✨ feat(xandr_android): add AdInitListener and XandrAdListener for better ad event handling
πŸ†• feat(xandr_android): introduce FlutterState and InterstitialAd models for better state management
…nerViewContainer

🎨 style(xandr_android): improve readability by breaking down complex expressions in XandrAdListener
✨ feat(xandr_android): add support for banner ad resizing based on BannerViewOptions
πŸ”₯ remove(xandr_android): remove unused TODO comments in BannerViewOptions
…for better scrolling experience

✨ feat(ad_banner.dart): add new properties to AdBanner for better ad customization
πŸ”§ refactor(BannerViewContainer.kt): use let function for null safety and cleaner code
πŸ”§ refactor(XandrAdListener.kt): fix comment format for better readability
πŸ”§ refactor(BannerViewOptions.kt): remove unnecessary TODO comments after implementation
@thekorn thekorn linked an issue Feb 18, 2024 that may be closed by this pull request
✨ feat(main.dart): add padding and alignment to text for better readability
πŸ”„ refactor(main.dart): switch adSizes and resize properties for AdBanner instances to improve ad display
…gration for reference

πŸ”§ chore(cspell.json): add 'appnexus' to dictionary to avoid spell check errors
…de.dart' to support asynchronous operations and load mode functionality

✨ feat(main.dart): add ScrollController and StreamController to manage scroll events and check if ad is in viewport
πŸ”§ refactor(main.dart): add listener to _scrollController to add its position to _checkIfAdIsInViewport stream
✨ feat(main.dart): add more Text widgets and a new AdBanner with loadMode set to LoadMode.whenInViewport to demonstrate ad loading when in viewport
πŸ”§ refactor(ad_banner.dart): import 'dart:async' and 'package:xandr/load_mode.dart' to support asynchronous operations and load mode functionality
✨ feat(ad_banner.dart): add loadMode parameter to AdBanner and _HostAdBannerView to determine when the ad is loaded
✨ feat(ad_banner.dart): add loadAd method to trigger ad loading via MethodChannel
✨ feat(ad_banner.dart): add _checkViewport method to check if the ad is in the viewport and load it if it is
πŸ”§ refactor(ad_banner.dart): call loadAd in initState if loadMode is LoadWhenCreated
πŸ”§ refactor(ad_banner.dart): call _checkViewport in initState if loadMode is WhenInViewport
πŸ”§ refactor(ad_banner.dart): add onDoneLoading callback to _HostAdBannerView to update _loading and _loaded states when ad loading is done
πŸ”§ refactor(ad_banner.dart): call loadAd in _HostAdBannerView's onPlatformViewCreated if loadMode is LoadWhenCreated
πŸ”§ refactor(ad_banner.dart): add loadMode to creationParams to pass it to the native code
πŸ”§ refactor(ad_banner.dart): add widgetId to _HostAdBannerView to pass it to the native code
πŸ”§ refactor(ad_banner.dart): complete widgetId in _HostAdBannerView's onPlatformViewCreated if it's not completed yet
πŸ”§ refactor(ad_banner.dart): call onDoneLoading in _HostAdBannerView's onPlatformViewCreated when ad loading is done
πŸ”§ refactor(ad_banner.dart): call loadAd in _HostAdBannerView's onPlatformViewCreated if loadMode is LoadWhenCreated
πŸ”§ refactor(ad_banner.dart): add loadMode to _HostAdBannerView's creationParams to pass it to the native code
πŸ”§ refactor(ad_banner.dart): add loadMode
@thekorn thekorn merged commit 021d313 into main Feb 18, 2024
10 of 11 checks passed
@thekorn thekorn deleted the 13-feat-check-feature-compatibility-with-appnexus-flutter branch February 18, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: check feature compatibility with appnexus-flutter
1 participant