@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
package/src/configs/SCConfig.js
CHANGED
|
@@ -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
|
};
|
package/src/utils/Apis/axios.js
CHANGED