Skip to content

Commit 25af381

Browse files
committedJan 15, 2023
Add support for localized update message
1 parent 2223851 commit 25af381

File tree

5 files changed

+73
-3
lines changed

5 files changed

+73
-3
lines changed
 

‎CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes will be documented in this file.
44

5+
## [1.0.8] - 2023-01-16
6+
7+
* Add support for update message localization.
8+
59
## [1.0.7] - 2023-01-02
610

711
* Minor changes in console error messages.

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const App: () => Node = () => {
4040
appVersion: '1.0.0', // Your app version
4141
platform: 'android', // App Platform, android or ios
4242
environment: 'production', // App Environment, production, development
43+
appLanguage: 'es' //Your app language ex: en, es etc. Optional.
4344
};
4445
4546
// Alert config is optional
@@ -86,6 +87,7 @@ export default function App() {
8687
appVersion: '1.0.0', // Your app version
8788
platform: 'android', // App Platform, android or ios
8889
environment: 'production', // App Environment, production, development
90+
appLanguage: 'es' //Your app language ex: en, es etc. Optional.
8991
};
9092
9193
// Alert config is optional

‎package-lock.json

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app-upgrade-react-native-sdk",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "app upgrade react-native sdk",
55
"main": "index.js",
66
"scripts": {
@@ -30,5 +30,6 @@
3030
"version",
3131
"app-upgrade",
3232
"force-upgrade"
33-
]
33+
],
34+
"devDependencies": {}
3435
}

‎src/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function checkVersionWithAppUpgrade(appInfo, xApiKey) {
66
const { appName, appVersion, platform, environment } = appInfo;
77

88
const response = await axios.get(
9-
`${appUpgradeBaseUrl}/api/v1/versions/check?app_name=${appName}&app_version=${appVersion}&platform=${platform}&environment=${environment}`,
9+
`${appUpgradeBaseUrl}/api/v1/versions/check?app_name=${appName}&app_version=${appVersion}&platform=${platform}&environment=${environment}&app_language=${app_language}`,
1010
{
1111
headers: {
1212
"x-api-key": xApiKey,

0 commit comments

Comments
 (0)