import Config from 'react-native-config';

export const config = {
	env: Config.ENV,
	debug: Config.debug,
	appID: Config.APP_ID,
	appGroupID: Config.APP_GROUP_ID,
	bucketPrefix: Config.BUCKET_PREFIX,
	fileSizeLimit: 20000000,
	widthLimit: 8000,
	heightLimit: 8000,
	maxWidthOptimize: 1820,
	maxHeightOptimize: 1820,
	urls: {
		mobileApi: 'https://87kprj6t9i.execute-api.ap-southeast-1.amazonaws.com/staging',
	},
	defaultMaxImage: 100,
	defaultMaxVideo: 10,
	network: {
		fetchTimeout: __DEV__ ? 10000 : 30000,
		pingTimeout: __DEV__ ? 3000 : 20000,
		pingServerUrl: 'https://www.google.com/',
		shouldPing: true,
		pingInterval: __DEV__ ? 5000 : 30000,
		pingOnlyIfOffline: false,
		pingInBackground: false,
		httpMethod: 'HEAD',
	},
	IS_DEBUG: true,
};
