Skip to content

Commit

Permalink
Bump kill switch to 2.36.0 (#3769)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewfy authored Sep 28, 2023
2 parents 4435ed6 + dd3790d commit 7f0ee8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions functions/src/api/killswitch/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ describe('/api/killswitch', () => {
[403, nativeUpdate, '1.0.0', undefined, 'ios', 'en'],

// current native minimum version
[200, {}, '2.33.0', '1531', 'ios', 'en'],
[200, {}, '2.33.0', '1533', 'android', 'en'],
[200, {}, '2.37.0', '1748', 'ios', 'en'],
[200, {}, '2.37.0', '1748', 'android', 'en'],

// some future version
[200, {}, '3.0.0', undefined, 'ios', 'en'],
Expand All @@ -88,12 +88,12 @@ describe('/api/killswitch', () => {
[403, nativeUpdate, '1.0.0', '1', 'ios', 'en'],

// older bundle versions currently kill-switched
[200, bundleUpdate, '2.33.0', '1000', 'ios', 'en'],
[200, bundleUpdate, '2.33.0', '1000', 'android', 'en'],
[200, bundleUpdate, '2.37.0', '1000', 'ios', 'en'],
[200, bundleUpdate, '2.37.0', '1000', 'android', 'en'],

// current bundle minimum version
[200, {}, '2.33.0', '1531', 'ios', 'en'],
[200, {}, '2.33.0', '1533', 'android', 'en'],
[200, {}, '2.37.0', '1748', 'ios', 'en'],
[200, {}, '2.37.0', '1748', 'android', 'en'],

/////// miscellaneous //////////////////////////////////////////////////
// accepts partially broken input
Expand Down
8 changes: 4 additions & 4 deletions functions/src/api/killswitch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import i18next from '../../lib/i18n';
const KILL_SWITCH = false;

// Specify the minimum required app native version.
const MIN_APP_VERSION = '2.33.0';
const MIN_APP_VERSION = '2.36.0';

// Specify the minimum required bundle version.
const MIN_BUNDLE_VERSION: {[key: string]: {android: number; ios: number}} = {
[MIN_APP_VERSION]: {
'2.37.0': {
// Allways require update to the latest version
android: 1533,
ios: 1531,
android: 1748,
ios: 1748,
},
};

Expand Down

0 comments on commit 7f0ee8e

Please sign in to comment.