Ftr v0.7.0 Documentation
Table of Contents
Ftr #
Ftr is a cross-platform (Android/iOS) front-end development framework. The core code is written in C++. The bottom layer is based on OpenGL drawing. The upper layer implements a streamlined typesetting engine and a JS/JSX running environment. The goal is to develop GUI applications on this basis, which can take both development speed and operation efficiency into account.
Only
iOS
andAndroid
systems are supported for the time being, this does not includeAndroidTV
, becauseTV
applications are very different from mobile applicationsFrom here,
Go API Index
can go toAPI Documents Index
![]() |
![]() |
![]() |
---|---|---|
Simple Examples #
This is a simple program to display Hello world on the screen
import { GUIApplication, Root } from 'ftr'
new GUIApplication().start(
<Root>hello world!</Root>
)
You can get a more detailed Examples
Start Usage #
If you've never used Ftr before, you can start from here and build your Ftr program step by step.
Install ftrp #
First, you need to install the toolkit provided by Ftr
Install
ftrp
using nodejsnpm
Open
Terminal
and execute the following command:
# shell
$ sudo npm install -g ftrp
Running
ftrp
requires dependency onnodejs
andpython2.7
And now do not support the
windows
system, you need to use it undermac
Create new project #
Create a new Ftr
project using the following shell
command:
# shell
$ mkdir myproject
$ cd myproject
$ ftrp init
Build project #
This step compresses and packages the JavaScript code and resource files inside the project, If this is a new project, you can skip this step and go directly to the next step
# shell
$ ftrp build
Export project #
This step exports Xcode
or Android Studio
project,because you eventually publish the program that be a .apk
or .ipa
# shell
# export xcode ios project
$ ftrp export ios
# export android studio project
$ ftrp export android
After exporting the project, next you can open it using Xcode
and Android Studio
Ftr test http server #
ftrp
provides a test http server, each time you change the js
or jsx
code, you don't have to reinstall every time.
Execute the following code to start it:
# shell
$ ftrp
Downloads #
Examples demo
Android APK
Install packageProject
Source code
fromGithub