Coder Social home page Coder Social logo

w8a5n1g116 / steedos-mobile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steedos/steedos-mobile

0.0 1.0 0.0 1.7 MB

Steedos React Native 手机客户端

JavaScript 84.01% Java 3.90% Ruby 4.15% Objective-C 4.88% Starlark 2.85% TypeScript 0.21%

steedos-mobile's Introduction

Steedos 手机客户端

参考

https://developers.mattermost.com/contribute/mobile/build-your-own/preparation/

初始化 mattermost-mobile

在mac上执行以下命令

git clone https://github.com/steedos/mattermost-mobile
git checkout steedos-1.27 # 最新版本分支
cd mattermost-mobile
yarn
pod repo update
make pre-run
make run-ios

如果报 mattemost-redux 错误,可能是因为包没编译

cd node_modules/mattermost-redux
yarn

在 mattermost-mobile 中使用 @steedos/react-native

cd mattermost-mobile
yarn add file:../steedos-mobile/steedosNative
  • 【初始化】修改 mattermost-mobile/app/actions/navigation/index.js 文件
    • import steedosInit from '@steedos/react-native'
    • resetToChannel 函数最后一行添加初始化代码
      steedosInit(store.getState().entities?.general?.config?.AboutLink, true);
  • 【更换右上角more图标为九宫格】修改 mattermost-mobile/app/screens/channel/channel_nav_bar/settings_drawer_button.js 文件
    • import { getSettingsIcon } from '@steedos/react-native'
    • render 函数中 name='md-more' 修改为 name={getSettingsIcon()}
  • 【替换右上角more图标点击事件】修改 mattermost-mobile/app/components/sidebars/drawer_layout.js 文件
    • import {canShowSteedosSettings, showSteedosSettings} from '@steedos/react-native' 
    • openDrawer 函数的第一行添加代码
      if(canShowSteedosSettings(this.props, options)){
          return showSteedosSettings({openSettings: this.openDrawer});
      }

[手机端左下角的加号,点击后增加一个选项 视频会议 ,就是发起zoom会议] (https://github.com/steedos/mattermost-mobile/commit/874738133db6feb24b543f79ad3e44aa27845d4c)

OEM

cp -r ./mattermost-mobile/assets/override ../mattermost-mobile/assets/override
cp ./mattermost-mobile/fastlane/.env ../mattermost-mobile/fastlane/.env

更换图标及签名等(fastlane)

sudo gem install fastlane
cd fastlane
fastlane ios update_identifiers
fastlane ios replace_assets
fastlane android update_identifiers
fastlane android replace_assets 

编译 ios

make build-ios

steedos-mobile's People

Contributors

baozhoutao avatar hotlong avatar hotoa avatar

Watchers

 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.