wudebin 1 месяц назад
Родитель
Сommit
fad8e8d50c

+ 2 - 2
Strides-SPAPP/android/app/version.properties

@@ -1,2 +1,2 @@
-#Mon Apr 27 11:29:36 CST 2026
-VERSION_CODE=933
+#Mon Apr 27 12:20:16 CST 2026
+VERSION_CODE=945

+ 0 - 2
Strides-SPAPP/app/pages/Launch.js

@@ -7,7 +7,6 @@ import { Animated, Easing, Image, StyleSheet, View } from 'react-native'
 import {InitSomething} from '../components/Dialog';
 import MyStatusBar from '../components/MyStatusBar';
 import { PageList } from './Router';
-import analytics from '@react-native-firebase/analytics';
 
 class Launch extends React.Component {
   
@@ -31,7 +30,6 @@ class Launch extends React.Component {
   }
 
   init() {
-    analytics().logAppOpen();
     Animated.timing(this.state.opacity, {
       toValue: 1,
       duration: 1500,

+ 0 - 4
Strides-SPAPP/app/pages/home/Index.js

@@ -17,7 +17,6 @@ import DrawerView from './Drawer.js';
 import DrawerViewV2 from './DrawerV2.js';
 import DrawerViewV3 from './DrawerV3.js';
 import DrawerViewV4 from './DrawerV4.js';
-import analytics from '@react-native-firebase/analytics';
 import crashlytics from '@react-native-firebase/crashlytics';
 
 const Drawer = createDrawerNavigator();
@@ -48,9 +47,6 @@ export default class Home extends Component {
         if (!global.hasAnalytics) {
           global.hasAnalytics = true;
           crashlytics().setUserId("" + info.userPk)
-          analytics().logLogin({
-            method: "userId: " + info.userPk
-          })
         }
       }, true);
       if (app.notifications.enable && this.state.isLogin) {

+ 1 - 1
Strides-SPAPP/app/pages/member/ApplyMember.js

@@ -94,7 +94,7 @@ export default class ApplyMember extends Component {
       if (image.path) {
         apiUpload.uploadImage(image.path, image.mime, 'MEMBERSHIP').then(res => {
           if (res.success && res.data.picturePath) {
-            utils.logEventTracking("file_upload:", res.data.picturePath)
+            utils.logEventTracking("file_upload", res.data.picturePath)
             this.changeForm("cardFront", res.data.picturePath)
             toastShort($t('common.uploadSuccess'));
           } else {

+ 0 - 6
Strides-SPAPP/app/utils/utils.js

@@ -6,7 +6,6 @@ import { getStorageSync, setStorage } from "./storage";
 import { PERMISSIONS } from "react-native-permissions";
 import app from '../../app.json';
 import { PageList } from "../pages/Router";
-import analytics from '@react-native-firebase/analytics';
 import crashlytics from '@react-native-firebase/crashlytics';
 
 /**
@@ -349,11 +348,6 @@ export default {
   logEventTracking(event, message="") {
     if (app.debug && event && message) {
       console.log("已记录事件跟踪", event, message);
-      if (!app.product) {
-        analytics().logEvent("event_" + event, {
-          message: message
-        });
-      }
       if (message) {
         crashlytics().log(event + ": " + message);
       } else {

+ 0 - 1
Strides-SPAPP/package.json

@@ -27,7 +27,6 @@
     "@react-native-community/datetimepicker": "8.5.1",
     "@react-native-community/geolocation": "3.4.0",
     "@react-native-community/push-notification-ios": "1.11.0",
-    "@react-native-firebase/analytics": "23.8.6",
     "@react-native-firebase/app": "23.8.6",
     "@react-native-firebase/crashlytics": "23.8.6",
     "@react-native-masked-view/masked-view": "0.3.0",