From 69177151a483f9fa9687de732b84fd8ef046dc57 Mon Sep 17 00:00:00 2001 From: Preshita Shirke Date: Thu, 24 Oct 2019 13:42:56 +0530 Subject: [PATCH 01/27] temp fix --- src/components/CustomTab/index.js | 6 +----- src/components/FanVideoDetails/index.js | 5 ++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/CustomTab/index.js b/src/components/CustomTab/index.js index 0eebfab4..6ed8b668 100644 --- a/src/components/CustomTab/index.js +++ b/src/components/CustomTab/index.js @@ -57,11 +57,7 @@ function loginInFlow(navigation, tab) { return; } if (currentTabIndex == undefined || currentTabIndex == null) return; - if (tabBeforeCaptureVideo != null && currentTabIndex == tabBeforeCaptureVideo ){ - navigation.dispatch(StackActions.popToTop()); - navigation.dispatch(StackActions.popToTop()); - tabBeforeCaptureVideo = null; - } else if (previousTabIndex !== currentTabIndex) { + if (previousTabIndex !== currentTabIndex) { tab.rootStack == 'Notification' && refreshActivity(tab.childStack); navigation.navigate(tab.rootStack); } else if (utilities.getLastChildRoutename(navigation.state) !== tab.childStack) { diff --git a/src/components/FanVideoDetails/index.js b/src/components/FanVideoDetails/index.js index ff8db14a..27165b43 100644 --- a/src/components/FanVideoDetails/index.js +++ b/src/components/FanVideoDetails/index.js @@ -26,6 +26,7 @@ import Store from '../../store'; import { upsertRecordedVideo } from '../../actions'; import multipleClickHandler from '../../services/MultipleClickHandler'; import { getBottomSpace } from 'react-native-iphone-x-helper'; +import { StackActions } from 'react-navigation'; const mapStateToProps = (state, ownProps) => { return { @@ -126,7 +127,9 @@ class FanVideoDetails extends Component { Store.dispatch( upsertRecordedVideo({ video_desc: this.state.videoDesc, video_link: this.state.videoLink, do_upload: true }) ); - this.props.navigation.navigate('HomeScreen'); + this.props.navigation.dispatch(StackActions.popToTop()); + this.props.navigation.dispatch(StackActions.popToTop()); + this.props.navigation.navigate('HomeScreen'); }; onChangeDesc = (desc) => { From 66be8b70334af63e6e5d3ef363151132dc6670a8 Mon Sep 17 00:00:00 2001 From: Preshita Shirke Date: Thu, 24 Oct 2019 16:37:19 +0530 Subject: [PATCH 02/27] remove unused code --- src/components/CustomTab/index.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/components/CustomTab/index.js b/src/components/CustomTab/index.js index 6ed8b668..af1acfa1 100644 --- a/src/components/CustomTab/index.js +++ b/src/components/CustomTab/index.js @@ -28,7 +28,6 @@ const mapStateToProps = (state, ownProps) => { }; let previousTabIndex = 0; -let tabBeforeCaptureVideo = null; function onTabPressed(navigation, tab) { if (CurrentUser.getOstUserId()) { @@ -38,21 +37,11 @@ function onTabPressed(navigation, tab) { } } -function getStackbeforeVideoCapture(index) { - for (let config in appConfig.tabConfig){ - if ( appConfig.tabConfig[config].navigationIndex == index ){ - return appConfig.tabConfig[config]; - } - } - -} - let refreshTimeOut = 0; function loginInFlow(navigation, tab) { let currentTabIndex = tab.navigationIndex; - if (tab.rootStack === 'CaptureVideo') { - tabBeforeCaptureVideo = previousTabIndex; + if (tab.rootStack === 'CaptureVideo') { utilities.handleVideoUploadModal(previousTabIndex, navigation); return; } From d334aa97f5f069dfa1d409c2f9c2900cfc59abf5 Mon Sep 17 00:00:00 2001 From: Shraddha Date: Thu, 24 Oct 2019 17:05:31 +0530 Subject: [PATCH 03/27] error msg change bug fix --- src/components/Transaction/TransactionScreen.js | 5 ++++- src/services/OstErrors.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Transaction/TransactionScreen.js b/src/components/Transaction/TransactionScreen.js index 70616b39..11506e71 100644 --- a/src/components/Transaction/TransactionScreen.js +++ b/src/components/Transaction/TransactionScreen.js @@ -257,9 +257,12 @@ class TransactionScreen extends Component { return ostErrors.getUIErrorMessage('bt_amount_decimal_allowed_error'); } btAmount = btAmount && Number(btAmount); - if (!btAmount || btAmount < validMinAmount || btAmount > this.state.balance) { + if (!btAmount || btAmount < validMinAmount) { return ostErrors.getUIErrorMessage('bt_amount_error'); } + if( btAmount && btAmount > this.state.balance ){ + return ostErrors.getUIErrorMessage('bt_exceeds_bal_amount_error'); + } return undefined; } diff --git a/src/services/OstErrors.js b/src/services/OstErrors.js index 3bba8f83..7d837bea 100644 --- a/src/services/OstErrors.js +++ b/src/services/OstErrors.js @@ -39,7 +39,8 @@ const UIErros = { redemption_error : "Failed to redeem, please try again later", max_pepocorns: `Sorry, you don't have enough Pepo Coins to buy this many ${Utilities.getPepoCornsName()}`, price_point_validation_failed: `Sorry, you don't have enough Pepo Coins to buy this many ${Utilities.getPepoCornsName()}`, - min_pepocorns: `Minimum amount allowed is 1 ${Utilities.getPepoCornsName()}.` + min_pepocorns: `Minimum amount allowed is 1 ${Utilities.getPepoCornsName()}.`, + bt_exceeds_bal_amount_error : `Sorry, you don't have enough Pepo Coins for this transactions.` }; const UIWhitelistedErrorCode = { From d8ca5c6c0dc561634927d50d4d7501d3d4c486fb Mon Sep 17 00:00:00 2001 From: Ashutosh Date: Thu, 24 Oct 2019 17:44:13 +0530 Subject: [PATCH 04/27] Version bump --- ios/Pepo2/Info.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Pepo2/Info.plist b/ios/Pepo2/Info.plist index 5f5c5407..db4a267d 100644 --- a/ios/Pepo2/Info.plist +++ b/ios/Pepo2/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.9.4 + 0.9.5 CFBundleSignature ???? CFBundleURLTypes @@ -40,7 +40,7 @@ CFBundleVersion - 18 + 19 Fabric APIKey From 261350eaffc57bb747bbc24d51c85076ffd9d51a Mon Sep 17 00:00:00 2001 From: Ashutosh Date: Thu, 24 Oct 2019 18:13:11 +0530 Subject: [PATCH 05/27] Version bump --- android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index a2c8bbc5..234c143c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -126,8 +126,8 @@ android { applicationId "com.pepo.staging" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 17 - versionName "0.9.4" + versionCode 18 + versionName "0.9.5" missingDimensionStrategy 'react-native-camera', 'general' } splits { From 78edb8c2094fb573999c96edf4264fa31e3deecc Mon Sep 17 00:00:00 2001 From: Shraddha Date: Fri, 25 Oct 2019 14:16:59 +0530 Subject: [PATCH 06/27] bug fix --- src/components/Notification/NotificationItem.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/Notification/NotificationItem.js b/src/components/Notification/NotificationItem.js index df26bf6b..80093993 100644 --- a/src/components/Notification/NotificationItem.js +++ b/src/components/Notification/NotificationItem.js @@ -172,7 +172,20 @@ class NotificationItem extends Component { }else if( AppConfig.pepoCornsActivityKinds.includes(this.props.kind)){ return }else{ - return ; + let includesObj = this.props.heading && this.props.heading["includes"] || {} , + userObj ; + for(let key in includesObj ){ + userObj = includesObj[key] || null; + break ; + } + if(userObj){ + return this.includesTextNavigate(userObj))}> + + + }else { + return ; + } + } } From fd5195447426a84834e39573420182fb6aa7a2b5 Mon Sep 17 00:00:00 2001 From: Aniket Date: Wed, 30 Oct 2019 17:47:06 +0530 Subject: [PATCH 07/27] data protection enabled --- ios/Pepo2.xcodeproj/project.pbxproj | 3 +++ ios/Pepo2/Pepo2.entitlements | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ios/Pepo2.xcodeproj/project.pbxproj b/ios/Pepo2.xcodeproj/project.pbxproj index cc04b439..7089e95b 100644 --- a/ios/Pepo2.xcodeproj/project.pbxproj +++ b/ios/Pepo2.xcodeproj/project.pbxproj @@ -1468,6 +1468,9 @@ com.apple.BackgroundModes = { enabled = 1; }; + com.apple.DataProtection = { + enabled = 1; + }; com.apple.InAppPurchase = { enabled = 1; }; diff --git a/ios/Pepo2/Pepo2.entitlements b/ios/Pepo2/Pepo2.entitlements index 956a0e32..cb66b001 100644 --- a/ios/Pepo2/Pepo2.entitlements +++ b/ios/Pepo2/Pepo2.entitlements @@ -9,5 +9,7 @@ applinks:stagingpepo.com applinks:app.stagingpepo.com + com.apple.developer.default-data-protection + NSFileProtectionComplete From d7ef57bb9f3b0fcb7690f1cf927cf258313ca3dc Mon Sep 17 00:00:00 2001 From: Aniket Date: Wed, 30 Oct 2019 17:51:33 +0530 Subject: [PATCH 08/27] fix --- ios/Pepo2.xcodeproj/project.pbxproj | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Pepo2.xcodeproj/project.pbxproj b/ios/Pepo2.xcodeproj/project.pbxproj index 7089e95b..105764d8 100644 --- a/ios/Pepo2.xcodeproj/project.pbxproj +++ b/ios/Pepo2.xcodeproj/project.pbxproj @@ -5,6 +5,7 @@ }; objectVersion = 46; objects = { + /* Begin PBXBuildFile section */ 00029B4323329B55009E6919 /* TrustKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B76D86A2318FAAC007316D4 /* TrustKit.framework */; }; 00029B4423329B63009E6919 /* OstWalletSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0050FDA022A8226800C2634F /* OstWalletSdk.framework */; }; From 664b25608f84578aab4a3cf59cb3f8d4ff7ef59b Mon Sep 17 00:00:00 2001 From: Aniket Date: Thu, 31 Oct 2019 16:44:53 +0530 Subject: [PATCH 09/27] dectecting tag added. --- ios/Pepo2.xcodeproj/project.pbxproj | 1 + src/components/Home/BottomStatus.js | 40 ++++++++++++++++++++++++----- src/services/ReduxGetters.js | 6 +++++ 3 files changed, 41 insertions(+), 6 deletions(-) diff --git a/ios/Pepo2.xcodeproj/project.pbxproj b/ios/Pepo2.xcodeproj/project.pbxproj index 105764d8..966bd440 100644 --- a/ios/Pepo2.xcodeproj/project.pbxproj +++ b/ios/Pepo2.xcodeproj/project.pbxproj @@ -2344,6 +2344,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.pepo.staging; PRODUCT_NAME = Pepo2; PROVISIONING_PROFILE_SPECIFIER = ""; + TARGETED_DEVICE_FAMILY = 1; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; diff --git a/src/components/Home/BottomStatus.js b/src/components/Home/BottomStatus.js index e327df86..c32c739c 100644 --- a/src/components/Home/BottomStatus.js +++ b/src/components/Home/BottomStatus.js @@ -32,30 +32,58 @@ class BottomStatus extends PureComponent { onLinkClick = () => { InAppBrowser.openBrowser(this.props.link); - } + }; + + onTagPressed = (tag) => { + let videoDescriptionId = reduxGetter.getVideoDescriptionId(this.props.videoId); + let entity = reduxGetter.getTappedIncludesEntity(videoDescriptionId, tag); + this.props.onDescriptionClick && this.props.onDescriptionClick(entity, tag); + }; render() { return ( this.onWrapperClick())} pointerEvents={'auto'}> + {`@${this.props.userName}`} - {this.props.description ? ( + + + + {this.props.description ? ( - {this.props.description} + {this.props.description.split(' ').map((item) => { + if (item.startsWith('#')) { + return( + {this.onTagPressed(item)}} + > + {item + " "} + + ); + }else { + return( {item + " "} ); + } + })} ) : ( ) } - - + {this.props.link ? ( { @@ -76,7 +104,7 @@ class BottomStatus extends PureComponent { )} ); - } + }; } export default connect(mapStateToProps)(withNavigation(BottomStatus)); diff --git a/src/services/ReduxGetters.js b/src/services/ReduxGetters.js index 9589b765..4670e311 100644 --- a/src/services/ReduxGetters.js +++ b/src/services/ReduxGetters.js @@ -117,6 +117,12 @@ class ReduxGetters { return deepGet(state, `video_stat_entities.id_${id}.description_id`); } + getTappedIncludesEntity(videoId, tappedText) { + let state = Store.getState(); + return deepGet(state, `video_description_entities.id_${videoId}.includes.${tappedText}`); + } + + getVideoLink(id, state) { state = state || Store.getState(); return unescape(deepGet(state, `link_entities.id_${id}.url`)); From 79dd8d91dcdc70c3ff6f563d32abc8f2fd0937aa Mon Sep 17 00:00:00 2001 From: Shraddha Date: Thu, 31 Oct 2019 18:10:38 +0530 Subject: [PATCH 10/27] navigation on tags click --- .../CommonComponents/UserInfo/index.js | 38 ++++++++++++++++++- .../FullScreeVideoRow.js | 10 +++++ src/components/Home/BottomStatus.js | 11 +++--- src/components/Home/HomeFeedRow.js | 11 +++++- .../UserVideoHistory/UserVideoHistoryRow.js | 14 +++++++ src/services/ReduxGetters.js | 5 +++ 6 files changed, 81 insertions(+), 8 deletions(-) diff --git a/src/components/CommonComponents/UserInfo/index.js b/src/components/CommonComponents/UserInfo/index.js index a91b35eb..b249bff8 100644 --- a/src/components/CommonComponents/UserInfo/index.js +++ b/src/components/CommonComponents/UserInfo/index.js @@ -16,6 +16,7 @@ import InAppBrowser from '../../../services/InAppBrowser'; import profileLink from '../../../assets/profile_link.png'; import twitterLink from '../../../assets/twitter_link.png'; import Utilities from '../../../services/Utilities'; +import inlineStyles from '../../Home/styles'; const mapStateToProps = (state, ownProps) => { return { @@ -82,6 +83,21 @@ class UserInfo extends React.PureComponent { ); }; + onTagPressed = (tag) => { + let entity = reduxGetter.getBioIncudes(this.props.userId, tag); + if (!entity) { + return; + } + + if(entity.kind === 'tags'){ + this.props.navigation.push('VideoTags', { + "tagId": entity.id + }); + } + }; + + + render() { return ( @@ -129,7 +145,27 @@ class UserInfo extends React.PureComponent { Received - {!!this.props.bio && {this.props.bio}} + {!!this.props.bio && + + {this.props.bio.split(' ').map((item) => { + + let onPressFunc = () => {}; + + if (item.startsWith('#')) { + onPressFunc = this.onTagPressed; + } + + return( + {onPressFunc(item)} } + > + {item + " "} + + ); + })} + + } {!!this.props.link && ( diff --git a/src/components/FullScreenVideoCollection/FullScreeVideoRow.js b/src/components/FullScreenVideoCollection/FullScreeVideoRow.js index 79dfc590..55fb1a46 100644 --- a/src/components/FullScreenVideoCollection/FullScreeVideoRow.js +++ b/src/components/FullScreenVideoCollection/FullScreeVideoRow.js @@ -53,6 +53,15 @@ class FullScreeVideoRow extends PureComponent { } }; + onDescriptionClick = ( tapEntity , tapText ) => { + if( tapEntity.kind === 'tags'){ + this.props.navigation.push('VideoTags', { + "tagId": tapEntity.id + }); + } + + } + render() { return ( @@ -89,6 +98,7 @@ class FullScreeVideoRow extends PureComponent { userId={this.userId} videoId={this.videoId} onWrapperClick={this.navigateToUserProfile} + onDescriptionClick={this.onDescriptionClick} /> )} diff --git a/src/components/Home/BottomStatus.js b/src/components/Home/BottomStatus.js index c32c739c..5a71e419 100644 --- a/src/components/Home/BottomStatus.js +++ b/src/components/Home/BottomStatus.js @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { withNavigation } from 'react-navigation'; import inlineStyles from './styles'; -import { TouchableWithoutFeedback } from 'react-native-gesture-handler'; +import { TouchableWithoutFeedback, TouchableOpacity } from 'react-native-gesture-handler'; import reduxGetter from '../../services/ReduxGetters'; import multipleClickHandler from '../../services/MultipleClickHandler'; @@ -43,16 +43,14 @@ class BottomStatus extends PureComponent { render() { return ( - this.onWrapperClick())} pointerEvents={'auto'}> - + + this.onWrapperClick())} pointerEvents={'auto'}> {`@${this.props.userName}`} - - - {this.props.description ? ( + {this.props.description ? ( ) } + {this.props.link ? ( { + if( tapEntity.kind === 'tags'){ + this.props.navigation.push('VideoTags', { + "tagId": tapEntity.id + }); + } + + } + render() { return ( @@ -90,7 +99,7 @@ class HomeFeedRow extends PureComponent { /> - + ); diff --git a/src/components/UserVideoHistory/UserVideoHistoryRow.js b/src/components/UserVideoHistory/UserVideoHistoryRow.js index d3b87eea..9a3b88a1 100644 --- a/src/components/UserVideoHistory/UserVideoHistoryRow.js +++ b/src/components/UserVideoHistory/UserVideoHistoryRow.js @@ -50,6 +50,19 @@ class UserVideoHistoryRow extends PureComponent { shareVideo.perform(); }; + onDescriptionClick = ( tapEntity , tapText ) => { + + if (!tapEntity) { + return; + } + + if(tapEntity.kind === 'tags'){ + this.props.navigation.push('VideoTags', { + "tagId": tapEntity.id + }); + } + }; + render() { return ( @@ -86,6 +99,7 @@ class UserVideoHistoryRow extends PureComponent { userId={this.props.userId} videoId={this.props.videoId} onWrapperClick={this.props.onWrapperClick} + onDescriptionClick={this.onDescriptionClick} /> )} diff --git a/src/services/ReduxGetters.js b/src/services/ReduxGetters.js index 4670e311..feee8a4e 100644 --- a/src/services/ReduxGetters.js +++ b/src/services/ReduxGetters.js @@ -82,6 +82,11 @@ class ReduxGetters { return unescape(deepGet(state, `user_profile_entities.id_${id}.bio.text`)); } + getBioIncudes(userId, tappedText) { + let state = Store.getState(); + return deepGet(state, `user_profile_entities.id_${userId}.bio.includes.${tappedText}`); + } + canBlockUser(id ,state){ state = state || Store.getState(); return !!deepGet(state, `user_allowed_action_entities.id_${id}.can_block` , true) ; From 5999daaaf551e8c1d0226a800eabe3ea924e576f Mon Sep 17 00:00:00 2001 From: Shraddha Date: Thu, 31 Oct 2019 19:37:52 +0530 Subject: [PATCH 11/27] tags fixes --- .../FullScreenVideoCollection/FullScreeVideoRow.js | 8 ++++++++ src/components/FullScreenVideoCollection/index.js | 3 ++- src/components/Home/HomeFeedRow.js | 4 ++++ src/components/UserVideoHistory/index.js | 9 +++++---- src/components/VideoCollections/index.js | 3 ++- src/components/VideoTags/index.js | 3 ++- 6 files changed, 23 insertions(+), 7 deletions(-) diff --git a/src/components/FullScreenVideoCollection/FullScreeVideoRow.js b/src/components/FullScreenVideoCollection/FullScreeVideoRow.js index 55fb1a46..5c8fe51e 100644 --- a/src/components/FullScreenVideoCollection/FullScreeVideoRow.js +++ b/src/components/FullScreenVideoCollection/FullScreeVideoRow.js @@ -54,6 +54,14 @@ class FullScreeVideoRow extends PureComponent { }; onDescriptionClick = ( tapEntity , tapText ) => { + if (!tapEntity) { + return; + } + + if(tapEntity.id === this.props.refTagId){ + return; + } + if( tapEntity.kind === 'tags'){ this.props.navigation.push('VideoTags', { "tagId": tapEntity.id diff --git a/src/components/FullScreenVideoCollection/index.js b/src/components/FullScreenVideoCollection/index.js index ae082139..a2204ccf 100644 --- a/src/components/FullScreenVideoCollection/index.js +++ b/src/components/FullScreenVideoCollection/index.js @@ -133,7 +133,8 @@ class FullScreenVideoCollection extends PureComponent{ return ; + payload={payload} + refTagId = {this.props.navigation.state.params.refTagId}/> ; }; onViewableItemsChanged = (data) => { diff --git a/src/components/Home/HomeFeedRow.js b/src/components/Home/HomeFeedRow.js index 25ef1fab..df03d73d 100644 --- a/src/components/Home/HomeFeedRow.js +++ b/src/components/Home/HomeFeedRow.js @@ -57,6 +57,10 @@ class HomeFeedRow extends PureComponent { }; onDescriptionClick = ( tapEntity , tapText ) => { + if (!tapEntity) { + return; + } + if( tapEntity.kind === 'tags'){ this.props.navigation.push('VideoTags', { "tagId": tapEntity.id diff --git a/src/components/UserVideoHistory/index.js b/src/components/UserVideoHistory/index.js index 4f45cadb..85808e50 100644 --- a/src/components/UserVideoHistory/index.js +++ b/src/components/UserVideoHistory/index.js @@ -16,11 +16,12 @@ const maxVideosThreshold = 3; class UserVideoHistoryScreen extends PureComponent{ - static navigationOptions = (options) => { - return { - header: null - }; + static navigationOptions = (options) => { + return { + headerBackTitle: null, + header: null }; + }; constructor(props){ super(props); diff --git a/src/components/VideoCollections/index.js b/src/components/VideoCollections/index.js index 471554a1..4b4d0cd1 100644 --- a/src/components/VideoCollections/index.js +++ b/src/components/VideoCollections/index.js @@ -172,7 +172,8 @@ class VideoCollections extends PureComponent { currentIndex: index, payload, baseUrl: this.props.getFetchUrl(), - showBalanceFlier: this.props.extraParams && this.props.extraParams.showBalanceFlier + showBalanceFlier: this.props.extraParams && this.props.extraParams.showBalanceFlier, + refTagId: this.props.extraParams.tagId }); } renderFooter = () => { diff --git a/src/components/VideoTags/index.js b/src/components/VideoTags/index.js index 709d7a68..272318e8 100644 --- a/src/components/VideoTags/index.js +++ b/src/components/VideoTags/index.js @@ -102,7 +102,8 @@ class VideoTags extends PureComponent { getExtraParams = () => { return { - showBalanceFlier: true + showBalanceFlier: true, + tagId : this.getTagId() }; }; From 9ecc7036d1ecb1cde13534d0f81a2028271084f8 Mon Sep 17 00:00:00 2001 From: Preshita Shirke Date: Thu, 31 Oct 2019 21:08:53 +0530 Subject: [PATCH 12/27] fix video not pausing coach screen issue --- src/components/Home/VideoWrapper.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/Home/VideoWrapper.js b/src/components/Home/VideoWrapper.js index afa8797a..76b27141 100644 --- a/src/components/Home/VideoWrapper.js +++ b/src/components/Home/VideoWrapper.js @@ -35,6 +35,7 @@ class VideoWrapper extends PureComponent { this.isPixelCalledOnEnd = false; this.minTimeConsideredForView = 1; this.source = {}; + this.currentPauseStatus = true; //Default value. this.videoContext = { userId: null, @@ -113,6 +114,11 @@ class VideoWrapper extends PureComponent { playVideo() { if (this.props.isActive && this.state.paused) { this.setState({ paused: false }); + return; + } + if ( this.isPaused() != this.currentPauseStatus ) { + //Force render. + this.forceUpdate(); } } @@ -206,6 +212,13 @@ class VideoWrapper extends PureComponent { this.isPixelCalledOnEnd = true; }; + getIsVideoPausedStatus = () => { + //NOTE: NEVER CALL THIS METHOD FROM ANYWHERE ELSE> + //CALLED from paused prop of video. + this.currentPauseStatus = this.isPaused(); + return this.currentPauseStatus; + } + render() { return ( @@ -215,7 +228,7 @@ class VideoWrapper extends PureComponent { poster={this.props.videoImgUrl} posterResizeMode={this.props.posterResizeMode || 'cover'} style={[inlineStyles.fullHeightWidthSkipFont, this.props.style]} - paused={this.isPaused()} + paused={this.getIsVideoPausedStatus()} resizeMode={this.props.resizeMode || 'cover'} source={{ uri: this.props.videoUrl }} repeat={this.props.repeat || true} From 8718566afd7a5890df66abc32f64f36ed0a7f923 Mon Sep 17 00:00:00 2001 From: Preshita Shirke Date: Thu, 31 Oct 2019 21:27:38 +0530 Subject: [PATCH 13/27] fix description and link not saving after back issue --- .../TagsInput/CustomTextInput.js | 18 ++++++++++++- .../CommonComponents/TagsInput/index.js | 25 ++++++++++------- .../FanVideoDetails/VideoDescription.js | 9 ++----- src/components/FanVideoDetails/index.js | 27 ++++++++----------- 4 files changed, 46 insertions(+), 33 deletions(-) diff --git a/src/components/CommonComponents/TagsInput/CustomTextInput.js b/src/components/CommonComponents/TagsInput/CustomTextInput.js index 3a897ce5..1234830e 100644 --- a/src/components/CommonComponents/TagsInput/CustomTextInput.js +++ b/src/components/CommonComponents/TagsInput/CustomTextInput.js @@ -8,12 +8,29 @@ const MAX_LENGTH = 500; class CustomTextInput extends PureComponent { constructor(props) { super(props); + this.textInputRef = null; } + setTextInputRef = (textInputRef) => { + this.textInputRef = textInputRef; + if ( this.props.value ) { + this.setInputText( this.props.value ); + } + }; + + setInputText = ( text ) => { + if ( this.textInputRef ) { + this.textInputRef.setNativeProps({ + "text": text + }); + } + }; + render() { return ( { @@ -21,7 +38,6 @@ class CustomTextInput extends PureComponent { }} multiline={true} autoFocus={this.props.autoFocus} - value={this.props.value} placeholder={this.props.placeholderText} multiline={true} numberOfLines={3} diff --git a/src/components/CommonComponents/TagsInput/index.js b/src/components/CommonComponents/TagsInput/index.js index 22b11281..001c55ef 100644 --- a/src/components/CommonComponents/TagsInput/index.js +++ b/src/components/CommonComponents/TagsInput/index.js @@ -9,13 +9,14 @@ class TagsInput extends PureComponent { super(props); this.state = { data: [], - value: this.props.initialValue, keyword: '' }; + this.value = this.props.initialValue; this.reqTimer = 0; this.wordIndex = -1; this.indexWord = null; this.isTrackingStarted = false; + this.customTextInputRef = null; } fetchHashTags = (keyword) => { @@ -66,10 +67,15 @@ class TagsInput extends PureComponent { this.changeValue(val); }; + setCustomInputRef = ( ref )=> { + this.customTextInputRef = ref; + } + changeValue = (val) => { - this.setState({ - value: val + this.customTextInputRef.textInputRef.setNativeProps({ + "text": val }); + this.value = val; this.props.onChangeVal(val); }; @@ -123,11 +129,11 @@ class TagsInput extends PureComponent { onSuggestionTap(item) { this.closeSuggestionsPanel(); - const wordToReplace = this.getWordAtIndex(this.state.value, this.wordIndex), + const wordToReplace = this.getWordAtIndex(this.value, this.wordIndex), isHashTag = this.isHashTag(wordToReplace); if (isHashTag) { - const startIndex = this.getStartIndex(this.state.value, this.wordIndex), - endIndex = this.getEndIndex(this.state.value, this.wordIndex), + const startIndex = this.getStartIndex(this.value, this.wordIndex), + endIndex = this.getEndIndex(this.value, this.wordIndex), replaceString = ` #${item.text} `, newString = this.replaceBetween(startIndex, endIndex, replaceString); this.changeValue(newString); @@ -135,7 +141,7 @@ class TagsInput extends PureComponent { } replaceBetween(start, end, replaceString) { - return this.state.value.substring(0, start) + replaceString + this.state.value.substring(end); + return this.value.substring(0, start) + replaceString + this.value.substring(end); } getStartIndex(text, index) { @@ -175,10 +181,11 @@ class TagsInput extends PureComponent { renderItem={this._renderItem} ListHeaderComponent={ { - this.props.submitEvent(this.state.value); + this.props.submitEvent(this.value); }} locationGetter={this.locationGetter} onChangeText={this.onChangeText} diff --git a/src/components/FanVideoDetails/VideoDescription.js b/src/components/FanVideoDetails/VideoDescription.js index fdca9339..8e6f1930 100644 --- a/src/components/FanVideoDetails/VideoDescription.js +++ b/src/components/FanVideoDetails/VideoDescription.js @@ -7,15 +7,10 @@ import TagsInput from '../CommonComponents/TagsInput'; class VideoDescription extends PureComponent { constructor(props) { super(props); - this.state = { - value: this.props.initialValue - }; + this.value = this.props.initialValue; } onChangeValue = (value) => { - this.setState({ - value - }); this.props.onChangeDesc(value); }; @@ -26,7 +21,7 @@ class VideoDescription extends PureComponent { { - this.setState({ - videoDesc: desc - }); - //Done for the value to be accessible in static navigationOptions - this.props.navigation.setParams({ + this.videoDesc = desc; + //Done for the value to be accessible in static navigationOptions + this.props.navigation.setParams({ videoDesc: desc }); }; onChangeLink = (link) => { - this.setState({ - videoLink: link, - error: '' - }); - //Done for the value to be accessible in static navigationOptions - this.props.navigation.setParams({ + this.videoLink = link; + //Done for the value to be accessible in static navigationOptions + this.props.navigation.setParams({ videoLink: link }); }; @@ -160,10 +155,10 @@ class FanVideoDetails extends Component { }; validLink = () => { - if (!this.state.videoLink) return true; + if (!this.videoLink) return true; //synced with backend if ( - !this.state.videoLink.match( + !this.videoLink.match( /^(http(s)?:\/\/)([a-zA-Z0-9-_@:%+~#=]{1,256}\.)+[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=*]*)$/i ) ) { From db1e00ff4bae9997c1843b9dbbdf2fc43822c5a0 Mon Sep 17 00:00:00 2001 From: Aniket Date: Fri, 1 Nov 2019 13:12:54 +0530 Subject: [PATCH 14/27] logged out bug fixed. --- src/components/Home/HomeFeedRow.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/Home/HomeFeedRow.js b/src/components/Home/HomeFeedRow.js index df03d73d..7814e81a 100644 --- a/src/components/Home/HomeFeedRow.js +++ b/src/components/Home/HomeFeedRow.js @@ -57,17 +57,19 @@ class HomeFeedRow extends PureComponent { }; onDescriptionClick = ( tapEntity , tapText ) => { - if (!tapEntity) { - return; - } + if (utilities.checkActiveUser()) { + if (!tapEntity) { + return; + } - if( tapEntity.kind === 'tags'){ - this.props.navigation.push('VideoTags', { - "tagId": tapEntity.id - }); - } + if( tapEntity.kind === 'tags'){ + this.props.navigation.push('VideoTags', { + "tagId": tapEntity.id + }); + } - } + } + }; render() { From d96686202c7aa0833e5a74e80257c7946a445e9b Mon Sep 17 00:00:00 2001 From: Preshita Shirke Date: Fri, 1 Nov 2019 13:50:22 +0530 Subject: [PATCH 15/27] minor style changes --- src/components/CommonComponents/UserInfo/index.js | 5 ++--- src/components/CommonComponents/UserInfo/styles.js | 8 +++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/CommonComponents/UserInfo/index.js b/src/components/CommonComponents/UserInfo/index.js index b249bff8..67d2ab48 100644 --- a/src/components/CommonComponents/UserInfo/index.js +++ b/src/components/CommonComponents/UserInfo/index.js @@ -145,8 +145,7 @@ class UserInfo extends React.PureComponent { Received - {!!this.props.bio && - + {!!this.props.bio && {this.props.bio.split(' ').map((item) => { let onPressFunc = () => {}; @@ -164,8 +163,8 @@ class UserInfo extends React.PureComponent { ); })} + } - } {!!this.props.link && ( diff --git a/src/components/CommonComponents/UserInfo/styles.js b/src/components/CommonComponents/UserInfo/styles.js index ef310f3d..2539e435 100644 --- a/src/components/CommonComponents/UserInfo/styles.js +++ b/src/components/CommonComponents/UserInfo/styles.js @@ -32,12 +32,14 @@ let stylesMap = { fontFamily: 'AvenirNext-DemiBold' }, bioSection: { - textAlign: 'center', - marginTop: 20, - paddingHorizontal: 30, color: Colors.valhalla, fontSize: 14 }, + bioSectionWrapper: { + marginTop: 20, + marginHorizontal: 30, + textAlign: 'center' + }, numericInfoWrapper: { marginTop: 20, flexDirection: 'row', From a244f1212d23df796a7d28e07d1481615d2d14ae Mon Sep 17 00:00:00 2001 From: Shraddha Date: Fri, 1 Nov 2019 15:59:13 +0530 Subject: [PATCH 16/27] bug fixes --- src/components/CommonComponents/UserInfo/index.js | 2 +- .../FullScreenVideoCollection/FullScreeVideoRow.js | 4 ---- src/components/FullScreenVideoCollection/index.js | 2 +- src/components/Home/BottomStatus.js | 9 ++++----- src/components/VideoCollections/index.js | 3 +-- src/components/VideoTags/index.js | 3 +-- 6 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/components/CommonComponents/UserInfo/index.js b/src/components/CommonComponents/UserInfo/index.js index 67d2ab48..d8560e84 100644 --- a/src/components/CommonComponents/UserInfo/index.js +++ b/src/components/CommonComponents/UserInfo/index.js @@ -156,7 +156,7 @@ class UserInfo extends React.PureComponent { return( {onPressFunc(item)} } > {item + " "} diff --git a/src/components/FullScreenVideoCollection/FullScreeVideoRow.js b/src/components/FullScreenVideoCollection/FullScreeVideoRow.js index 5c8fe51e..0dbf318a 100644 --- a/src/components/FullScreenVideoCollection/FullScreeVideoRow.js +++ b/src/components/FullScreenVideoCollection/FullScreeVideoRow.js @@ -58,10 +58,6 @@ class FullScreeVideoRow extends PureComponent { return; } - if(tapEntity.id === this.props.refTagId){ - return; - } - if( tapEntity.kind === 'tags'){ this.props.navigation.push('VideoTags', { "tagId": tapEntity.id diff --git a/src/components/FullScreenVideoCollection/index.js b/src/components/FullScreenVideoCollection/index.js index a2204ccf..4028438f 100644 --- a/src/components/FullScreenVideoCollection/index.js +++ b/src/components/FullScreenVideoCollection/index.js @@ -134,7 +134,7 @@ class FullScreenVideoCollection extends PureComponent{ isActive={index == this.state.activeIndex} doRender={Math.abs(index - this.state.activeIndex) < maxVideosThreshold} payload={payload} - refTagId = {this.props.navigation.state.params.refTagId}/> ; + /> ; }; onViewableItemsChanged = (data) => { diff --git a/src/components/Home/BottomStatus.js b/src/components/Home/BottomStatus.js index 5a71e419..f7db7235 100644 --- a/src/components/Home/BottomStatus.js +++ b/src/components/Home/BottomStatus.js @@ -64,16 +64,15 @@ class BottomStatus extends PureComponent { fontSize: 14, flexWrap: 'wrap', fontFamily: 'AvenirNext-Regular', - textAlign: 'left' + textAlign: 'left', + fontWeight : '700' }]} numberOfLines={1} onPress={()=>{this.onTagPressed(item)}} - > - {item + " "} - + >{item+" "} ); }else { - return( {item + " "} ); + return({item+ " "}); } })} diff --git a/src/components/VideoCollections/index.js b/src/components/VideoCollections/index.js index 4b4d0cd1..471554a1 100644 --- a/src/components/VideoCollections/index.js +++ b/src/components/VideoCollections/index.js @@ -172,8 +172,7 @@ class VideoCollections extends PureComponent { currentIndex: index, payload, baseUrl: this.props.getFetchUrl(), - showBalanceFlier: this.props.extraParams && this.props.extraParams.showBalanceFlier, - refTagId: this.props.extraParams.tagId + showBalanceFlier: this.props.extraParams && this.props.extraParams.showBalanceFlier }); } renderFooter = () => { diff --git a/src/components/VideoTags/index.js b/src/components/VideoTags/index.js index 272318e8..709d7a68 100644 --- a/src/components/VideoTags/index.js +++ b/src/components/VideoTags/index.js @@ -102,8 +102,7 @@ class VideoTags extends PureComponent { getExtraParams = () => { return { - showBalanceFlier: true, - tagId : this.getTagId() + showBalanceFlier: true }; }; From 39806768d1987b326bd28ee56e1306d5461b0fd8 Mon Sep 17 00:00:00 2001 From: Shraddha Date: Fri, 1 Nov 2019 16:45:04 +0530 Subject: [PATCH 17/27] tags styling --- src/components/CommonComponents/UserInfo/index.js | 2 +- src/components/Home/BottomStatus.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/CommonComponents/UserInfo/index.js b/src/components/CommonComponents/UserInfo/index.js index d8560e84..4104843a 100644 --- a/src/components/CommonComponents/UserInfo/index.js +++ b/src/components/CommonComponents/UserInfo/index.js @@ -156,7 +156,7 @@ class UserInfo extends React.PureComponent { return( {onPressFunc(item)} } > {item + " "} diff --git a/src/components/Home/BottomStatus.js b/src/components/Home/BottomStatus.js index f7db7235..9564a10b 100644 --- a/src/components/Home/BottomStatus.js +++ b/src/components/Home/BottomStatus.js @@ -63,9 +63,9 @@ class BottomStatus extends PureComponent { style={[inlineStyles.bottomBgTxt,{ fontSize: 14, flexWrap: 'wrap', - fontFamily: 'AvenirNext-Regular', + fontFamily: 'AvenirNext-DemiBold', textAlign: 'left', - fontWeight : '700' + fontStyle:'italic' }]} numberOfLines={1} onPress={()=>{this.onTagPressed(item)}} From da8f72f01d4f4539d7fc02ab3892ace882e01cdc Mon Sep 17 00:00:00 2001 From: Aniket Date: Fri, 1 Nov 2019 18:17:08 +0530 Subject: [PATCH 18/27] carthage update --- ios/Cartfile | 2 +- src/theme/ostsdk/ost-wallet-sdk-config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/Cartfile b/ios/Cartfile index 3a99b7ba..29b8cd0c 100644 --- a/ios/Cartfile +++ b/ios/Cartfile @@ -1 +1 @@ -github "ostdotcom/ost-wallet-sdk-ios" == 2.3.2 +github "ostdotcom/ost-wallet-sdk-ios" == 2.3.3-alpha.1 diff --git a/src/theme/ostsdk/ost-wallet-sdk-config.js b/src/theme/ostsdk/ost-wallet-sdk-config.js index dc87320f..92dec57a 100644 --- a/src/theme/ostsdk/ost-wallet-sdk-config.js +++ b/src/theme/ostsdk/ost-wallet-sdk-config.js @@ -4,5 +4,6 @@ export default { "REQUEST_TIMEOUT_DURATION": 60, "SESSION_BUFFER_TIME": 3600, "PRICE_POINT_CURRENCY_SYMBOL": "USD", - "USE_SEED_PASSWORD": true + "USE_SEED_PASSWORD": true, + "ENABLE_IOS_DEVICE_RESTORE": true } From 75bfbc0377e16cfcb7f663c6ecafd6129bbde10b Mon Sep 17 00:00:00 2001 From: Aniket Date: Fri, 1 Nov 2019 21:05:44 +0530 Subject: [PATCH 19/27] redux getter added and tag fix --- ios/Pepo2/Pepo2.entitlements | 4 ++++ src/components/CommonComponents/UserInfo/index.js | 7 ++++--- src/components/Home/BottomStatus.js | 6 +++--- src/services/ReduxGetters.js | 15 +++++++++++++-- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ios/Pepo2/Pepo2.entitlements b/ios/Pepo2/Pepo2.entitlements index cb66b001..1dccfece 100644 --- a/ios/Pepo2/Pepo2.entitlements +++ b/ios/Pepo2/Pepo2.entitlements @@ -11,5 +11,9 @@ com.apple.developer.default-data-protection NSFileProtectionComplete + com.apple.developer.icloud-container-identifiers + + com.apple.developer.ubiquity-kvstore-identifier + $(TeamIdentifierPrefix)$(CFBundleIdentifier) diff --git a/src/components/CommonComponents/UserInfo/index.js b/src/components/CommonComponents/UserInfo/index.js index 4104843a..c8f7000f 100644 --- a/src/components/CommonComponents/UserInfo/index.js +++ b/src/components/CommonComponents/UserInfo/index.js @@ -149,14 +149,15 @@ class UserInfo extends React.PureComponent { {this.props.bio.split(' ').map((item) => { let onPressFunc = () => {}; - - if (item.startsWith('#')) { + let style = [inlineStyle.bioSection]; + if (item.startsWith('#') && reduxGetter.isValidBioTag(this.props.userId, item)) { onPressFunc = this.onTagPressed; + style.push({fontStyle:'italic',fontFamily:'AvenirNext-DemiBold'}); } return( {onPressFunc(item)} } > {item + " "} diff --git a/src/components/Home/BottomStatus.js b/src/components/Home/BottomStatus.js index 9564a10b..c70ddb44 100644 --- a/src/components/Home/BottomStatus.js +++ b/src/components/Home/BottomStatus.js @@ -24,6 +24,7 @@ const mapStateToProps = (state, ownProps) => { class BottomStatus extends PureComponent { constructor(props) { super(props); + this.videoDescriptionId = reduxGetter.getVideoDescriptionId(this.props.videoId); } onWrapperClick = (e) => { @@ -35,8 +36,7 @@ class BottomStatus extends PureComponent { }; onTagPressed = (tag) => { - let videoDescriptionId = reduxGetter.getVideoDescriptionId(this.props.videoId); - let entity = reduxGetter.getTappedIncludesEntity(videoDescriptionId, tag); + let entity = reduxGetter.getTappedIncludesEntity(this.videoDescriptionId, tag); this.props.onDescriptionClick && this.props.onDescriptionClick(entity, tag); }; @@ -57,7 +57,7 @@ class BottomStatus extends PureComponent { numberOfLines={3} > {this.props.description.split(' ').map((item) => { - if (item.startsWith('#')) { + if (item.startsWith('#') && reduxGetter.isValidTag(this.videoDescriptionId, item)) { return( Date: Fri, 1 Nov 2019 21:06:14 +0530 Subject: [PATCH 20/27] entitlement revert --- ios/Pepo2/Pepo2.entitlements | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ios/Pepo2/Pepo2.entitlements b/ios/Pepo2/Pepo2.entitlements index 1dccfece..cb66b001 100644 --- a/ios/Pepo2/Pepo2.entitlements +++ b/ios/Pepo2/Pepo2.entitlements @@ -11,9 +11,5 @@ com.apple.developer.default-data-protection NSFileProtectionComplete - com.apple.developer.icloud-container-identifiers - - com.apple.developer.ubiquity-kvstore-identifier - $(TeamIdentifierPrefix)$(CFBundleIdentifier) From 8b897ec95bb2f922495680cd115629715f55bd7b Mon Sep 17 00:00:00 2001 From: rachinkapoor Date: Sat, 2 Nov 2019 10:47:50 +0530 Subject: [PATCH 21/27] Update the hashtag display logic --- .../CommonComponents/UserInfo/index.js | 30 ++++++++++++------- src/components/Home/BottomStatus.js | 13 +++++--- src/services/ReduxGetters.js | 12 +------- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/src/components/CommonComponents/UserInfo/index.js b/src/components/CommonComponents/UserInfo/index.js index c8f7000f..f77e135b 100644 --- a/src/components/CommonComponents/UserInfo/index.js +++ b/src/components/CommonComponents/UserInfo/index.js @@ -96,6 +96,10 @@ class UserInfo extends React.PureComponent { } }; + isValidBioTag(userId, tappedText) { + let entity = reduxGetter.getBioIncudes(userId, tappedText); + return !!entity; + } render() { @@ -150,19 +154,25 @@ class UserInfo extends React.PureComponent { let onPressFunc = () => {}; let style = [inlineStyle.bioSection]; - if (item.startsWith('#') && reduxGetter.isValidBioTag(this.props.userId, item)) { + if (item.startsWith('#') && this.isValidBioTag(this.props.userId, item)) { onPressFunc = this.onTagPressed; - style.push({fontStyle:'italic',fontFamily:'AvenirNext-DemiBold'}); + style.push({fontFamily:'AvenirNext-DemiBold'}); + let tagText = item.replace("#", ""); + return( + {onPressFunc(item)} } + > + #{tagText + " "} + + ); + + } - return( - {onPressFunc(item)} } - > - {item + " "} - - ); + // Default return + return({item+ " "}); + })} } diff --git a/src/components/Home/BottomStatus.js b/src/components/Home/BottomStatus.js index c70ddb44..2e6248aa 100644 --- a/src/components/Home/BottomStatus.js +++ b/src/components/Home/BottomStatus.js @@ -40,6 +40,11 @@ class BottomStatus extends PureComponent { this.props.onDescriptionClick && this.props.onDescriptionClick(entity, tag); }; + isValidTag(videoId, tappedText) { + let entity = reduxGetter.getTappedIncludesEntity(videoId, tappedText); + return !!entity + } + render() { return ( @@ -57,19 +62,19 @@ class BottomStatus extends PureComponent { numberOfLines={3} > {this.props.description.split(' ').map((item) => { - if (item.startsWith('#') && reduxGetter.isValidTag(this.videoDescriptionId, item)) { + if (item.startsWith('#') && this.isValidTag(this.videoDescriptionId, item)) { + let tagText = item.replace("#", ""); return( {this.onTagPressed(item)}} - >{item+" "} + >#{tagText+" "} ); }else { return({item+ " "}); diff --git a/src/services/ReduxGetters.js b/src/services/ReduxGetters.js index 1b3269fa..26581708 100644 --- a/src/services/ReduxGetters.js +++ b/src/services/ReduxGetters.js @@ -88,14 +88,9 @@ class ReduxGetters { return deepGet(state, `user_profile_entities.id_${userId}.bio.includes.${lowercasedTappedText}`); } - isValidBioTag(userId, tappedText) { - let entity = this.getBioIncudes(userId, tappedText); - return !!entity - } - canBlockUser(id ,state){ state = state || Store.getState(); - return !!deepGet(state, `user_allowed_action_entities.id_${id}.can_block` , true) ; + return !!deepGet(state, `user_allowed_action_entities.id_${id}.can_block` , true) ; } getEmail(id, state) { @@ -134,11 +129,6 @@ class ReduxGetters { return deepGet(state, `video_description_entities.id_${videoId}.includes.${lowercasedText}`); } - isValidTag(videoId, tappedText) { - let entity = this.getTappedIncludesEntity(videoId, tappedText); - return !!entity - } - getVideoLink(id, state) { state = state || Store.getState(); return unescape(deepGet(state, `link_entities.id_${id}.url`)); From f91731058f42885f26dc648b2d481274ba07a9fa Mon Sep 17 00:00:00 2001 From: rachinkapoor Date: Sat, 2 Nov 2019 10:48:01 +0530 Subject: [PATCH 22/27] Update Cartfile --- ios/Cartfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Cartfile b/ios/Cartfile index 29b8cd0c..640a1f54 100644 --- a/ios/Cartfile +++ b/ios/Cartfile @@ -1 +1 @@ -github "ostdotcom/ost-wallet-sdk-ios" == 2.3.3-alpha.1 +github "ostdotcom/ost-wallet-sdk-ios" "team/ui/ios13" From b033aa1cb70820134efff60110a9fb2ded3af6ad Mon Sep 17 00:00:00 2001 From: Aniket Date: Mon, 4 Nov 2019 12:57:46 +0530 Subject: [PATCH 23/27] version revert --- ios/Cartfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Cartfile b/ios/Cartfile index 640a1f54..3a99b7ba 100644 --- a/ios/Cartfile +++ b/ios/Cartfile @@ -1 +1 @@ -github "ostdotcom/ost-wallet-sdk-ios" "team/ui/ios13" +github "ostdotcom/ost-wallet-sdk-ios" == 2.3.2 From e9e0171885b13a13ff6a3f43d468f4282b1ff19c Mon Sep 17 00:00:00 2001 From: Aniket Date: Tue, 5 Nov 2019 13:46:42 +0530 Subject: [PATCH 24/27] carthage updated --- ios/Cartfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Cartfile b/ios/Cartfile index 3a99b7ba..e7870de5 100644 --- a/ios/Cartfile +++ b/ios/Cartfile @@ -1 +1 @@ -github "ostdotcom/ost-wallet-sdk-ios" == 2.3.2 +github "ostdotcom/ost-wallet-sdk-ios" == 2.3.3 From b767b105160ed8bc58c6aedacebe6f620fb1da5b Mon Sep 17 00:00:00 2001 From: Mayur Patil Date: Tue, 5 Nov 2019 16:02:50 +0530 Subject: [PATCH 25/27] no header fix --- src/components/VideoTags/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/VideoTags/index.js b/src/components/VideoTags/index.js index 709d7a68..83f7c56d 100644 --- a/src/components/VideoTags/index.js +++ b/src/components/VideoTags/index.js @@ -10,6 +10,7 @@ import PepoApi from "../../services/PepoApi"; import deepGet from 'lodash/get'; import EmptySearchResult from '../../components/CommonComponents/EmptySearchResult'; import BackArrow from '../CommonComponents/BackArrow'; +import DataContract from "../../constants/DataContract"; const getPageTitle = (tagId, hashTag) => { let pageTitle = ""; @@ -26,7 +27,8 @@ const getPageTitle = (tagId, hashTag) => { class VideoTags extends PureComponent { static navigationOptions = (options) => { const tagId = options.navigation.getParam('tagId'); - const pageTitle = getPageTitle(tagId); + const hashTag = options.navigation.getParam('hashTag') || null; + const pageTitle = getPageTitle(tagId, hashTag); return { headerBackTitle: null, @@ -68,10 +70,10 @@ class VideoTags extends PureComponent { new PepoApi(`/tags/${tagId}`) .get() .then((res)=>{ - let hashTag = deepGet(res, 'data.tag'); - const pageTitle = getPageTitle(tagId, hashTag); + let result_type = deepGet(res, DataContract.common.resultType), + hashTag = deepGet(res, `data.${result_type}` ); if (res && res.success){ - this.props.navigation.setParams({ headerTitle: pageTitle }); + this.props.navigation.setParams({ hashTag: hashTag }); } }) } From eb70b16fd65652598cd9f04b72ddc59819df757b Mon Sep 17 00:00:00 2001 From: Aniket Date: Tue, 5 Nov 2019 16:09:08 +0530 Subject: [PATCH 26/27] cart version fix. --- ios/Cartfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Cartfile b/ios/Cartfile index e7870de5..3a99b7ba 100644 --- a/ios/Cartfile +++ b/ios/Cartfile @@ -1 +1 @@ -github "ostdotcom/ost-wallet-sdk-ios" == 2.3.3 +github "ostdotcom/ost-wallet-sdk-ios" == 2.3.2 From 925ab15c0ebc2ccf9b1d2be8b1d56af9f6d72477 Mon Sep 17 00:00:00 2001 From: Aniket Date: Tue, 5 Nov 2019 17:03:43 +0530 Subject: [PATCH 27/27] fix --- ios/Cartfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Cartfile b/ios/Cartfile index 3a99b7ba..e7870de5 100644 --- a/ios/Cartfile +++ b/ios/Cartfile @@ -1 +1 @@ -github "ostdotcom/ost-wallet-sdk-ios" == 2.3.2 +github "ostdotcom/ost-wallet-sdk-ios" == 2.3.3