Skip to content

Commit

Permalink
Merge pull request #394 from hummingbird-me/develop
Browse files Browse the repository at this point in the history
v6.8.1
  • Loading branch information
Mikunj authored Sep 26, 2018
2 parents 26b00ed + 0b7b5d6 commit 3e53de4
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ android {
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "6.8"
versionName "6.8.1"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ SPEC CHECKSUMS:
QBImagePickerController: d54cf93db6decf26baf6ed3472f336ef35cae022
RSKImageCropper: d9a1acbc0600bf8decc8f0d21895872c99a9e4cf

PODFILE CHECKSUM: 5effe5ff74f049d1a27b91df714ddd9291059a54
PODFILE CHECKSUM: 071e16becd46f793bfc779b2e8e371cfa05b39b9

COCOAPODS: 1.5.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildSystemType</key>
<string>Original</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion ios/kitsu_mobile/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>6.8</string>
<string>6.8.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kitsu_mobile",
"version": "6.8",
"version": "6.8.1",
"private": true,
"scripts": {
"debug": "REACT_DEBUGGER=\"rndebugger-open --open --port 8081\" yarn start",
Expand Down
2 changes: 1 addition & 1 deletion src/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const kitsuConfig = {
assetsUrl: `${kitsuUrl}/images`,
baseUrl: apiUrl,
uploadUrl: `${apiUrl}/edge/uploads/_bulk`,
version: '6.8',
version: '6.8.1',
stream: {
API_KEY: 'eb6dvmba4ct3',
API_SECRET:
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Feed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Feed extends React.PureComponent {
Disable this on iOS if we start to get missing content
We could also improve performance by setting `windowSize` prop (default is 21, 10 views above and 10 views below)
*/
removeClippedSubviews
removeClippedSubviews={Platform.OS === 'android'}
/>
</View>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class Unit extends PureComponent {
this.setState({ selectedUnit: item, selectedVideoIndex: 0 }, this.fetchFeed);
video = item.videos[0];
}
const { eid, network } = video.embedData;
const message = { message: 'initialize', id: eid, network };
const embedData = (video && video.embedData) || {};
const message = { message: 'initialize', id: embedData.eid, network: embedData.network };
this.webview.postMessage(JSON.stringify(message));
};

Expand Down Expand Up @@ -184,7 +184,7 @@ class Unit extends PureComponent {
));

// Injected javascript
const selectedVideoData = selectedVideo && selectedVideo.embedData;
const selectedVideoData = (selectedVideo && selectedVideo.embedData) || {};
const injectedJavaScript = `window.initializeHulu('${selectedVideoData.eid}', '${selectedVideoData.network}');`;

return (
Expand Down
11 changes: 7 additions & 4 deletions src/screens/Profiles/ProfilePages/pages/Library/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ const getCardVisibilityCounts = () => {
const progressFromLibraryEntry = (libraryEntry) => {
const mediaData = libraryEntry.anime || libraryEntry.manga;

if (mediaData.type === 'anime') {
return Math.floor((libraryEntry.progress / mediaData.episodeCount) * 100);
}
// Make sure we have a media set for the entry
if (!mediaData) return 0;

// Make sure we have an episode or chapter count
const count = mediaData.type === 'anime' ? mediaData.episodeCount : mediaData.chapterCount;
if (!count) return 0;

return Math.floor((libraryEntry.progress / mediaData.chapterCount) * 100);
return Math.floor((libraryEntry.progress / count) * 100);
};

class Library extends PureComponent {
Expand Down

0 comments on commit 3e53de4

Please sign in to comment.