suppression des logs dan sla webview

This commit is contained in:
Novic-Djef 2023-10-05 13:46:02 +01:00
parent 8f36797b00
commit be40fb489b
4 changed files with 104 additions and 106 deletions

File diff suppressed because one or more lines are too long

View File

@ -108,10 +108,8 @@ const WebviewScreen = ({
) )
const checkPaymentStatus = (message) => { const checkPaymentStatus = (message) => {
console.debug('la redirection es bonne :', message)
message = JSON.parse(message); message = JSON.parse(message);
console.warn('la redirection es bonne :', message)
let status = message['status']; let status = message['status'];
let transaction_id = message['transaction_id']; let transaction_id = message['transaction_id'];

View File

@ -516,7 +516,7 @@ class Home extends BaseScreen {
if (c.length > 0 && pays) { if (c.length > 0 && pays) {
this.setState({filternetwork: c[0], myNetwork: c[0], filternetworkTemp: c[0]}) this.setState({filternetwork: c[0], myNetwork: c[0], filternetworkTemp: c[0]})
// this.retrieveAllPoint(pays) this.retrieveAllPoint(pays)
} else { } else {
if (this.state.user) { if (this.state.user) {
@ -1739,7 +1739,7 @@ class Home extends BaseScreen {
translucent={true} translucent={true}
/> />
{/* Start here to comment */} {/* Start here to comment */}
{/* { {
(this.state.loadingDialog || this.props.loading) ? (this.state.loadingDialog || this.props.loading) ?
<View <View
style={{ style={{
@ -1760,7 +1760,7 @@ class Home extends BaseScreen {
fontWeight: 'bold' fontWeight: 'bold'
}}>{I18n.t("LOADING_DOTS")}</Text> }}>{I18n.t("LOADING_DOTS")}</Text>
</View> : null </View> : null
} */} }
<IMap <IMap
ref={(re) => { ref={(re) => {
this.map = re this.map = re
@ -2468,98 +2468,98 @@ class Home extends BaseScreen {
</TouchableOpacity>) </TouchableOpacity>)
} }
// retrieveAllPoint(dial_code) { retrieveAllPoint(dial_code) {
// /* let markers= this.markerManager.getLocalMarkers() /* let markers= this.markerManager.getLocalMarkers()
// console.log( markers.length) console.log( markers.length)
// if(markers.length>0){ if(markers.length>0){
// console.debug("load from local") console.debug("load from local")
// for (let p of markers) { for (let p of markers) {
// console.log(` ${p.lastname}`); console.log(` ${p.lastname}`);
// } }
// this.markerManager.close(); this.markerManager.close();
// this.setState({allpoint: [], loadingDialog: false}) this.setState({allpoint: [], loadingDialog: false})
// }else*/ }else*/
// getMakersFrom(dial_code).then((data) => { getMakersFrom(dial_code).then((data) => {
// new Promise((resolve, reject) => { new Promise((resolve, reject) => {
// try { try {
// const ds = data.datas const ds = data.datas
// this.setState({allpoint: ds, loadingDialog: false}) this.setState({allpoint: ds, loadingDialog: false})
// resolve(ds) resolve(ds)
// } catch (e) { } catch (e) {
// //Crashlytics.log(e.message) //Crashlytics.log(e.message)
// console.warn(e.message) console.warn(e.message)
// reject(new Error(e.message)) reject(new Error(e.message))
// } }
// }).then((ds) => { }).then((ds) => {
// // this.markerManager.insertMarkers(ds).then((res)=>{console.warn(res)}) // this.markerManager.insertMarkers(ds).then((res)=>{console.warn(res)})
// this.onLoadMore() this.onLoadMore()
// }).catch((e) => { }).catch((e) => {
// this.setState({loadingDialog: false}) this.setState({loadingDialog: false})
// //Crashlytics.log(e.message) //Crashlytics.log(e.message)
// console.log("on get marker") console.log("on get marker")
// Alert.alert( Alert.alert(
// I18n.t("UNABLE_TO_CONNECT_TITLE"), I18n.t("UNABLE_TO_CONNECT_TITLE"),
// I18n.t('TEXT_NETWORK_UNABLE') I18n.t('TEXT_NETWORK_UNABLE')
// , ,
// [ [
// { {
// text: I18n.t("NO"), onPress: () => { text: I18n.t("NO"), onPress: () => {
// BackHandler.exitApp() BackHandler.exitApp()
// } }
// }, },
// { {
// text: I18n.t("YES"), onPress: () => { text: I18n.t("YES"), onPress: () => {
// this.setState({loadingDialog: true}) this.setState({loadingDialog: true})
// if (dial_code !== null && dial_code !== undefined) if (dial_code !== null && dial_code !== undefined)
// this.retrieveAllPoint(dial_code) this.retrieveAllPoint(dial_code)
// else else
// this.requestCameraPermission() this.requestCameraPermission()
// } }
// } }
// ], ],
// {cancelable: false} {cancelable: false}
// ) )
// }) })
// }).catch((e) => { }).catch((e) => {
// console.log("on retreive>getmarkers", e.message) console.log("on retreive>getmarkers", e.message)
// this.setState({loadingDialog: false}) this.setState({loadingDialog: false})
// if (this.state.allpoint.length <= 0) { if (this.state.allpoint.length <= 0) {
// console.log("no point") console.log("no point")
// Alert.alert( Alert.alert(
// I18n.t("UNABLE_TO_CONNECT_TITLE"), I18n.t("UNABLE_TO_CONNECT_TITLE"),
// I18n.t('TEXT_NETWORK_UNABLE') I18n.t('TEXT_NETWORK_UNABLE')
// , ,
// [ [
// { {
// text: I18n.t("NO"), onPress: () => { text: I18n.t("NO"), onPress: () => {
// BackHandler.exitApp() BackHandler.exitApp()
// } }
// }, },
// { {
// text: I18n.t("YES"), onPress: () => { text: I18n.t("YES"), onPress: () => {
// if (this.state.allpoint.length <= 0) { if (this.state.allpoint.length <= 0) {
// this.setState({loadingDialog: true}) this.setState({loadingDialog: true})
// if (dial_code !== null && dial_code !== undefined) if (dial_code !== null && dial_code !== undefined)
// this.retrieveAllPoint(dial_code) this.retrieveAllPoint(dial_code)
// else else
// this.requestCameraPermission() this.requestCameraPermission()
// } }
// } }
// } }
// ], ],
// {cancelable: false} {cancelable: false}
// ) )
// } }
// }) })
// } }
showLoadMoreView() { showLoadMoreView() {
if (this.state.isNeedLoadMore) if (this.state.isNeedLoadMore)

View File

@ -58,19 +58,19 @@ class PaymentCard extends Component {
this.deltaY = new Animated.Value(0); this.deltaY = new Animated.Value(0);
this.bgBannerY = new Animated.Value(0); this.bgBannerY = new Animated.Value(0);
IlinkEmitter.on("refreshWallet", IlinkEmitter.on("refreshWallet",
// this.refresh this.refresh
); );
} }
// refresh = () => { refresh = () => {
// readUser().then((user) => { readUser().then((user) => {
// if (user) { if (user) {
// if (user !== undefined) { if (user !== undefined) {
// this.props.getWalletDetailActivated(user.id, null); this.props.getWalletDetailActivated(user.id, null);
// } }
// } }
// }); });
// } }
render() { render() {
return ( return (