Skip to content

Commit a906bfc

Browse files
committed
feat(app): enforce minimum version
1 parent 4f5e190 commit a906bfc

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/screens/DevTools/utils/getStoreUrlAsync.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,25 @@ export async function getStoreUrlAsync() {
1111
if (process.env.EXPO_OS === 'ios') {
1212
const releaseType = await Application.getIosApplicationReleaseTypeAsync();
1313

14-
// TestFlight/Development builds should open TestFlight
1514
const isTestFlight =
1615
releaseType !== Application.ApplicationReleaseType.APP_STORE &&
1716
releaseType !== Application.ApplicationReleaseType.SIMULATOR;
1817

18+
/**
19+
* Open TestFlight
20+
*/
1921
if (isTestFlight) {
20-
// itms-beta:// scheme opens TestFlight app directly
2122
return `itms-beta://beta.itunes.apple.com/v1/app/${Application.applicationId}`;
2223
}
2324

24-
// App Store release - get the App Store link
2525
return getAppStoreLink(Application.applicationId as string);
2626
}
2727

2828
if (process.env.EXPO_OS === 'android') {
29-
// Play Store URL works for all tracks (production, internal, closed, open)
30-
// as long as the user is enrolled in the test track
29+
/**
30+
* Play store URL works for all tracks (production, internal, closed, open)
31+
* as long as the user is enrolled in the test track
32+
*/
3133
return `https://play.google.com/store/apps/details?id=${Application.applicationId}`;
3234
}
3335

0 commit comments

Comments
 (0)