mirror of
https://github.com/balzack/databag.git
synced 2025-04-22 09:35:16 +00:00
Merge branch 'nopush' of https://github.com/balzack/databag into nopush
This commit is contained in:
commit
742dc3ecb8
@ -1,5 +1,4 @@
|
||||
apply plugin: "com.android.application"
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: "com.facebook.react"
|
||||
|
||||
import com.android.build.OutputFile
|
||||
|
@ -1,39 +0,0 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "627079362503",
|
||||
"project_id": "databag-b46e0",
|
||||
"storage_bucket": "databag-b46e0.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:627079362503:android:6f3dfcb2c255787b4a8be2",
|
||||
"android_client_info": {
|
||||
"package_name": "com.databag"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "627079362503-8bk8o4hcv5rgdgrhik6nu9cjp3poisv7.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAb92cvtSnaoQzhbDizg0dFskOtZFp_58M"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "627079362503-8bk8o4hcv5rgdgrhik6nu9cjp3poisv7.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
@ -16,7 +16,6 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.google.gms:google-services:4.3.15'
|
||||
classpath("com.android.tools.build:gradle:7.3.1")
|
||||
classpath("com.facebook.react:react-native-gradle-plugin")
|
||||
}
|
||||
|
@ -7,10 +7,5 @@ import 'react-native-gesture-handler';
|
||||
import {AppRegistry} from 'react-native';
|
||||
import App from './App';
|
||||
import {name as appName} from './app.json';
|
||||
import messaging from '@react-native-firebase/messaging';
|
||||
|
||||
messaging().registerDeviceForRemoteMessages().then(() => {});
|
||||
|
||||
messaging().setBackgroundMessageHandler(async remoteMessage => {});
|
||||
|
||||
AppRegistry.registerComponent(appName, () => App);
|
||||
|
@ -12,8 +12,6 @@
|
||||
"dependencies": {
|
||||
"@braintree/sanitize-url": "^6.0.2",
|
||||
"@react-native-clipboard/clipboard": "^1.11.1",
|
||||
"@react-native-firebase/app": "^17.2.0",
|
||||
"@react-native-firebase/messaging": "^17.2.0",
|
||||
"@react-navigation/bottom-tabs": "^6.5.5",
|
||||
"@react-navigation/drawer": "^6.6.0",
|
||||
"@react-navigation/native": "^6.1.4",
|
||||
|
@ -42,19 +42,6 @@ export function useAppContext() {
|
||||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
try {
|
||||
try {
|
||||
deviceToken.current = await messaging().getToken();
|
||||
}
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
//Alert.alert('FCM', err.toString());
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
deviceToken.current = null;
|
||||
}
|
||||
access.current = await store.actions.init();
|
||||
if (access.current) {
|
||||
await setSession();
|
||||
@ -88,13 +75,6 @@ export function useAppContext() {
|
||||
}
|
||||
|
||||
const notifications = [
|
||||
{ event: 'contact.addCard', messageTitle: 'New Contact Request' },
|
||||
{ event: 'contact.updateCard', messageTitle: 'Contact Update' },
|
||||
{ event: 'content.addChannel.superbasic', messageTitle: 'New Topic' },
|
||||
{ event: 'content.addChannel.sealed', messageTitle: 'New Topic' },
|
||||
{ event: 'content.addChannelTopic.superbasic', messageTitle: 'New Topic Message' },
|
||||
{ event: 'content.addChannelTopic.sealed', messageTitle: 'New Topic Message' },
|
||||
{ event: 'ring', messageTitle: 'Incoming Call' },
|
||||
];
|
||||
|
||||
const actions = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user