GithubHelp home page GithubHelp logo

lstnull / rnpolymerpo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yanbober/rnpolymerpo

0.0 1.0 0.0 5.44 MB

学习--一个基于 React Native 的 Android 企业级应用。

License: MIT License

Python 1.27% Java 1.90% JavaScript 93.43% Objective-C 3.40%

rnpolymerpo's Introduction

简介

RNPolymerPo 是一个基于 React Native 的生活类聚合实战项目,目前由于没有 MAC 设备,所以没有适配 iOS,感兴趣的可以自行适配 app 目录下相关 JS 代码即可。

获取代码与编译调试打包

如下所有步骤及说明均为 React Native Android 的 DIY,涉及命令均为 Ubuntu 环境,Windows 类推即可。

1. 获取代码及模块安装和签名配置

执行如下命令进行代码下载及模块安装:

$ git clone https://github.com/yanbober/RNPolymerPo.git
$ cd RNPolymerPo
$ npm install   //如果觉得慢可以先切换到国内 npm 镜像源再执行此命令

配置 Gradle 个人签名路径及属性:

//1. 把你个人的签名 my-release-key.keystore 文件(不知道如何生成请自行搜索)放到 RNPolymerPo 工程的 android/app 文件夹下。
//2. 编辑工程的 gradle.properties 文件,添加如下的代码(注意把其中的****替换为你自己相应密码)。

MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=*****
MYAPP_RELEASE_KEY_PASSWORD=*****

2. 编译打包 APK 文件

编译生成在线快速调试 Debug 开发包,执行如下命令:

$ adb reverse tcp:8081 tcp:8081
$ react-native start    //开启本地 JS 服务
$ react-native run-android  //新终端的 RNPolymerPo 目录下执行

编译生成 release 包,执行如下命令:

$ cd android && ./gradlew assembleRelease

拓展规划

下一个版本准备做的事情:

  1. 兼容性处理;
  2. 夜间模式;
  3. 热修复及 PHP 服务端编写;
  4. 多语言切换等问题评估;

致谢

  • 感谢聚合数据平台提供的免费 API 供开发者学习调用。
  • 感谢天行数据平台提供的免费 API 供开发者学习调用。
  • 感谢该项目 package.json 文件中 dependencies 所用到的所有第三方开源组件。
  • 感谢西安点测网络科技有限公司蒲公英应用内测专家平台提供的 APP 监测及内测分发便利。

rnpolymerpo's People

Contributors

yanbober avatar

Watchers

James Cloos 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.