Skip to content

Commit

Permalink
chore: change appversion from api service
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Feb 4, 2025
1 parent cf50760 commit f67de51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import fetchRetry from 'fetch-retry';
import {SCHEME, HOST, BUILD_NUMBER} from '../config';
import matomo from './matomo';
import {generateHMAC} from '../utils/generateHmac';
import app from '../../app.json';

export const checkNetwork = async (test = false) => {
const isConnected = await NetInfo.fetch().then(state => state.isConnected);
Expand Down Expand Up @@ -39,7 +40,7 @@ class ApiService {
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
appversion: BUILD_NUMBER,
appversion: Platform.OS === 'ios' ? app.expo.ios.buildNumber : app.expo.android.versionCode,
appdevice: Platform.OS,
currentroute: this.navigation?.getCurrentRoute?.()?.name,
...headers,
Expand Down

0 comments on commit f67de51

Please sign in to comment.