# boden **Repository Path**: JunAFa/boden ## Basic Information - **Project Name**: boden - **Description**: boden 是用于 Android 和 IOS 开发的纯原生 C++ 跨平台框架,使用 Boden,可以通过一个代码库创建本地移动跨平台应用程序 - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2021-03-24 - **Last Updated**: 2024-06-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 
Build purely native cross-platform experiences with Boden
Website ⬡ Getting Started ⬡ API Reference ⬡ Guides ⬡ Twitter ⬡ Feedback  * **Native widgets**: Instead of drawing widgets that look nearly identical to the platform's design, Boden uses native OEM widgets ensuring that your app will always have a truly native look and feel. * **Fast**: Boden is written in modern C++17 to make development easy and apps fast and battery-friendly. * **Open**: Boden is an open framework and welcomes contributions and feedback from the community. We want you to shape its development so Boden can meet your requirements. > Note: This is a beta release. The Boden API is not yet fully complete and stable. ## Table of Contents * [Getting Started](#getting-started) * [Your First Boden Application](#your-first-boden-application) * [Hello World](#hello-world) * [Documentation](#documentation) * [License](#license) * [Contact & Feedback](#contact--feedback) ## Getting Started ### Prerequisites **On a Mac**: macOS 10.14+, [Xcode 10.1+](https://developer.apple.com/xcode/), [Python 3.4+](https://www.python.org/downloads/), [CMake 3.15.0+](https://cmake.org/download/). **On Windows**: Windows 10, [Python 3.4+](https://www.python.org/downloads/), [CMake 3.10.2+](https://cmake.org/download/), [Ninja](https://github.com/ninja-build/ninja/releases), [Git](https://git-scm.com/download/win), [Oracle JDK 8](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html), and [Android Studio](https://developer.android.com/studio) (with Android NDK, see the [installation instructions](https://www.boden.io/getting-started/installing_dependencies/windows/) for further details). **On Ubuntu 18.04**: `sudo apt update && sudo apt install git cmake ninja-build python python3-distutils openjdk-8-jdk qemu-kvm` plus [Android Studio](https://developer.android.com/studio/) (with Android NDK, see the [installation instructions](https://www.boden.io/getting-started/installing_dependencies/linux/) for further details). ### Step 1: Clone the Boden Repo git clone --recurse-submodules https://github.com/AshampooSystems/boden.git ### Step 2: Generate and Open an IDE Project cd boden python boden.py open -t bodendemo This will bring up Xcode on macOS or Android Studio on Linux/Windows. If anything goes wrong, please make sure that all dependencies are installed and set up correctly. Check out our extended guides for help: * [Building Boden on macOS](https://www.boden.io/getting-started/building/mac/) * [Building Boden on Windows](https://www.boden.io/getting-started/building/windows/) * [Building Boden on Linux](https://www.boden.io/getting-started/building/linux/) ### Step 3: Run a Boden Example Application In Xcode, select the `bodendemo` target and hit Cmd+R. In Android Studio, select the `bodendemo` target and hit Shift+F10. ## Your First Boden Application To create your first Boden app, open up a terminal (or command prompt), change to your local `boden` directory, and execute the following commands: python boden.py new -n AwesomeApp cd AwesomeApp python ../boden.py open This will create a new folder named `AwesomeApp` and generate source and project files for a simple Hello World cross-platform application. The last command will prepare and open an Xcode project on the Mac or an Android Studio project on Linux/Windows. In Xcode, select the `AwesomeApp` target and then press Cmd+R to build and run the Hello World application. In Android Studio, wait for Gradle to finish its sync and configuration processes and then select the `bodendemo` target and press Cmd+R to build and run the example application, then select the `AwesomeApp` target and then press Ctrl+R on Mac or Shift+F10 on Linux/Windows to build an run the Hello World application. > Note: On macOS and Linux you can also simply type `./boden` instead of calling `python boden.py` explicitly. If you want to build the Android version of the app on macOS, run `../boden open -p android`. ## Hello World Here's a quick look at the source code generated by the `boden new` command: ```C++ // MainViewController.cpp #include