Skip to content

Commit

Permalink
Fix getProductionBuildInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Definitely-Not-Vlad committed Sep 21, 2021
1 parent 705e09d commit 8ad97a4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shoutem/platform",
"version": "3.0.1",
"version": "3.0.2-rc.0",
"scripts": {
"android": "react-native run-android",
"build": "node scripts/build",
Expand Down
2 changes: 1 addition & 1 deletion package.template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shoutem/platform",
"version": "3.0.1",
"version": "3.0.2-rc.0",
"scripts": {
"android": "react-native run-android",
"build": "node scripts/build",
Expand Down
28 changes: 14 additions & 14 deletions platform/platform.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "3.0.1",
"mobileAppVersion": "3.0.1",
"releaseNotes": "* Fixed Android 11 issue with Phone and Email contact buttons\n* Fixed search field UI issues",
"version": "3.0.2-rc.0",
"mobileAppVersion": "3.0.2-rc.0",
"releaseNotes": "* Fixed paused Podcast/Radio resuming after audio interruption\n* For devs: Fixed production build info helper script",
"settings": {
"DEV-appetizeKey": "tmbt6dp2z7dafedwuc3z2b586r",
"QA-appetizeKey": "mu8a6zv0xptggaezkyzr9v141r",
Expand All @@ -23,11 +23,11 @@
"dependencies": {
"shoutem.about": "~3.0.1",
"shoutem.analytics": "~3.0.0",
"shoutem.application": "~3.0.0",
"shoutem.audio": "~3.0.0",
"shoutem.auth": "~3.0.0",
"shoutem.application": "~3.1.0-rc.0",
"shoutem.audio": "~3.0.1-rc.3",
"shoutem.auth": "~3.0.1",
"shoutem.camera": "~3.0.0",
"shoutem.cms": "~3.0.0",
"shoutem.cms": "~3.1.0",
"shoutem.code-push": "~3.0.0",
"shoutem.deals": "~3.0.0",
"shoutem.events": "~3.0.1",
Expand All @@ -37,10 +37,10 @@
"shoutem.i18n": "~3.0.0",
"shoutem.ical-events": "~3.0.0",
"shoutem.layouts": "~3.0.0",
"shoutem.loyalty": "~3.0.3",
"shoutem.navigation": "~3.0.6",
"shoutem.news": "~3.1.0",
"shoutem.notification-center": "~3.0.0",
"shoutem.loyalty": "~3.0.5",
"shoutem.navigation": "~3.1.0-rc.1",
"shoutem.news": "~3.2.1",
"shoutem.notification-center": "~3.0.1",
"shoutem.page": "~3.0.3",
"shoutem.people": "~3.0.2",
"shoutem.permissions": "~3.0.0",
Expand All @@ -56,10 +56,10 @@
"shoutem.rss-news": "~3.0.1",
"shoutem.rss-photos": "~3.0.0",
"shoutem.rss-videos": "~3.0.0",
"shoutem.rubicon-theme": "~3.0.4",
"shoutem.social": "~3.1.1",
"shoutem.rubicon-theme": "~3.0.5",
"shoutem.social": "~3.1.2",
"shoutem.sub-navigation": "~3.0.0",
"shoutem.theme": "~3.0.1",
"shoutem.theme": "~3.0.2",
"shoutem.video": "~3.0.0",
"shoutem.vimeo": "~3.0.0",
"shoutem.web-view": "~3.0.0",
Expand Down
12 changes: 8 additions & 4 deletions scripts/helpers/get-production-build-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ async function getProductionBuildInfo(buildConfig, platform) {
try {
const body = await request.get(requestOptions);
const parsedBody = JSON.parse(body);
const productionBuild = _.find(
parsedBody.data,
build => build.attributes.devicePlatform === platform,
);
const productionBuild = _.find(parsedBody.data, build => {
if (
build.attributes.devicePlatform === platform &&
build.attributes.buildType === 'production'
) {
return build;
}
});

return productionBuild;
} catch (error) {
Expand Down

0 comments on commit 8ad97a4

Please sign in to comment.