• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Minds/mobile-native: mirror of https://gitlab.com/minds/mobile-native

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Minds/mobile-native

开源软件地址(OpenSource Url):

https://github.com/Minds/mobile-native

开源编程语言(OpenSource Language):

TypeScript 86.5%

开源软件介绍(OpenSource Introduction):

Minds Mobile Apps

Install

Clone mobile
git clone [email protected]:minds/mobile-native.git

Clone locale
cd ..

git clone [email protected]:minds/l10n.git

cd -

Branch Structure

Branch
master Approved code ready to merged into the next stable release. All tests should pass and be in a 'ready' state
stable/* Stable builds, inherited from release/* branches. Fastlane automatically deploys these builds.
test/* Release candidate builds, inherited from release/* branches. Fastlane automatically deploys these builds.
release/* WIP builds. Run fastlane run increment_version_number upon creating the branch.
feat/* New branches should be made for each Gitlab issue. Merge requests should be opened pointing towards the respective release branch.

Increasing the version number

Patch

fastlane run increment_version_number bump_type:patch

Minor

fastlane run increment_version_number bump_type:minor

Major

fastlane run increment_version_number bump_type:major

Platforms

  • iOS
  • Android

Install dependencies

  • yarn install
  • cd ios && pod install (iOS only)

Building

  • yarn android or yarn ios

Testing

  • yarn test

Testing e2e (macOS)

Install the detox cli

  • brew tap wix/brew
  • brew install applesimutils
  • yarn global add detox-cli

Run the tests

  • detox build -c ios.sim.debug
  • detox test -c ios.sim.debug

You can use -c ios.sim.release for e2e test a production build

Building Android releases

Setup your environment variables

export ANDROID_KEYSTORE=

export KEYSTORE_PASSWORD=

export SENTRY_ANDROID_PROPERTIES=

Build

  1. Build the app

cd android && fastlane assemble_build && cd ..

  1. Push to s3

aws s3 cp android/app/build/outputs/apk/release/app-release.apk s3://minds-repo/android/Minds-stable-4-8-2.apk

  1. Update the releases.json

yarn release-json android/app/build/outputs/apk/release/app-release.apk

  1. Verify the release name is correct in ./releases.json

  2. Upload the releases.json changes

aws s3 cp releases.json s3://minds-repo/android/releases/releases.json

Custom Release

Once the file is generated in the CI download the apk and run:

yarn release-json path/file.apk

This will update the release.json with this version data

Note: You have to update the change-log for the version!

Upload the file to s3 and that is it.

Running Webdriverio tests on BrowserStack:

Features:

  • Platform: iOS & Android
  • Frontend Framework: WebdriverIO Node.js
  • Frontend Testing Framework: Jasmine
  • Reporter: Spec
  • Integrations: BrowserStack Real Devices, CI (TBD) & Suite Setup (TBD)

Dependencies:

Pre-requisites: Install latest version of Node and create environment variables.

Node: https://nodejs.org/en/download/

Environment variables for WebdriverIO Tests:

USERNAME & PASSWORD

Environment variables for BrowserStack Connection:

BROWSERSTACK_USERNAME, BROWSERSTACK_ACCESS_KEY, BROWSERSTACK_IOS_APP_ID & BROWSERSTACK_ANDROID_APP_ID

Run Command:

Run this command within the project to install all package.json dependencies:

yarn

Run the command below to execute automation on BrowserStack iOS & Android real devices respectively:

yarn run test:real:ios
yarn run test:real:android
Copyright Minds 2022



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Minds / Minds Mobile · GitLab发布时间:2022-08-30
下一篇:
lucidlemon/paradeiser: small and sleek mobile navigation发布时间:2022-08-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap