Git Product home page Git Product logo

open-im-flutter-demo's Introduction

可以免费使用,必须在app启动页加上 (由OpenIM提供技术支持)

OpenIM

A OpenIM flutter demo, only support android and ios.

image

官方demo使用

1. 下载体验app

Android

2. 替换服务器地址为自己搭建的服务器地址,默认地址为官方服务器地址

image

源代码使用

  1. git clone https://github.com/OpenIMSDK/Open-IM-Flutter-Demo.git
  2. 修改 config.dart文件里的服务器地址为自己搭建的服务器地址
  3. 运行flutter pub get
  4. 运行flutter run

其他

demo里使用的ui库链接:flutter_openim_widget

demo使用的im库链接:flutter_openim_sdk

Issues

1,demo对应的flutter版本是?

答:stable分支3.0.1

2,支持哪些平台?

答:因为sdk的原因demo目前只能运行在android跟ios设备上

3,android安装包debug可以运行但release启动白屏?

答:flutter的release包默认是开启了混淆,可以使用命令:flutter build release --no -shrink,如果此命令无效可如下操作

在android/app/build.gradle配置的release配置加入以下配置

release {
    minifyEnabled false
    useProguard false
    shrinkResources false
}
4,代码必须混淆怎么办?

答:在混淆规则里加入以下规则

-keep class io.openim.**{*;}
-keep class open_im_sdk.**{*;}
-keep class open_im_sdk_callback.**{*;}
5,android安装包不能安装在模拟器上?

答:因为Demo去掉了某些cpu架构,如果你想运行在模拟器上请按以下方式:

在android/build.gradle配置加入

ndk {
    abiFilters "arm64-v8a", "armeabi-v7a", "armeabi", "x86", "x86_64"
}
6,ios构建release包报错

答:请将cup架构设置为arm64,然后依次如下操作

  • flutter clean
  • flutter pub get
  • cd ios
  • pod install
  • 连接真机后运行Archive

ios cpu

7,ios运行的最低版本号?

答:13.0

open-im-flutter-demo's People

Contributors

hrxiang avatar ouyangdage avatar skiffer-git 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.