Skip to content

Commit

Permalink
update some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dheerajgill25 committed Jun 25, 2021
1 parent 8a93883 commit 3aa1ae8
Show file tree
Hide file tree
Showing 65 changed files with 14,714 additions and 13,401 deletions.
4 changes: 4 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
import { Alert } from 'react-native';
import SplashScreen from 'react-native-splash-screen';
import PerfomanceWatcher from 'behaviour/perfomance';
import InactivityHandler from 'behaviour/inactivityHandler';
declare const global: { HermesInternal: null | {} };
const App = () => {
let previousRouteName: string | undefined;
Expand Down Expand Up @@ -77,6 +78,8 @@ const App = () => {
alertView();
});
useEffect(() => {
const activeDate: Date = new Date();
AsyncStorage.setItem("activeTime", JSON.stringify(activeDate));
TokenControllerInstance.setInitialTokens();
Permission.requestMultiple([
PERMISSIONS_TYPE.photo,
Expand Down Expand Up @@ -110,6 +113,7 @@ const App = () => {
<NetworkInfo>
<RootStackScreen />
<AnalyticsWatcher />
<InactivityHandler />
<NotificationWatcher />
<LoadingScreen />
<PerfomanceWatcher />
Expand Down
1 change: 0 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ dependencies {
exclude group:'com.facebook.flipper'
exclude group:'com.squareup.okhttp3', module:'okhttp'
}
implementation project(':react-native-razorpay')
implementation 'com.google.firebase:firebase-crashlytics-ktx'
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
Expand Down
15 changes: 15 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
Expand All @@ -16,6 +17,20 @@
android:allowBackup="false"
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme">

<meta-data android:name="com.dieam.reactnativepushnotification.notification_channel_name.foodonstoves_channel"
android:value="Foodonstoves Channel"/>

<meta-data android:name="com.dieam.reactnativepushnotification.notification_channel_description.foodonstoves_channel"
android:value="Foodonstoves Channel"/>
<!-- Change the value to true to enable pop-up for in foreground (remote-only, for local use ignoreInForeground) -->
<meta-data android:name="com.dieam.reactnativepushnotification.channel_create_default"
android:value="false"/>

<meta-data
android:name="com.dieam.reactnativepushnotification.notification_channel_id"
android:value="@string/default_notification_channel_id" />

<activity
android:name="com.foodonstoves.MainActivity"
android:label="@string/app_name"
Expand Down
Loading

0 comments on commit 3aa1ae8

Please sign in to comment.