martin-ngigi / chatty

chatty is a flutter app that enables users to chat in text, audio and chat form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatty

A new Flutter project.

Requirements:

Getting Started

  • To get all dependencies, run the following:
flutter pub get
  • Run web app:
flutter run -d chrome

SHA-1 Generation for android Method 1 (NB: MOST RECOMMENDED WAY)

  1. Right click on 'gradlew' and go to 'Open in Terminal' This file is found under {{YOUR PROJECT}}/android/gradlew 1.1 Or Change directory to "android" i.e. cd android
  2. Type in the following command.
gradlew signingReport
  • or If did not work first try second command(on windows):
./gradlew signingReport

SHA-1 Generation for android Method 2 ((NB: NOT RECOMMENDED))

  1. For viewing the SHA-1 key from the keystore file that is in flutter project directory:
 keytool -list -v -keystore C:\Users\Administrator\AndroidStudioProjects\chatty\debug.keystore -alias androiddebugkey -storepass android -keypass android

2.1 But if there is no keystore file, SHA-1 can be created using following way:

keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000

2.2 For viewing the SHA-1 key from the keystore file that we created

  keytool -list -v -keystore %USERPROFILE%\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android

Obtaining package name in iOS:

  • In iOS the package name is the bundle identifier in Info.plist. which is found in Runner.xcodeproj/project.pbxproj
PRODUCT_BUNDLE_IDENTIFIER = com.example.chatty;

Local firebase configuration(This will register our applications to firebase and automatically add json files ;-)

  • Add firebase .exe
  • Add C:\Users<username>\AppData\Local\Pub\Cache\bin to Environment Path.
  • Executed command:
dart pub global activate flutterfire_cli
  • login to firebase:
firebase login
  • configure flutter
flutterfire configure
  • or
flutterfire.bat configure

Sample screenshot for fireabse configration

enable Firebase In-App Messaging API

flutter clean
flutter pub get

Web login

flutter run -d chrome --web-hostname localhost --web-port 7357

Agora

Reducing flutter app size:

  • Run following commands:
flutter clean
flutter build apk --target-platform android-arm,android-arm64

To solve error pod install error

  • Unable to find a target named RunnerTests in project Runner.xcodeproj
  • SOLUTION: In the ios/Podfile, comment the use of that reference in the same file as follows:
  flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
#   target 'RunnerTests' do
#     inherit! :search_paths
#   end
end

About

chatty is a flutter app that enables users to chat in text, audio and chat form


Languages

Language:Dart 89.9%Language:HTML 9.2%Language:Ruby 0.7%Language:Swift 0.2%Language:Kotlin 0.1%Language:Objective-C 0.0%