Skip to content

Commit

Permalink
Add support for localized update message
Browse files Browse the repository at this point in the history
  • Loading branch information
appupgrade-dev committed Jan 15, 2023
1 parent 2223851 commit 25af381
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes will be documented in this file.

## [1.0.8] - 2023-01-16

* Add support for update message localization.

## [1.0.7] - 2023-01-02

* Minor changes in console error messages.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const App: () => Node = () => {
appVersion: '1.0.0', // Your app version
platform: 'android', // App Platform, android or ios
environment: 'production', // App Environment, production, development
appLanguage: 'es' //Your app language ex: en, es etc. Optional.
};
// Alert config is optional
Expand Down Expand Up @@ -86,6 +87,7 @@ export default function App() {
appVersion: '1.0.0', // Your app version
platform: 'android', // App Platform, android or ios
environment: 'production', // App Environment, production, development
appLanguage: 'es' //Your app language ex: en, es etc. Optional.
};
// Alert config is optional
Expand Down
63 changes: 63 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-upgrade-react-native-sdk",
"version": "1.0.7",
"version": "1.0.8",
"description": "app upgrade react-native sdk",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -30,5 +30,6 @@
"version",
"app-upgrade",
"force-upgrade"
]
],
"devDependencies": {}
}
2 changes: 1 addition & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ async function checkVersionWithAppUpgrade(appInfo, xApiKey) {
const { appName, appVersion, platform, environment } = appInfo;

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

0 comments on commit 25af381

Please sign in to comment.