1import UserSettings from '../../../api/user/UserSettings'; 2 3/** Get the cached code signing ID from the last time a user configured code signing via the CLI. */ 4export async function getLastDeveloperCodeSigningIdAsync(): Promise<string | null> { 5 const { developmentCodeSigningId } = await UserSettings.readAsync(); 6 return developmentCodeSigningId ?? null; 7} 8 9/** Cache the code signing ID that the user chose for their project, we'll recommend this value for the next project they code sign. */ 10export async function setLastDeveloperCodeSigningIdAsync(id: string): Promise<void> { 11 await UserSettings.setAsync('developmentCodeSigningId', id).catch(() => {}); 12} 13