remove unused files

This commit is contained in:
linsui 2024-02-28 21:02:49 +08:00 committed by linsui
parent b2a5f0817a
commit b275255407
4 changed files with 0 additions and 345 deletions

View file

@ -1,147 +0,0 @@
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 2ed9d8163..0d690be0c 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -247,14 +247,14 @@ dependencies {
implementation project(':watermelondb')
implementation project(":reactnativekeyboardinput")
implementation project(':@react-native-community_viewpager')
- playImplementation project(':reactnativenotifications')
- playImplementation project(':@react-native-firebase_app')
- playImplementation project(':@react-native-firebase_analytics')
- playImplementation project(':@react-native-firebase_crashlytics')
+ // playImplementation project(':reactnativenotifications')
+ // playImplementation project(':@react-native-firebase_app')
+ // playImplementation project(':@react-native-firebase_analytics')
+ // playImplementation project(':@react-native-firebase_crashlytics')
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
- playImplementation "com.google.firebase:firebase-messaging:18.0.0"
+ // playImplementation "com.google.firebase:firebase-messaging:18.0.0"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
diff --git a/android/build.gradle b/android/build.gradle
index ae769e0c7..c1dbe393c 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -24,9 +24,9 @@ buildscript {
mavenLocal()
google()
jcenter()
- maven {
- url 'https://maven.fabric.io/public'
- }
+ // maven {
+ // url 'https://maven.fabric.io/public'
+ // }
}
dependencies {
diff --git a/android/settings.gradle b/android/settings.gradle
index ed2f78c10..3ddc4b5ed 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -4,17 +4,17 @@ includeUnimodulesProjects()
rootProject.name = 'RocketChatRN'
include ':watermelondb'
project(':watermelondb').projectDir = new File(rootProject.projectDir, '../node_modules/@nozbe/watermelondb/native/android')
-include ':reactnativenotifications'
-project(':reactnativenotifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/android/app')
+// include ':reactnativenotifications'
+// project(':reactnativenotifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/android/app')
include ':reactnativekeyboardinput'
project(':reactnativekeyboardinput').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-keyboard-input/lib/android')
include ':@react-native-community_viewpager'
project(':@react-native-community_viewpager').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/viewpager/android')
-include ':@react-native-firebase_app'
-project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/app/android')
-include ':@react-native-firebase_analytics'
-project(':@react-native-firebase_analytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/analytics/android')
-include ':@react-native-firebase_crashlytics'
-project(':@react-native-firebase_crashlytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/crashlytics/android')
+// include ':@react-native-firebase_app'
+// project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/app/android')
+// include ':@react-native-firebase_analytics'
+// project(':@react-native-firebase_analytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/analytics/android')
+// include ':@react-native-firebase_crashlytics'
+// project(':@react-native-firebase_crashlytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/crashlytics/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
diff --git a/app/notifications/push/push.android.js b/app/notifications/push/push.android.js
index d83184594..5ba6a2ef7 100644
--- a/app/notifications/push/push.android.js
+++ b/app/notifications/push/push.android.js
@@ -1,4 +1,4 @@
-import { NotificationsAndroid, PendingNotifications } from 'react-native-notifications';
+const { NotificationsAndroid, PendingNotifications } = {};
class PushNotification {
constructor() {
@@ -6,11 +6,11 @@ class PushNotification {
this.onNotification = null;
this.deviceToken = null;
- NotificationsAndroid.setRegistrationTokenUpdateListener((deviceToken) => {
+ NotificationsAndroid?.setRegistrationTokenUpdateListener((deviceToken) => {
this.deviceToken = deviceToken;
});
- NotificationsAndroid.setNotificationOpenedListener((notification) => {
+ NotificationsAndroid?.setNotificationOpenedListener((notification) => {
this.onNotification(notification);
});
}
@@ -24,8 +24,8 @@ class PushNotification {
configure(params) {
this.onRegister = params.onRegister;
this.onNotification = params.onNotification;
- NotificationsAndroid.refreshToken();
- return PendingNotifications.getInitialNotification();
+ NotificationsAndroid?.refreshToken();
+ return PendingNotifications?.getInitialNotification();
}
}
diff --git a/app/utils/log/index.js b/app/utils/log/index.js
index da1be54a9..38be41872 100644
--- a/app/utils/log/index.js
+++ b/app/utils/log/index.js
@@ -1,17 +1,9 @@
-import firebaseAnalytics from '@react-native-firebase/analytics';
import { isFDroidBuild } from '../../constants/environment';
-import config from '../../../config';
import events from './events';
-const analytics = firebaseAnalytics || '';
-let bugsnag = '';
-let crashlytics;
-
-if (!isFDroidBuild) {
- const { Client } = require('bugsnag-react-native');
- crashlytics = require('@react-native-firebase/crashlytics').default;
- bugsnag = new Client(config.BUGSNAG_API_KEY);
-}
+const analytics = () => {};
+const crashlytics = () => {};
+const bugsnag = {};
export { analytics };
export const loggerConfig = bugsnag.config;
diff --git a/react-native.config.js b/react-native.config.js
index cbd0de1b6..56cbf0ff9 100644
--- a/react-native.config.js
+++ b/react-native.config.js
@@ -30,6 +30,11 @@ module.exports = {
platforms: {
android: null
}
+ },
+ 'bugsnag-react-native': {
+ platforms: {
+ android: null
+ }
}
}
};

View file

@ -1,147 +0,0 @@
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 6c68c6437..02b26b63c 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -247,14 +247,14 @@ dependencies {
implementation project(':watermelondb')
implementation project(":reactnativekeyboardinput")
implementation project(':@react-native-community_viewpager')
- playImplementation project(':reactnativenotifications')
- playImplementation project(':@react-native-firebase_app')
- playImplementation project(':@react-native-firebase_analytics')
- playImplementation project(':@react-native-firebase_crashlytics')
+ // playImplementation project(':reactnativenotifications')
+ // playImplementation project(':@react-native-firebase_app')
+ // playImplementation project(':@react-native-firebase_analytics')
+ // playImplementation project(':@react-native-firebase_crashlytics')
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
- playImplementation "com.google.firebase:firebase-messaging:18.0.0"
+ // playImplementation "com.google.firebase:firebase-messaging:18.0.0"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
diff --git a/android/build.gradle b/android/build.gradle
index 27e7f0867..91b7c0a97 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -13,9 +13,9 @@ buildscript {
mavenLocal()
google()
jcenter()
- maven {
- url 'https://maven.fabric.io/public'
- }
+ // maven {
+ // url 'https://maven.fabric.io/public'
+ // }
}
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().toLowerCase()
diff --git a/android/settings.gradle b/android/settings.gradle
index ed2f78c10..3ddc4b5ed 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -4,17 +4,17 @@ includeUnimodulesProjects()
rootProject.name = 'RocketChatRN'
include ':watermelondb'
project(':watermelondb').projectDir = new File(rootProject.projectDir, '../node_modules/@nozbe/watermelondb/native/android')
-include ':reactnativenotifications'
-project(':reactnativenotifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/android/app')
+// include ':reactnativenotifications'
+// project(':reactnativenotifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/android/app')
include ':reactnativekeyboardinput'
project(':reactnativekeyboardinput').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-keyboard-input/lib/android')
include ':@react-native-community_viewpager'
project(':@react-native-community_viewpager').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/viewpager/android')
-include ':@react-native-firebase_app'
-project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/app/android')
-include ':@react-native-firebase_analytics'
-project(':@react-native-firebase_analytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/analytics/android')
-include ':@react-native-firebase_crashlytics'
-project(':@react-native-firebase_crashlytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/crashlytics/android')
+// include ':@react-native-firebase_app'
+// project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/app/android')
+// include ':@react-native-firebase_analytics'
+// project(':@react-native-firebase_analytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/analytics/android')
+// include ':@react-native-firebase_crashlytics'
+// project(':@react-native-firebase_crashlytics').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/crashlytics/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
diff --git a/app/notifications/push/push.android.js b/app/notifications/push/push.android.js
index d83184594..5ba6a2ef7 100644
--- a/app/notifications/push/push.android.js
+++ b/app/notifications/push/push.android.js
@@ -1,4 +1,4 @@
-import { NotificationsAndroid, PendingNotifications } from 'react-native-notifications';
+const { NotificationsAndroid, PendingNotifications } = {};
class PushNotification {
constructor() {
@@ -6,11 +6,11 @@ class PushNotification {
this.onNotification = null;
this.deviceToken = null;
- NotificationsAndroid.setRegistrationTokenUpdateListener((deviceToken) => {
+ NotificationsAndroid?.setRegistrationTokenUpdateListener((deviceToken) => {
this.deviceToken = deviceToken;
});
- NotificationsAndroid.setNotificationOpenedListener((notification) => {
+ NotificationsAndroid?.setNotificationOpenedListener((notification) => {
this.onNotification(notification);
});
}
@@ -24,8 +24,8 @@ class PushNotification {
configure(params) {
this.onRegister = params.onRegister;
this.onNotification = params.onNotification;
- NotificationsAndroid.refreshToken();
- return PendingNotifications.getInitialNotification();
+ NotificationsAndroid?.refreshToken();
+ return PendingNotifications?.getInitialNotification();
}
}
diff --git a/app/utils/log/index.js b/app/utils/log/index.js
index da1be54a9..38be41872 100644
--- a/app/utils/log/index.js
+++ b/app/utils/log/index.js
@@ -1,17 +1,9 @@
-import firebaseAnalytics from '@react-native-firebase/analytics';
import { isFDroidBuild } from '../../constants/environment';
-import config from '../../../config';
import events from './events';
-const analytics = firebaseAnalytics || '';
-let bugsnag = '';
-let crashlytics;
-
-if (!isFDroidBuild) {
- const { Client } = require('bugsnag-react-native');
- crashlytics = require('@react-native-firebase/crashlytics').default;
- bugsnag = new Client(config.BUGSNAG_API_KEY);
-}
+const analytics = () => {};
+const crashlytics = () => {};
+const bugsnag = {};
export { analytics };
export const loggerConfig = bugsnag.config;
diff --git a/react-native.config.js b/react-native.config.js
index cbd0de1b6..56cbf0ff9 100644
--- a/react-native.config.js
+++ b/react-native.config.js
@@ -30,6 +30,11 @@ module.exports = {
platforms: {
android: null
}
+ },
+ 'bugsnag-react-native': {
+ platforms: {
+ android: null
+ }
}
}
};

View file

@ -1,38 +0,0 @@
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2ce1ae6..cd9032e 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -15,14 +15,18 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="jp.co.omronsoft.openwnn">
+ package="jp.co.omronsoft.openwnn"
+android:versionCode="2"
+android:versionName="1.3.5.1">
<original-package android:name="jp.co.omronsoft.openwnn" />
+<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14"/>
<uses-permission xmlns:android="http://schemas.android.com/apk/res/android" android:name="android.permission.VIBRATE"/>
<application android:label="OpenWnn">
<service android:name="OpenWnnJAJP" android:label="Japanese IME"
+ android:theme="@style/Theme"
android:permission="android.permission.BIND_INPUT_METHOD"
android:id="@+id/openwnn_japanese">
<intent-filter>
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644
index 0000000..26ba049
--- /dev/null
+++ b/res/values/styles.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="Theme" parent="@android:style/Theme.Holo">
+ <item name="android:windowActionBar">false</item>
+ <item name="android:windowNoTitle">false</item>
+ </style>
+</resources>
\ No newline at end of file

View file

@ -1,13 +0,0 @@
diff --git a/external/Makefile b/external/Makefile
index c4b91b2..587fae4 100644
--- a/external/Makefile
+++ b/external/Makefile
@@ -108,7 +108,7 @@ ifneq ($(filter mips%, $(NDK_ABI)),)
ifneq ($(findstring 64, $(NDK_ABI)),)
OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=64
else
- OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=32
+ OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=32 -D__MIPSEL__
endif
endif