Skip to content

Commit

Permalink
[email protected] && changed certificate && fix payment
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaaxe committed Oct 8, 2020
1 parent 0300624 commit 0001ad4
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 28 deletions.
Binary file removed _docs/DC.p12
Binary file not shown.
Binary file removed _docs/DC_Development.mobileprovision
Binary file not shown.
Binary file removed _docs/DC_OneSignal_Distribution.mobileprovision
Binary file not shown.
Binary file removed _docs/DC_Provisioning.mobileprovision
Binary file not shown.
Binary file removed _docs/DC_aps.cer
Binary file not shown.
Binary file removed _docs/DC_ios_distribution.cer
Binary file not shown.
Binary file removed _docs/DPS.p12
Binary file not shown.
6 changes: 2 additions & 4 deletions _docs/access.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ Keystore password: qaLXN95%n6
Key password: eMnp*hJF41

------
P12 password: B1pdYILkyB9Y

------
DPS P12 password: &MZ5YdtOSy2w
P12 PROD password: nZVEH66FKlbm
P12 DEV password: 79y56XZ5Bp1d
Binary file added _docs/aps.cer
Binary file not shown.
Binary file added _docs/aps_development.cer
Binary file not shown.
Binary file added _docs/onesignal.p12
Binary file not shown.
Binary file added _docs/onesignal_dev.p12
Binary file not shown.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @format */

import 'react-native-gesture-handler';
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
Expand Down
16 changes: 8 additions & 8 deletions ios/diagnosticcenter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -489,15 +489,15 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = diagnosticcenter/diagnosticcenter.entitlements;
CURRENT_PROJECT_VERSION = 1.0.22;
CURRENT_PROJECT_VERSION = 1.0.23;
DEVELOPMENT_TEAM = AV2A6Q25TV;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = diagnosticcenter/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.22;
MARKETING_VERSION = 1.0.23;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -520,14 +520,14 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = diagnosticcenter/diagnosticcenter.entitlements;
CURRENT_PROJECT_VERSION = 1.0.22;
CURRENT_PROJECT_VERSION = 1.0.23;
DEVELOPMENT_TEAM = AV2A6Q25TV;
INFOPLIST_FILE = diagnosticcenter/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.22;
MARKETING_VERSION = 1.0.23;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -673,7 +673,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0.22;
CURRENT_PROJECT_VERSION = 1.0.23;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = AV2A6Q25TV;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -684,7 +684,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0.22;
MARKETING_VERSION = 1.0.23;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.izzisoftware.diagnosticcenter.OneSignalNotificationServiceExtension;
Expand All @@ -708,7 +708,7 @@
CODE_SIGN_ENTITLEMENTS = OneSignalNotificationServiceExtension/OneSignalNotificationServiceExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.0.22;
CURRENT_PROJECT_VERSION = 1.0.23;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = AV2A6Q25TV;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -719,7 +719,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0.22;
MARKETING_VERSION = 1.0.23;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.izzisoftware.diagnosticcenter.OneSignalNotificationServiceExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
16 changes: 8 additions & 8 deletions src/containers/authorization/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class AuthorizationScreen extends Component {
message: '',
smsCode: '',
loading: false,
showPopup: false,
// showPopup: false,
showSms: false,
user: {},
timer: 120
timer: 60
};
}

Expand Down Expand Up @@ -107,9 +107,9 @@ class AuthorizationScreen extends Component {
}
};

clickOnPopup = () => {
this.setState({ showPopup: false });
};
// clickOnPopup = () => {
// this.setState({ showPopup: false });
// };

checkValid = (number, personalId) => {
let { t } = this.props;
Expand Down Expand Up @@ -150,7 +150,7 @@ class AuthorizationScreen extends Component {
})
.catch((e) => {
this.setState({
showPopup: e.code === 403 ? true : false,
// showPopup: e.code === 403 ? true : false,
message: e.error ? e.error : t('common:errors.server_not_available'),
loading: false
});
Expand Down Expand Up @@ -290,13 +290,13 @@ class AuthorizationScreen extends Component {
{!token && !showSms && this.renderAuthView()}
{!token && showSms && this.renderSmsCode()}
</KeyboardAwareScrollView>
<Popup
{/* <Popup
show={showPopup}
firstText={t('authorization:phone_not_register')}
email={'info@diagnostika.kz'}
laberButton={t('common:actions.ok')}
actionButton={this.clickOnPopup}
/>
/> */}
</Container>
);
}
Expand Down
17 changes: 12 additions & 5 deletions src/containers/payment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { bindActionCreators, compose } from 'redux';
import { connect } from 'react-redux';
import { withNavigationFocus } from 'react-navigation';

import { getSavedCards } from '../../actions/content';
import { getSavedCards, getListTalonInfo } from '../../actions/content';

import Header from '../../components/common/Header';
import { ACCENT_BLUE } from '../../styles/constants';
Expand All @@ -29,7 +29,7 @@ class Payment extends Component {
}

onNavigationStateChange = ({ url }) => {
const { navigation, getSavedCards } = this.props;
const { navigation, getSavedCards, getListTalonInfo, infoListTalonInfo } = this.props;

if (url.includes('process')) {
this.senderResp = true;
Expand Down Expand Up @@ -60,8 +60,14 @@ class Payment extends Component {
}, 4000);
}

if (url.includes('api/epay_success')) {
navigation.goBack();
if (url.includes('epay_success') || url.includes('epay_failure')) {
if (this.senderResp && infoListTalonInfo?.rnumb_id) {
setTimeout(() => {
getListTalonInfo(infoListTalonInfo?.rnumb_id);
navigation.navigate('recordingItem');
}, 4000);
this.senderResp = false;
}
}
};

Expand Down Expand Up @@ -99,9 +105,10 @@ const styles = StyleSheet.create({
});

const mapStateToProps = (state) => ({
infoListTalonInfo: state.content.infoListTalonInfo,
payLink: state.content.payLink
});

const mapDispatchToProps = (dispatch) => bindActionCreators({ getSavedCards }, dispatch);
const mapDispatchToProps = (dispatch) => bindActionCreators({ getSavedCards, getListTalonInfo }, dispatch);

export default withNamespaces(['payment'])(compose(withNavigationFocus, connect(mapStateToProps, mapDispatchToProps))(Payment));
8 changes: 6 additions & 2 deletions src/containers/recording/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ class ReceptionInfoItemScreen extends Component {
componentDidUpdate(prevProps) {
const { payLink, isFocused, navigation } = this.props;

if (prevProps.orderCreated !== this.props.orderCreated && this.props.orderCreated)
if (prevProps.orderCreated !== this.props.orderCreated && this.props.orderCreated) {
this.setState({ modalVisible: true });
if (prevProps.orderDeleted !== this.props.orderDeleted && this.props.orderDeleted)
}

if (prevProps.orderDeleted !== this.props.orderDeleted && this.props.orderDeleted) {
this.props.navigation.navigate('recordingList');
}

if (prevProps.payLink !== payLink && payLink && isFocused) {
navigation.navigate('payment');
}
Expand Down

0 comments on commit 0001ad4

Please sign in to comment.