From d717c0f2f8e5e2cbf5a624bd63f1f2c66e767b03 Mon Sep 17 00:00:00 2001 From: kanha Date: Tue, 22 Mar 2022 20:30:12 +0530 Subject: [PATCH 1/5] fix for java.lang.ExceptionInInitializerError --- android/gradle.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/gradle.properties b/android/gradle.properties index 0f2ef38..e4a184c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -20,4 +20,5 @@ android.enableAapt2=true android.useDeprecatedNdk=true android.useAndroidX=true -android.enableJetifier=true \ No newline at end of file +android.enableJetifier=true +org.gradle.jvmargs=--add-opens java.base/java.lang=ALL-UNNAMED \ No newline at end of file From a6217693677da9f2bda30ad3fb33479941f0a1fa Mon Sep 17 00:00:00 2001 From: kanha Date: Tue, 22 Mar 2022 20:34:47 +0530 Subject: [PATCH 2/5] fix for unable to load script from assets --- android/app/src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e4396e1..b119862 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" + android:usesCleartextTraffic="true" android:allowBackup="false" android:theme="@style/AppTheme"> Date: Tue, 22 Mar 2022 21:00:19 +0530 Subject: [PATCH 3/5] dependency fix --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index e9a836f..fff4f0f 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "test": "jest --detectOpenHandles -u" }, "dependencies": { + "@react-native-community/toolbar-android": "^0.2.1", "email-validator": "^2.0.4", "firebase": "^7.2.2", "react": "16.12.0", From 328a1a0888777cd1dbd79f2649543e1a895ab1ce Mon Sep 17 00:00:00 2001 From: kanha Date: Tue, 22 Mar 2022 22:15:20 +0530 Subject: [PATCH 4/5] platform import fix in forumbox/style.js --- app/components/ForumBox/styles.js | 72 +++++++++++++++---------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/app/components/ForumBox/styles.js b/app/components/ForumBox/styles.js index 85f2e84..3a74516 100644 --- a/app/components/ForumBox/styles.js +++ b/app/components/ForumBox/styles.js @@ -1,42 +1,42 @@ -import { StyleSheet, Dimensions } from "react-native"; +import { StyleSheet, Dimensions, Platform } from "react-native"; let deviceWidth = Dimensions.get("window").width; let deviceHeight = Dimensions.get("window").height; export default StyleSheet.create({ - QuestionStyle : { - width : "90%", - borderRadius: 10, - borderWidth: 1, - backgroundColor: Platform.OS === "ios" ? "#fff" : null, - borderColor: "#b8b8b8", - shadowColor: Platform.OS === "ios" ? "#000000" : "#000000", - shadowOffset: { - width: Platform.OS === "ios" ? 0 : 0, - height: Platform.OS === "ios" ? 2 : 2, - }, - shadowOpacity: Platform.OS === "ios" ? 0.9 : 0.8, - shadowRadius: Platform.OS === "ios" ? 3 : 40, - elevation: Platform.OS === "ios" ? 3 : 4, - alignSelf: "center" - }, - nameHeadlineStyle : { - width: "101%", - height : 25, - backgroundColor: "#79AEE0", - borderRadius: 7, - alignSelf: "center", - justifyContent: "center", - top: 0 - }, - AnswerButtonStyle : { - width: 65, - height: 23, - backgroundColor: "#9cd683", - borderRadius: 5, - alignSelf: "flex-end", - bottom: 5, - right: 5, - justifyContent: "center", - }, + QuestionStyle: { + width: "90%", + borderRadius: 10, + borderWidth: 1, + backgroundColor: Platform.OS === "ios" ? "#fff" : null, + borderColor: "#b8b8b8", + shadowColor: Platform.OS === "ios" ? "#000000" : "#000000", + shadowOffset: { + width: Platform.OS === "ios" ? 0 : 0, + height: Platform.OS === "ios" ? 2 : 2, + }, + shadowOpacity: Platform.OS === "ios" ? 0.9 : 0.8, + shadowRadius: Platform.OS === "ios" ? 3 : 40, + elevation: Platform.OS === "ios" ? 3 : 4, + alignSelf: "center" + }, + nameHeadlineStyle: { + width: "101%", + height: 25, + backgroundColor: "#79AEE0", + borderRadius: 7, + alignSelf: "center", + justifyContent: "center", + top: 0 + }, + AnswerButtonStyle: { + width: 65, + height: 23, + backgroundColor: "#9cd683", + borderRadius: 5, + alignSelf: "flex-end", + bottom: 5, + right: 5, + justifyContent: "center", + }, }); \ No newline at end of file From c9c9087e27e79f8fe3bc5c6cec8da8a0819fc7ab Mon Sep 17 00:00:00 2001 From: kanha Date: Thu, 24 Mar 2022 21:57:07 +0530 Subject: [PATCH 5/5] fix for Throw an error "Object is not iterable" at the app start #128 --- config/config.example.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/config/config.example.js b/config/config.example.js index 32dda3f..58078f3 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -7,13 +7,17 @@ var config = { projectId: "", storageBucket: "", messagingSenderId: "" - }; +}; +try { firebase.initializeApp(config); +} catch (error) { + console.log(error) +} - var MAP_API_KEY = ""; +var MAP_API_KEY = ""; - export const f = firebase; - export const database = firebase.database(); - export const auth = firebase.auth(); - export const storage = firebase.storage(); - export const MAP_API = MAP_API_KEY; \ No newline at end of file +export const f = firebase; +export const database = firebase.database(); +export const auth = firebase.auth(); +export const storage = firebase.storage(); +export const MAP_API = MAP_API_KEY; \ No newline at end of file