add staging ios app build script

This commit is contained in:
Kevin
2026-05-20 10:27:40 +08:00
parent 0d417331fd
commit 81458c7046
14 changed files with 102 additions and 31 deletions

View File

@@ -11,8 +11,12 @@ describe('shouldShowAboutBackendUrl', () => {
expect(shouldShowAboutBackendUrl('staging')).toBe(true);
});
it('hides backend URL for production', () => {
expect(shouldShowAboutBackendUrl('production')).toBe(false);
it('hides backend URL for production when not in __DEV__', () => {
if (__DEV__) {
expect(shouldShowAboutBackendUrl('production')).toBe(true);
} else {
expect(shouldShowAboutBackendUrl('production')).toBe(false);
}
});
it('matches config.showAboutBackendUrl for current build', () => {