Giter Site home page Giter Site logo

jasonchen2022 / open-im-flutter-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openimsdk/open-im-flutter-demo

0.0 0.0 0.0 8.88 MB

Instant Messaging

Home Page: https://www.openim.online

Ruby 0.15% Objective-C 0.01% Java 0.02% Dart 99.79% Swift 0.04%

open-im-flutter-demo's Introduction

image

Can be used for free, must be added on the app startup page (powered by OpenIM)

OpenIM

A OpenIM flutter demo, only support android and ios.

image

Official demo use

1. Download the experience app

Android

2. Replace the server address with the server address built by yourself, and the default address is the official server address

image

source code usage

  1. git clone https://github.com/OpenIMSDK/Open-IM-Flutter-Demo.git
  2. modify the server address in the config.dart file to the server address built by yourself
  3. flutter pub get
  4. flutter run

The sdk used by the new version UI is the main branch, flutter version 3.7.7

Please replace the sdk dependency with git dependency
  flutter_openim_sdk:
    git:
        url: https: //github.com/OpenIMSDK/Open-IM-SDK-Flutter.git

other

The im library link used by the demo: flutter_openim_sdk

Issues

1. Does it support multiple languages?

A: Support, follow the system language by default

2. What is the flutter version corresponding to the demo?

A: stable branch 3.7.7

3. Which platforms are supported?

A: The demo currently supports android and ios.

4. The debug of the android installation package can run, but the release starts with a white screen?

A: The release package of flutter is obfuscated by default. You can use the command: flutter build release --no -shrink. If this command is invalid, you can do the following

Add the following configuration to the release configuration configured in android/app/build.gradle

release {
    minifyEnabled false
    useProguard false
    shrinkResources false
}
5. What should I do if the code must be confused?

A: Add the following rules to the obfuscation rules

-keep class io.openim.**{*;}
-keep class open_im_sdk.**{*;}
-keep class open_im_sdk_callback.**{*;}
6. The android installation package cannot be installed on the emulator?

A: Because the Demo has removed some cpu architectures, if you want to run it on the emulator, please do the following:

Add in android/build.gradle configuration

ndk {
    abiFilters "arm64-v8a", "armeabi-v7a", "armeabi", "x86", "x86_64"
}
7, ios build release package error

A: Please set the CPU architecture to arm64, and then operate as follows

  • flutter clean
  • flutter pub get
  • cd ios
  • pod install
  • Run Archive after connecting to the real device

ios cpu

8. What is the minimum version number for ios to run?

A: 13.0

9. Some developers encountered the following problems:

Could not build the precompiled application for the device.
Error (Xcode): Signing for "TOCropViewController-TOCropViewControllerBundle" requires a development team. Select a development team
in the Signing & Capabilities editor.

Error (Xcode): Signing for "DKImagePickerController-DKImagePickerController" requires a development team. Select a development team
in the Signing & Capabilities editor.

Error (Xcode): Signing for "DKPhotoGallery-DKPhotoGallery" requires a development team. Select a development team in the Signing &
Capabilities editor.

Add the following code to Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
        config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
        config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"      end
   end
end

open-im-flutter-demo's People

Contributors

hrxiang avatar std-s avatar skiffer-git avatar ouyangdage avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.