Skip to content

Commit

Permalink
chore: lib updates & general maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
KestasVenslauskas committed Jun 12, 2024
1 parent 6c09386 commit 7e306c3
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 421 deletions.
2 changes: 0 additions & 2 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Navigation from './app/navigation';

import SettingsProvider from './app/settings/SettingsProvider';
import AppBackground from './app/components/appBackground/AppBackground';
import useGemiusSetup from './app/util/useGemiusSetup';
import {Provider} from 'react-redux';
import {PersistGate} from 'redux-persist/integration/react';
import {initialWindowMetrics, SafeAreaProvider} from 'react-native-safe-area-context';
Expand All @@ -30,7 +29,6 @@ const App: React.FC = () => {
useNotificationsPermission();
useAppTrackingPermission();
useGoogleAnalyticsSetup();
useGemiusSetup();

return (
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
Expand Down
5 changes: 2 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ buildscript {
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")

classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'

classpath 'com.google.gms:google-services:4.4.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.0'
}
}

Expand Down
17 changes: 6 additions & 11 deletions app/util/useGemiusSetup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {useEffect} from 'react';
import {Platform} from 'react-native';
import Gemius from 'react-native-gemius-plugin';
import {
Expand All @@ -8,15 +7,11 @@ import {
GEMIUS_VIEW_SCRIPT_ID,
} from '../constants';

const useGemiusSetup = () => {
useEffect(() => {
const appVersion = require('../../package.json').version;
console.log('App version: ', appVersion);
Gemius.setAppInfo(GEMIUS_APP_NAME, appVersion, GEMIUS_HIT_COLLECTOR_HOST, GEMIUS_VIEW_SCRIPT_ID);
export const setupGemius = () => {
const appVersion = require('../../package.json').version;
console.log('App version: ', appVersion);
Gemius.setAppInfo(GEMIUS_APP_NAME, appVersion, GEMIUS_HIT_COLLECTOR_HOST, GEMIUS_VIEW_SCRIPT_ID);

const playerId = 'lrt-player-' + Platform.OS;
Gemius.setPlayerInfo(playerId, GEMIUS_HIT_COLLECTOR_HOST, GEMIUS_PLAYER_SCRIPT_ID);
}, []);
const playerId = 'lrt-player-' + Platform.OS;
Gemius.setPlayerInfo(playerId, GEMIUS_HIT_COLLECTOR_HOST, GEMIUS_PLAYER_SCRIPT_ID);
};

export default useGemiusSetup;
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Setup RN Gesture handler
import 'react-native-gesture-handler';

import {setupGemius} from './app/util/useGemiusSetup';
setupGemius();

// Setup CarPlay
if (Platform.OS === 'ios') {
require('./app/car/CarPlay');
Expand Down
6 changes: 3 additions & 3 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ target 'lrtApp' do

pod 'react-native-google-cast', :git => 'https://github.com/Danesz/react-native-google-cast.git', branch: 'feature/guestmode_apple_silicon'
#THIS IS A WORKAROUND FOR ARCHIVE BUILD BECAUSE OF FCMImageNotification
pod 'GoogleUtilities', '~> 7.12.0'
pod 'GoogleUtilities', '~> 7.13.3'

use_react_native!(
:path => config[:reactNativePath],
Expand Down Expand Up @@ -93,8 +93,8 @@ end

target 'FCMImageNotification' do
use_frameworks! :linkage => :static
pod 'Firebase/Messaging', '~> 10.24.0'
#This was added manually
#Change version if needed, just copy from Podfile.lock
pod 'Firebase/Messaging', '~> 10.20.0'
pod 'GoogleUtilities', '~> 7.12.0'
pod 'GoogleUtilities', '~> 7.13.3'
end
Loading

0 comments on commit 7e306c3

Please sign in to comment.