Skip to content

Commit 4d75389

Browse files
committed
Comment out CarPlay files till apple approval
1 parent 8e7d749 commit 4d75389

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

src/Bible.Alarm/Platforms/iOS/Effects/CarPlayScheduleListEffect.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/* CARPLAY MEDIA LISTING DISABLED - Requires Apple MFi approval
2+
* Commented out to avoid App Store rejection for CarPlay Audio entitlement.
3+
* This effect refreshes the CarPlay schedule list when schedules change.
4+
*
5+
* To re-enable after Apple approval, uncomment this file.
6+
*/
7+
8+
/*
19
#nullable enable
210
using Bible.Alarm.Platforms.iOS.Services.CarPlay;
311
using Bible.Alarm.Stores.Actions.Schedule;
@@ -86,3 +94,12 @@ private void RefreshCarPlayScheduleList(string triggerAction)
8694
}
8795
}
8896
}
97+
*/
98+
99+
// Placeholder class to prevent compilation errors
100+
namespace Bible.Alarm.Platforms.iOS.Effects;
101+
102+
public class CarPlayScheduleListEffect
103+
{
104+
// Empty class - CarPlay listing disabled
105+
}

src/Bible.Alarm/Platforms/iOS/Services/CarPlay/CarPlayPlaybackHandler.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/* CARPLAY MEDIA LISTING DISABLED - Requires Apple MFi approval
2+
* Commented out to avoid App Store rejection for CarPlay Audio entitlement.
3+
* This handler processes playback actions when schedule items are clicked from the CarPlay list.
4+
*
5+
* To re-enable after Apple approval, uncomment this file.
6+
*/
7+
8+
/*
19
#nullable enable
210
using Bible.Alarm.Common;
311
using Bible.Alarm.Services.Media.Interfaces;
@@ -53,3 +61,15 @@ private static void StartPlaybackAsync(int scheduleId)
5361
});
5462
}
5563
}
64+
*/
65+
66+
// Placeholder class to prevent compilation errors
67+
namespace Bible.Alarm.Platforms.iOS.Services.CarPlay;
68+
69+
public sealed class CarPlayPlaybackHandler
70+
{
71+
public static void HandleScheduleItemClicked(int scheduleId)
72+
{
73+
// CarPlay listing disabled - no action
74+
}
75+
}

src/Bible.Alarm/Platforms/iOS/Services/CarPlay/CarPlaySceneDelegate.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/* CARPLAY MEDIA LISTING DISABLED - Requires Apple MFi approval
2+
* Commented out to avoid App Store rejection for CarPlay Audio entitlement.
3+
* Now Playing (current playback display) remains active via iOSNowPlayingInfoManager.
4+
*
5+
* To re-enable after Apple approval:
6+
* 1. Uncomment this entire file
7+
* 2. Add com.apple.developer.carplay-audio entitlement in Entitlements.plist
8+
* 3. Uncomment CarPlayScheduleListEffect.cs
9+
* 4. Uncomment CarPlayScheduleHelper.cs
10+
* 5. Uncomment CarPlayPlaybackHandler.cs
11+
*/
12+
13+
/*
114
#nullable enable
215
using CarPlay;
316
using Foundation;
@@ -232,3 +245,14 @@ public void RefreshScheduleList()
232245
}
233246
}
234247
}
248+
*/
249+
250+
// Placeholder class to prevent compilation errors
251+
namespace Bible.Alarm.Platforms.iOS.Services.CarPlay;
252+
253+
public class CarPlaySceneDelegate
254+
{
255+
public static bool IsCarPlayConnected { get; private set; } = false;
256+
public static CarPlaySceneDelegate? Current { get; private set; } = null;
257+
public void RefreshScheduleList() { }
258+
}

src/Bible.Alarm/Platforms/iOS/Services/CarPlay/CarPlayScheduleHelper.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/* CARPLAY MEDIA LISTING DISABLED - Requires Apple MFi approval
2+
* Commented out to avoid App Store rejection for CarPlay Audio entitlement.
3+
* This helper provides methods for loading schedules and formatting display information.
4+
*
5+
* To re-enable after Apple approval, uncomment this file.
6+
*/
7+
8+
/*
19
#nullable enable
210
using Bible.Alarm.Common;
311
using Bible.Alarm.Shared.Helpers;
@@ -155,3 +163,14 @@ public static string BuildScheduleSubtitle(ScheduleStateItem scheduleItem)
155163
return $"{statusText} • {timeText}";
156164
}
157165
}
166+
*/
167+
168+
// Placeholder class to prevent compilation errors
169+
namespace Bible.Alarm.Platforms.iOS.Services.CarPlay;
170+
171+
public static class CarPlayScheduleHelper
172+
{
173+
public static List<object> LoadScheduleStateItemsFromState() => new();
174+
public static string BuildScheduleTitle(object scheduleItem) => string.Empty;
175+
public static string BuildScheduleSubtitle(object scheduleItem) => string.Empty;
176+
}

0 commit comments

Comments
 (0)