-
-
Notifications
You must be signed in to change notification settings - Fork 1
Mobile App MVP using Firebase #1
base: main
Are you sure you want to change the base?
Conversation
this works with matrix? how does and where does it store messages? |
This will work with our protocol |
@Luke-Oldenburg plz review protocol wise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get that this is just a MVP so I guess it's okay that it's firebase but can we at least get expo setup? That's a pretty big deal. Also rename all the GiftedChat stuff to Purple Bubble.
.gitignore
Outdated
# | ||
.DS_Store | ||
|
||
secrets.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to *.env or just .env and rename the file
package.json
Outdated
@@ -0,0 +1,47 @@ | |||
{ | |||
"name": "GiftedChatApp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this.
Ultimately it's up to @jaspermayone on whether it's merged. Since I'm going to try to finish the reference implementation this weekend it would be nice if the MVP used the protocol. It's not really displaying OUR product without that. |
I know Sam's on vacation right now but he knows more about react native development than me so I'm tagging him for review. |
Also please add a PR description and remove the closes issue part once you perform these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left lots of comments, app name and icon needs to be changed.
App also needs to move to Expo.
.bundle/config
Outdated
@@ -0,0 +1,2 @@ | |||
BUNDLE_PATH: "vendor/bundle" | |||
BUNDLE_FORCE_RUBY_PLATFORM: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ruby????
.prettierrc.js
Outdated
module.exports = { | ||
arrowParens: 'avoid', | ||
bracketSameLine: true, | ||
bracketSpacing: false, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a semantic style for code we use right now, let's remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could stay for now and we discuss it at a meeting later on it. It'd be nice if each project was at least consistent in itself.
.eslintrc.js
Outdated
module.exports = { | ||
root: true, | ||
extends: '@react-native', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a semantic style for code we use right now, let's remove this.
.watchmanconfig
Outdated
@@ -0,0 +1 @@ | |||
{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this file and why do we need it?
Gemfile
Outdated
source 'https://rubygems.org' | ||
|
||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby ">= 2.6.10" | ||
|
||
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper | ||
# bound in the template on Cocoapods with next React Native release. | ||
gem 'cocoapods', '>= 1.13', '< 1.15' | ||
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are using react, why do we have a gemfile???
<application | ||
android:usesCleartextTraffic="true" | ||
tools:targetApi="28" | ||
tools:ignore="GoogleAppIndexingWarning"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the specific reason for ignoring this?
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" | ||
android:launchMode="singleTask" | ||
android:windowSoftInputMode="adjustResize" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Activity?
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:name=".MainApplication" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not be our app name?
@@ -0,0 +1,22 @@ | |||
package com.giftedchatapp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this name please!
* Returns the name of the main component registered from JavaScript. This is used to schedule | ||
* rendering of the component. | ||
*/ | ||
override fun getMainComponentName(): String = "GiftedChatApp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this name please!
Do we want to use firebase? For a privacy/secure company I don't think it's a good idea |
@aramshiva we're not at all... it's a demo just of the ui. Look at all the protocol dev? |
spent rest of time reading purple bubble api
@EmperorNumerius the files shouldnt be nested in a PurpleBubble folder. They should be in the root directory. The code should be in a src folder though. |
@EmperorNumerius all of those files from the root of the project should not have been deleted. |
+1 on what luke said! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted files need to be readded, and all the contents of PurpleBubble need to be moved to the root directory.
@EmperorNumerius you also need to address/resolve all the comments from the first round of comments. |
Is chatscope advanced enough for our purposes? The frontend should really support markdown and previewing files from links or at least showing it as a different blob from the main message like in iMessage. |
then i need to use Stream Chat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi sam |
Pull Request
Description: