当前位置: 首页 > 软件库 > 手机/移动开发 > >

NewPointe-Mobile-App-Public

The code behind the OLD NewPointe Mobile App
授权协议 Readme
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 东方谦
操作系统 iOS
开源组织
适用人群 未知
 软件概览

NewPointe Mobile App

This is the mobile app for NewPointe Community Church. It's made with Nativescript {N} using Typescript and Angular

 

Table of Contents

 

Nativescript Setup

Setup Instructions can be found at http://docs.nativescript.org/angular/start/quick-setup. A summary is provided here for convenience:

  1. Install Node.js
    • [win] Use installer from website.
    • [OSx] brew install node
    • [Linux] apt-get install node
  2. [OSx] Install Xcode and the Xcode CLI tools
    • XCode is available in the apple app store
    • Once Xcode is installed, open it, go to Xcode -> Preferences -> Locations and use the 'Command Line Tools' dropdown.
    • If you want to debug with Simulator, you'll also need to go to Xcode -> Preferences -> Components and install the version you want to test with.
  3. Install the Nativescript CLI
    • npm install -g nativescript
    • If you get an EACESS error, you need to fix you npm permissions. This usualy happens when you use node's installer instead of your OS's package manager.
    • The installer will ask if you want to run the setup script. This will install all the extra stuff you'll need to build and test iOS/Android apps

 

Project Setup

  1. Clone this repo
    • git clone https://github.com/NewPointe/NewPointe-Mobile-App-Public.git
    • cd NewPointe-Mobile-App-Public
  2. Setup nativescript and dependancies
    • tns install
  3. ????
  4. Profit!

But seriously, that's all you should need to do.

 

Running the Project

From there you can use the tns commands to build and run the project:

tns run <platform> [--emulate]      # Runs the project on any connected devices. If you use the --emulator flag or don't have a device connected it will launch it in an emulator.
tns emulate <platform>              # Shortcut for ^ with the --emulator flag
tns livesync <platform> --watch     # Similar to run, but will automagicaly sync new changes to the device as you save them.

# <platform> can be either 'ios' or 'android', or you can leave it blank to run both at the same time

If you mess with dependancies/plugins you will need to do

tns platform remove ios && tns platform remove android && tns platform add ios && tns platform add android

to force it to re-package them when it builds.

 

Images/Asset Generation

I've written a small script to automate generating some assets like the app icon from SVGs. These are located in /app/App_Resources/SVGs.

To generate assets from SVGs:

cd /app/App_Resources/SVGs
node pngGen.js

Caveats:
The script uses inkscape from the command line to generate the pngs. If you are on Windows or want to use a different program you will need to edit the getCommandLine functions at the top of the script. Also note that some of the SVG's have background colors that are inkscape-specific and won't show up when using a different program.

How it works:
The script looks for *.gen.txt definitions in the current directory. The file name should match the name of the source SVG. Each line in the gen file specifies a conversion to do.

Lines can have the following formats:

  • [width]x[height] [outputFile] - generates a png with the specified width and height and saves it as outputFile. If the svg has a different aspect ratio it will get streached.
  • [width]x[height]-[originalWidth]x[originalHeight] [outputFile] - same as ^ but uses the original width/height to center and contain it within the new dimensions.

You can also use a scaling factor in place of dimensions - in this case it will use the last seen dimension and apply the scale. For example:

100x100 outFile1.png
x2 outFile2.png
x3 outFile3.png

Will generate 3 files, 100x100, 200x200, and 300x300 respectively.

Packaging for Appstores

Android

http://docs.nativescript.org/publishing/publishing-android-apps

Basicly:
Build a signed apk with

tns build android --release --key-store-path NewPointeCommunityChurch.keystore --key-store-password AAAAAAAA --key-store-alias NewPointeCommunityChurch --key-store-alias-password AAAAAAAA

It should save it as ./platforms/android/build/outputs/apk/NewPointeCommunityChurch-release.apk. Just upload it to the play store.

iOS

http://docs.nativescript.org/publishing/publishing-ios-apps

 相关资料
  • DWZ Mobile App 是一个 HTML5 + 原生混合开发框架。基于原生 JS 轻量级移动端开发框架,核心代码库 dwz.core.js 使用方式和 jQuery 80%相似,针对移动端精简优化代码(核心库代码相当于 jQuery 的十分之一)。 设计思路 1. 灵活定制扩展方便:gulp 构建工程,组件 html 结构、css(使用 less)、javascript 完全开放,可以实际项

  • PhoneGap Mobile App XDK,可以让开发人员创建、模拟和测试PhoneGap项目。该工具是一个集成开发环境(IDE),提供了用于创建HTML5和PhoneGap应用的全套开发工具。AppMobi称,新的XDK为PhoneGap项目开发提供了一个直观的开发环境。

  • JeeSite Mobile Uni-App 是 JeeSite 手机端框架/移动端框架,基于 uni-app、uView UI 实现。 uni-app 是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可发布到iOS、Android、Web、 以及各种小程序(微信/支付宝/百度/头条/QQ/钉钉/淘宝)、快应用等多个平台。 uView UI,是 uni-app 生态最优秀的

  • Mobile App Landing Page Template �� Free to use static generated landing page template for your mobile app �� Features Mobile App Landing Page Template comes with pre-installed features and options: D

  • Missing Person Mobile App Missing Person mobile app written in NativeScript, an app similar to Amber Alert in Bangladesh. How to run: Development prerequisite # Install node and npm first.npm install

  • 1.1.1. Rokid Mobile SDK 1.1.1. Rokid Mobile SDK Rokid Mobile SDK 主要为企业开发者提供整套的移动APP开发支持,能让开发者的移动应用拥有对搭载rokid服务的设备进行配网、指令发送、技能交互等能力。 Rokid Mobile SDK Android:包括 Rokid Mobile SDK Android 版的集成方式、SDK 初始化、