@@ -122,14 +122,16 @@ class DatabaseSeedingService {
122122
123123 // Ensure primaryAdPlatform is not 'demo' for initial setup
124124 // since its not intended for any use outside the mobile client.
125- final productionReadyAdConfig = initialConfig.adConfig .copyWith (
125+ final productionReadyAdConfig = initialConfig.features.ads .copyWith (
126126 primaryAdPlatform: AdPlatformType .admob,
127127 );
128128
129129 final productionReadyConfig = initialConfig.copyWith (
130- adConfig: productionReadyAdConfig,
131130 createdAt: DateTime .now (),
132131 updatedAt: DateTime .now (),
132+ features: initialConfig.features.copyWith (
133+ ads: productionReadyAdConfig,
134+ ),
133135 );
134136
135137 await remoteConfigCollection.insertOne ({
@@ -357,9 +359,7 @@ class DatabaseSeedingService {
357359 /// Deletes a user and their associated sub-documents.
358360 Future <void > _deleteUserAndData (ObjectId userId) async {
359361 await _db.collection ('users' ).deleteOne (where.eq ('_id' , userId));
360- await _db
361- .collection ('app_settings' )
362- .deleteOne (where.eq ('_id' , userId));
362+ await _db.collection ('app_settings' ).deleteOne (where.eq ('_id' , userId));
363363 await _db
364364 .collection ('user_content_preferences' )
365365 .deleteOne (where.eq ('_id' , userId));
@@ -368,7 +368,7 @@ class DatabaseSeedingService {
368368
369369 /// Creates the default sub-documents (settings, preferences) for a new user.
370370 Future <void > _createUserSubDocuments (ObjectId userId) async {
371- final defaultAppSettings = UserAppSettings (
371+ final defaultAppSettings = AppSettings (
372372 id: userId.oid,
373373 displaySettings: const DisplaySettings (
374374 baseTheme: AppBaseTheme .system,
@@ -383,11 +383,10 @@ class DatabaseSeedingService {
383383 'Default language "en" not found in language fixtures.' ,
384384 ),
385385 ),
386- feedPreferences: const FeedDisplayPreferences (
387- headlineDensity: HeadlineDensity .standard,
388- headlineImageStyle: HeadlineImageStyle .smallThumbnail,
389- showSourceInHeadlineFeed: true ,
390- showPublishDateInHeadlineFeed: true ,
386+ feedSettings: const FeedSettings (
387+ feedItemDensity: FeedItemDensity .standard,
388+ feedItemImageStyle: FeedItemImageStyle .smallThumbnail,
389+ feedItemClickBehavior: FeedItemClickBehavior .internalNavigation,
391390 ),
392391 );
393392 await _db.collection ('app_settings' ).insertOne ({
0 commit comments