Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Release 1.0.4
Browse files Browse the repository at this point in the history
Fixed bug where stopping multiple audio tracks was not possible anymore
  • Loading branch information
Mokkapps committed Sep 15, 2019
1 parent c84e614 commit 8ba9a36
Show file tree
Hide file tree
Showing 11 changed files with 11,684 additions and 8,653 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
android/app/ParentsSoundboard.keystore
android/app/release
ios/Pods

# React Native gitignore conten
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ android {
applicationId "de.mokkapps.parentssoundboard"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 6
versionName "1.0.3"
versionCode 7
versionName "1.0.4"
multiDexEnabled true
}
splits {
Expand Down
7 changes: 5 additions & 2 deletions app/components/screens/PlaylistScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ class PlaylistScreen extends React.Component {
});
}

componentDidUpdate(nextProps) {
const { isPlaying } = nextProps;
shouldComponentUpdate(nextProps) {
const {
isPlaying
} = nextProps;
if (nextProps.navigation.getParam('isPlaying', false) !== isPlaying) {
this.props.navigation.setParams({ isPlaying });
}
return true;
}

render() {
Expand Down
11 changes: 11 additions & 0 deletions app/components/screens/SettingsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class SettingsScreen extends React.Component {
}).catch(console.error);
};

onPressDebugPlaylist = () => {
this.props.navigation.navigate('Playlist');
}

onPressRate = async () => {
if (Platform.OS === 'ios') {
await Linking.openURL(APP_STORE_URL);
Expand Down Expand Up @@ -101,6 +105,13 @@ class SettingsScreen extends React.Component {
title={I18n.t('CONTACT_US')}
onPress={this.onPressContact}
/>
{__DEV__ ? (
<SettingsButton
testID="SettingsScreen_PlaylistDebugButton"
title="Debug Playlist"
onPress={this.onPressDebugPlaylist}
/>
) : null}
</ButtonGroup>
<Text
testID="SettingsScreen_VersionNumber"
Expand Down
22 changes: 17 additions & 5 deletions app/components/screens/StartScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,24 @@ class StartScreen extends React.Component {
});
}

shouldComponentUpdate(nextProps) {
const {
isPlaying
} = nextProps;
if (nextProps.navigation.getParam('isPlaying', false) !== isPlaying) {
this.props.navigation.setParams({ isPlaying });
}
return true;
}

componentDidUpdate(nextProps) {
const {
editMode,
isPlaying,
setEditMode,
availableSounds,
setAvailableSounds,
setPlaylist
} = nextProps;
if (nextProps.navigation.getParam('isPlaying', false) !== isPlaying) {
this.props.navigation.setParams({ isPlaying });
}
if (nextProps.navigation.getParam('editMode', false) !== editMode) {
this.props.navigation.setParams({ editMode });
}
Expand Down Expand Up @@ -158,8 +164,14 @@ class StartScreen extends React.Component {
}
}

const mapStateToProps = ({ isPlaying, editMode, availableSounds }) => ({
const mapStateToProps = ({
isPlaying,
playlist,
editMode,
availableSounds
}) => ({
isPlaying,
playlist,
editMode,
availableSounds
});
Expand Down
57 changes: 29 additions & 28 deletions ios/parentssoundboard.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions ios/parentssoundboard/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.3</string>
<string>1.0.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>8</string>
<string>9</string>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3605892700353864~6311465901</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down Expand Up @@ -75,8 +77,6 @@
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3605892700353864~6311465901</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
Expand Down
Loading

0 comments on commit 8ba9a36

Please sign in to comment.