TP-53751 | Sync Issue Fix (#889)
This commit is contained in:
@@ -134,8 +134,8 @@ def reactNativeArchitectures() {
|
||||
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
||||
}
|
||||
|
||||
def VERSION_CODE = 184
|
||||
def VERSION_NAME = "2.12.8"
|
||||
def VERSION_CODE = 185
|
||||
def VERSION_NAME = "2.12.9"
|
||||
|
||||
android {
|
||||
ndkVersion rootProject.ext.ndkVersion
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "AV_APP",
|
||||
"version": "2.12.8",
|
||||
"buildNumber": "184",
|
||||
"version": "2.12.9",
|
||||
"buildNumber": "185",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"android:dev": "yarn move:dev && react-native run-android",
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
import CallLogs from 'react-native-call-log'; // package does not have typescript implementation, used any type here
|
||||
import { DATA_SYNC_ENUM } from './dataSync.service';
|
||||
import { getGzipData, getMaxByPropFromList } from '../components/utlis/commonFunctions';
|
||||
import axiosInstance, { API_STATUS_CODE } from '../components/utlis/apiHelper';
|
||||
import { API_STATUS_CODE } from '../components/utlis/apiHelper';
|
||||
import { logError } from '../components/utlis/errorUtils';
|
||||
import { Permission, PermissionsAndroid } from 'react-native';
|
||||
import { addClickstreamEvent } from './clickstreamEventService';
|
||||
import { CLICKSTREAM_EVENT_NAMES } from '@common/Constants';
|
||||
import axios from 'axios';
|
||||
|
||||
const MAXIMUM_NUMBER_CALL_LOGS = 1000;
|
||||
|
||||
@@ -88,7 +89,7 @@ export const callLogSyncService = async (url: string, syncFrom: string) => {
|
||||
|
||||
const compressedContactDataPayload = await getGzipData(JSON.stringify(callLogsDataPayload));
|
||||
|
||||
axiosInstance
|
||||
axios
|
||||
.put(url, compressedContactDataPayload)
|
||||
.then((res) => {
|
||||
if (res?.status === API_STATUS_CODE.OK) {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Contacts, { Contact, PhoneNumber } from 'react-native-contacts';
|
||||
import axiosInstance, { API_STATUS_CODE } from '../components/utlis/apiHelper';
|
||||
import { API_STATUS_CODE } from '../components/utlis/apiHelper';
|
||||
import { getGzipData } from '../components/utlis/commonFunctions';
|
||||
import { logError } from '../components/utlis/errorUtils';
|
||||
import { DATA_SYNC_ENUM } from './dataSync.service';
|
||||
import { checkReadPermissions } from './callLogSync.service';
|
||||
import { PermissionsAndroid } from 'react-native';
|
||||
import axios from 'axios';
|
||||
|
||||
type IContact = {
|
||||
label: string;
|
||||
@@ -54,7 +55,7 @@ export const contactSyncService = async (url: string) => {
|
||||
|
||||
const compressedContactDataPayload = await getGzipData(JSON.stringify(contactDataPayload));
|
||||
|
||||
axiosInstance
|
||||
axios
|
||||
.put(url, compressedContactDataPayload)
|
||||
.then((res) => {
|
||||
if (res?.status === API_STATUS_CODE.OK) {
|
||||
|
||||
@@ -2,11 +2,12 @@ import { DATA_SYNC_ENUM } from './dataSync.service';
|
||||
// @ts-ignore
|
||||
import SmsAndroid from 'react-native-get-sms-android'; // package does not have typescript implementation
|
||||
import { logError } from '../components/utlis/errorUtils';
|
||||
import axiosInstance, { API_STATUS_CODE } from '../components/utlis/apiHelper';
|
||||
import { API_STATUS_CODE } from '../components/utlis/apiHelper';
|
||||
import { getGzipData, getMaxByPropFromList } from '../components/utlis/commonFunctions';
|
||||
import { GenericType } from '../common/GenericTypes';
|
||||
import { checkReadPermissions } from './callLogSync.service';
|
||||
import { PermissionsAndroid } from 'react-native';
|
||||
import axios from 'axios';
|
||||
|
||||
const MAXIMUM_NUMBER_SMS = 2000;
|
||||
|
||||
@@ -79,7 +80,7 @@ export const smsSyncService = async (url: string, syncFrom: string) => {
|
||||
|
||||
const compressedContactDataPayload = await getGzipData(JSON.stringify(smsDataPayload));
|
||||
|
||||
axiosInstance
|
||||
axios
|
||||
.put(url, compressedContactDataPayload)
|
||||
.then((res) => {
|
||||
if (res?.status === API_STATUS_CODE.OK) {
|
||||
|
||||
Reference in New Issue
Block a user