-
Notifications
You must be signed in to change notification settings - Fork 0
Refactore local ads to integrate management properties #42
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
Merged
fulleni
merged 10 commits into
main
from
refactore-local-ads-to-integrate-management-properties
Sep 1, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d120deb
feat(LocalAd): add unique identifier property
fulleni 525345f
feat(LocalBannerAd): add createdAt, updatedAt, and status fields
fulleni 6a956df
feat(LocalInterstitialAd): add createdAt, updatedAt, and status fields
fulleni 4553830
feat(LocalNativeAd): add createdAt, updatedAt and status fields
fulleni f092ebb
feat(LocalVideoAd): enhance with additional properties and methods
fulleni 5dd3980
chore: build files
fulleni 3082e5c
fix(mock): update local ads fixtures with missing properties
fulleni db9b6c3
lint: misc
fulleni 110b856
test(local_ad): refactor and enhance unit tests for LocalAd and subcl…
fulleni 8b3d79c
docs(README): update code coverage percentage
fulleni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,58 @@ | ||
import 'package:core/core.dart'; | ||
// Import ContentStatus | ||
|
||
/// A list of predefined local ads for fixture data. | ||
final localAdsFixturesData = <LocalAd>[ | ||
const LocalNativeAd( | ||
LocalNativeAd( | ||
id: kLocalAd1Id, | ||
title: 'Discover Our Premium Content', | ||
subtitle: 'Unlock exclusive articles and an ad-free experience.', | ||
imageUrl: 'https://example.com/ads/premium_native.png', | ||
targetUrl: 'https://example.com/premium', | ||
createdAt: DateTime.now(), | ||
updatedAt: DateTime.now(), | ||
fulleni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
status: ContentStatus.active, | ||
), | ||
const LocalBannerAd( | ||
LocalBannerAd( | ||
id: kLocalAd2Id, | ||
imageUrl: 'https://example.com/ads/banner_ad_1.png', | ||
targetUrl: 'https://example.com/offer1', | ||
createdAt: DateTime.now(), | ||
updatedAt: DateTime.now(), | ||
status: ContentStatus.active, | ||
), | ||
const LocalInterstitialAd( | ||
LocalInterstitialAd( | ||
id: kLocalAd3Id, | ||
imageUrl: 'https://example.com/ads/interstitial_ad_1.png', | ||
targetUrl: 'https://example.com/special_offer', | ||
createdAt: DateTime.now(), | ||
updatedAt: DateTime.now(), | ||
status: ContentStatus.active, | ||
), | ||
const LocalVideoAd( | ||
LocalVideoAd( | ||
id: kLocalAd4Id, | ||
videoUrl: 'https://example.com/ads/promo_video.mp4', | ||
targetUrl: 'https://example.com/watch_more', | ||
createdAt: DateTime.now(), | ||
updatedAt: DateTime.now(), | ||
status: ContentStatus.active, | ||
), | ||
const LocalNativeAd( | ||
LocalNativeAd( | ||
id: kLocalAd5Id, | ||
title: 'Stay Informed with Daily Briefings', | ||
subtitle: 'Get the top news delivered straight to your inbox.', | ||
imageUrl: 'https://example.com/ads/briefing_native.png', | ||
targetUrl: 'https://example.com/subscribe', | ||
createdAt: DateTime.now(), | ||
updatedAt: DateTime.now(), | ||
status: ContentStatus.active, | ||
), | ||
const LocalBannerAd( | ||
LocalBannerAd( | ||
id: kLocalAd6Id, | ||
imageUrl: 'https://example.com/ads/banner_ad_2.png', | ||
targetUrl: 'https://example.com/offer2', | ||
createdAt: DateTime.now(), | ||
updatedAt: DateTime.now(), | ||
status: ContentStatus.active, | ||
), | ||
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.