@eohjsc/react-native-smart-city 0.4.50 → 0.4.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.4.50",
4
+ "version": "0.4.52",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -100,6 +100,8 @@ const SCDefaultConfig = {
100
100
  intervalWatchConfigTime: 30000,
101
101
  setCurrentSensorDisplay: () => {},
102
102
  appName: 'E-Ra',
103
+ packageName: 'com.eohjsc.eohmobile.staging',
104
+ versionCode: 1
103
105
  };
104
106
 
105
107
  export class SCConfig {
@@ -117,6 +119,8 @@ export class SCConfig {
117
119
  static intervalWatchConfigTime = SCDefaultConfig.intervalWatchConfigTime;
118
120
  static setCurrentSensorDisplay = SCDefaultConfig.setCurrentSensorDisplay;
119
121
  static appName = SCDefaultConfig.appName;
122
+ static packageName = SCDefaultConfig.packageName;
123
+ static versionCode = SCDefaultConfig.versionCode;
120
124
  }
121
125
 
122
126
  export const initSCConfig = (config) => {
@@ -143,4 +147,6 @@ export const initSCConfig = (config) => {
143
147
  SCConfig.setCurrentSensorDisplay =
144
148
  config.setCurrentSensorDisplay ?? SCDefaultConfig.setCurrentSensorDisplay;
145
149
  SCConfig.appName = config.appName ?? SCDefaultConfig.appName;
150
+ SCConfig.packageName = config.packageName ?? SCConfig.packageName;
151
+ SCConfig.versionCode = config.version ?? SCConfig.versionCode;
146
152
  };
@@ -11,6 +11,8 @@ import { isHTML } from '../Validation';
11
11
  const api = create({
12
12
  headers: {
13
13
  'Content-Type': 'application/json',
14
+ 'App-Version-Code': SCConfig.versionCode,
15
+ 'App-Package-Name': SCConfig.packageName,
14
16
  },
15
17
  timeout: 30000,
16
18
  });